Draw2D v2.0

org.eclipse.draw2d
Class Layer

java.lang.Object
  |
  +--org.eclipse.draw2d.Figure
        |
        +--org.eclipse.draw2d.TransparentFigure
              |
              +--org.eclipse.draw2d.Layer
All Implemented Interfaces:
IFigure
Direct Known Subclasses:
FreeformLayer

public class Layer
extends org.eclipse.draw2d.TransparentFigure

Transparent Figure intended to be added exclusively to a LayeredPane, who has the responsibilty of managing its Layers.


Inner classes inherited from class org.eclipse.draw2d.Figure
Figure.FigureIterator
 
Inner classes inherited from class org.eclipse.draw2d.IFigure
IFigure.NoInsets
 
Field Summary
protected  Layer nextLayer
           
protected  Layer prevLayer
           
 
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
Layer()
           
 
Method Summary
 boolean containsPoint(int x, int y)
          Overridden to implement transparent behavior.
 IFigure findFigureAtExcluding(int x, int y, Collection collection)
          Overridden to implement transparent behavior.
 Layer getNextLayer()
          Returns the next Layer.
 Layer getPreviousLayer()
          Returns the previous Layer.
 UpdateManager getUpdateManager()
          Returns the UpdateManager for this figure by reference.
 void paint(Graphics graphics)
          Paints this figure, including its border and children.
 void setNextLayer(Layer layer)
          Sets the next Layer to the passed value.
 void setPreviousLayer(Layer layer)
          Sets the previous Layer to the passed value.
 
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addFigureListener, addFocusListener, addKeyListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findMouseEventTargetAt, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocation, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, isEnabled, isFocusTraversable, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isValid, isValidationRoot, isVisible, layout, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeFigureListener, removeFocusListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setUpdateManager, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextLayer

protected Layer nextLayer

prevLayer

protected Layer prevLayer
Constructor Detail

Layer

public Layer()
Method Detail

getNextLayer

public Layer getNextLayer()
Returns the next Layer.
Since:
2.0

getPreviousLayer

public Layer getPreviousLayer()
Returns the previous Layer.
Since:
2.0

getUpdateManager

public UpdateManager getUpdateManager()
Description copied from interface: IFigure
Returns the UpdateManager for this figure by reference.
Overrides:
getUpdateManager in class Figure

paint

public void paint(Graphics graphics)
Description copied from class: Figure
Paints this figure, including its border and children.
Overrides:
paint in class Figure
Following copied from class: org.eclipse.draw2d.Figure
See Also:
Figure.paintFigure(Graphics), Figure.paintClientArea(Graphics), Figure.paintBorder(Graphics)

setNextLayer

public void setNextLayer(Layer layer)
Sets the next Layer to the passed value.
Since:
2.0

setPreviousLayer

public void setPreviousLayer(Layer layer)
Sets the previous Layer to the passed value.
Since:
2.0

containsPoint

public boolean containsPoint(int x,
                             int y)
Overridden to implement transparent behavior.
Overrides:
containsPoint in class Figure
Parameters:
x - X coordiante of point to search children for.
y - Y coordinate of point to search children for.
Since:
2.0

findFigureAtExcluding

public IFigure findFigureAtExcluding(int x,
                                     int y,
                                     Collection collection)
Overridden to implement transparent behavior.
Overrides:
findFigureAtExcluding in class Figure
Since:
2.0

Draw2D v2.0