public class LayeredPane extends Layer
Figure.FigureIterator, Figure.IdentitySearch
IFigure.NoInsets
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
Constructor and Description |
---|
LayeredPane()
Constructs a new layered pane with no layers in it.
|
Modifier and Type | Method and Description |
---|---|
void |
add(IFigure figure,
java.lang.Object layerKey,
int index)
Adds the given layer figure, identifiable with the given key, at the
specified index.
|
void |
addLayerAfter(Layer layer,
java.lang.Object key,
java.lang.Object after)
Adds the given layer, identifiable with the given key, under the
after layer provided in the input.
|
void |
addLayerBefore(Layer layer,
java.lang.Object key,
java.lang.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(java.lang.Object key)
Returns the layer identified by the key given in the input.
|
void |
remove(IFigure figure)
Removes the given child Figure from this Figure's hierarchy and
revalidates this Figure.
|
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(java.lang.Object key)
Removes the layer identified by the given key from this layered pane.
|
containsPoint, findFigureAt
add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
public LayeredPane()
public void add(IFigure figure, java.lang.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, java.lang.Object key, java.lang.Object after)
layer
- the layerkey
- the layer's keyafter
- the layer under which the input layer should be addedpublic void addLayerBefore(Layer layer, java.lang.Object key, java.lang.Object before)
layer
- the layerkey
- the layer's keybefore
- the layer above which the input layer should be addedpublic Layer getLayer(java.lang.Object key)
key
- the key to identify the desired layerprotected Layer getLayer(int index)
index
- the index of the desired layerpublic void remove(IFigure figure)
Figure
Figure.removeNotify()
method is also called.remove
in interface IFigure
remove
in class Figure
figure
- The Figure to removeIFigure.remove(org.eclipse.draw2d.IFigure)
public void removeLayer(java.lang.Object key)
key
- the key of the layer to be removedpublic void removeLayer(IFigure layer)
IFigure.remove(IFigure)
insteadlayer
- the layer to be removedprotected void removeLayer(int index)
index
- the index of the layer to be removedCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.