|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.Figure | +--org.eclipse.draw2d.Layer | +--org.eclipse.draw2d.LayeredPane
A 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.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator |
Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
Field Summary |
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 after layer provided in the input. |
void |
addLayerBefore(Layer layer,
Object key,
Object before)
Adds the given layer, identifiable with the given key, above the before layer provided in the input. |
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. |
void |
removeLayer(IFigure layer)
Deprecated. call IFigure.remove(IFigure) instead |
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 layered pane. |
Methods inherited from class org.eclipse.draw2d.Layer |
containsPoint, findFigureAt |
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 interface IFigure
add
in class Figure
figure
- the layerlayerKey
- the layer's keyindex
- the index where the layer should be addedIFigure.add(IFigure, Object, int)
public void addLayerAfter(Layer layer, Object key, Object after)
layer
- the layerkey
- the layer's keyafter
- the layer under which the input layer should be addedpublic void addLayerBefore(Layer layer, Object key, Object before)
layer
- the layerkey
- the layer's keybefore
- the layer above which the input layer should be addedpublic Layer getLayer(Object key)
key
- the key to identify the desired layer
protected Layer getLayer(int index)
index
- the index of the desired layer
public void removeLayer(Object key)
key
- the key of the layer to be removedpublic void removeLayer(IFigure layer)
IFigure.remove(IFigure)
instead
layer
- the layer to be removedprotected void removeLayer(int index)
index
- the index of the layer to be removed
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |