org.eclipse.gef.editparts
Class GuideLayer
java.lang.Object
FreeformLayer
org.eclipse.gef.editparts.GuideLayer
- public class GuideLayer
- extends FreeformLayer
This is a layer where the guide lines are displayed. The figures in this layer should
have a Boolean constraint indicating whether or not they are horizontal guide lines.
- Since:
- 3.0
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuideLayer
public GuideLayer()
getConstraint
public Object getConstraint(IFigure child)
- Parameters:
child - the figure whose constraint is to be found
- Returns:
- the constraint (Boolean indicating whether or not it is horizontal) set for the
given IFigure;
null, if none exists
getConstraints
public Map getConstraints()
- Returns:
- the Map of IFigures to their constraints (Booleans indicating whether or not
they are horizontal guide lines)
getFreeformExtent
public Rectangle getFreeformExtent()
- See Also:
FreeformFigure
getPreferredSize
public Dimension getPreferredSize(int wHint,
int hHint)
- See Also:
IFigure
remove
public void remove(IFigure child)
- See Also:
IFigure
setConstraint
public void setConstraint(IFigure child,
Object constraint)
- The constraint is expected to be a Boolean indicating whether the given guide
line figure is horizontal or not.
- See Also:
IFigure
setFreeformBounds
public void setFreeformBounds(Rectangle bounds)
- See Also:
FreeformFigure
Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.