|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.eclipse.draw2d.Figure
|
+--org.eclipse.draw2d.TransparentFigure
|
+--org.eclipse.draw2d.LayeredPane
LayeredPane - Figure capable of holding any number of layers. Only layers can be added to this figure. Layers are added to this figure with thier respective keys, which are used to identify them.
| Inner classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator |
| Inner classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
| 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 | |
LayeredPane()
Constructs a new layered pane with no layers in it. |
|
| Method Summary | |
void |
add(IFigure figure,
Object layerKey,
int index)
Adds the given layer figure, identifiable with the given key, at the specified index. |
void |
addLayerAfter(Layer layer,
Object key,
Object after)
Adds the given layer, identifiable with the given key, under the |
void |
addLayerBefore(Layer layer,
Object key,
Object before)
Adds the given layer, identifiable with the given key, above the |
boolean |
containsPoint(int x,
int y)
Overridden to implement transparent behavior. |
IFigure |
findFigureAtExcluding(int x,
int y,
Collection collection)
Overridden to implement transparent behavior. |
protected Layer |
getLayer(int index)
Returns the layer at the specified index in this pane. |
Layer |
getLayer(Object key)
Returns the layer identified by the key given in the input. |
boolean |
isOpaque()
Returns the opaque state of this pane containing layers. |
protected void |
paintChildren(Graphics g)
Paints the children (layers) of this pane with the help of the input graphics handle. |
void |
removeLayer(IFigure layer)
Removes the given layer from the layers in this figure. |
protected void |
removeLayer(int index)
Removes the layer at the specified index from the list of layers in this layered pane. |
void |
removeLayer(Object key)
Removes the layer identified by the given key from this layerepane. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LayeredPane()
| Method Detail |
public void add(IFigure figure,
Object layerKey,
int index)
add in class Figurefigure - Figure of the layer to be added.layerKey - Key for identifying the layer.index - Index where the layer should be added.
public void addLayerAfter(Layer layer,
Object key,
Object after)
layer - Layer to be added.key - Key to identify the input layer.after - Layer under which the input layer should be added.addLayerBefore(Layer, Object, Object)
public void addLayerBefore(Layer layer,
Object key,
Object before)
layer - Layer to be added.key - Key to identify the input layer.after - Layer above which the input layer should be added.addLayerAfter(Layer, Object, Object)public Layer getLayer(Object key)
key - Key to identify the desired layer.addLayerBefore(Layer, Object, Object),
addLayerAfter(Layer, Object, Object),
removeLayer(IFigure),
removeLayer(Object)protected Layer getLayer(int index)
index - Location of the desired layer.public boolean isOpaque()
isOpaque in class Figuretrue if any of the child layers
is opaque, else returns false.protected void paintChildren(Graphics g)
paintChildren in class Figureg - Graphics handle for the painting.public void removeLayer(Object key)
key - Key identifying the layer.public void removeLayer(IFigure layer)
layer - Layer to be removed.removeLayer(Object)protected void removeLayer(int index)
index - Index of the layer to be removed.removeLayer(IFigure)
public boolean containsPoint(int x,
int y)
containsPoint in class Figurex - X coordiante of point to search children for.y - Y coordinate of point to search children for.
public IFigure findFigureAtExcluding(int x,
int y,
Collection collection)
findFigureAtExcluding in class Figure
|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||