Eclipse GEF
3.0

org.eclipse.gef.editparts
Class GuideLayer

java.lang.Object
  extended byFreeformLayer
      extended byorg.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

Constructor Summary
GuideLayer()
           
 
Method Summary
 Object getConstraint(IFigure child)
           
 Map getConstraints()
           
 Rectangle getFreeformExtent()
           
 Dimension getPreferredSize(int wHint, int hHint)
           
 void remove(IFigure child)
           
 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.
 void setFreeformBounds(Rectangle bounds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuideLayer

public GuideLayer()
Method Detail

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

Eclipse GEF
3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.