public class FreeformLayeredPane extends LayeredPane implements FreeformFigure
FreeformLayers
.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 |
---|
FreeformLayeredPane()
Constructs a new FreeformLayeredPane.
|
Modifier and Type | Method and Description |
---|---|
void |
add(IFigure child,
java.lang.Object constraint,
int index)
Adds the given layer figure, identifiable with the given key, at the
specified index.
|
void |
addFreeformListener(FreeformListener listener)
Adds a FreeformListener to this FreeformFigure.
|
void |
fireExtentChanged()
Notifies listeners that the freeform extent (i.e. bounds) has changed.
|
protected void |
fireMoved()
Overrides to do nothing.
|
Rectangle |
getFreeformExtent()
Returns the freeform extent, essentially the bounds of the
FreeformFigure.
|
protected org.eclipse.draw2d.FreeformHelper |
getFreeformHelper()
Returns the FreeformHelper.
|
protected void |
primTranslate(int dx,
int dy)
Translates this Figure's bounds, without firing a move.
|
void |
remove(IFigure child)
Removes the given child Figure from this Figure's hierarchy and
revalidates this Figure.
|
void |
removeFreeformListener(FreeformListener listener)
Removes the given listener from this FreeformFigure.
|
void |
setFreeformBounds(Rectangle bounds)
Sets the freeform bounds of this FreeformFigure.
|
protected void |
superFireMoved()
Calls
super.fireMoved() . |
addLayerAfter, addLayerBefore, getLayer, getLayer, removeLayer, removeLayer, removeLayer
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, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, 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, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
public FreeformLayeredPane()
public void add(IFigure child, java.lang.Object constraint, int index)
LayeredPane
add
in interface IFigure
add
in class LayeredPane
child
- the layerconstraint
- the layer's keyindex
- the index where the layer should be addedIFigure.add(IFigure, Object, int)
public void addFreeformListener(FreeformListener listener)
FreeformFigure
addFreeformListener
in interface FreeformFigure
listener
- the listenerFreeformFigure.addFreeformListener(FreeformListener)
public void fireExtentChanged()
FreeformFigure
fireExtentChanged
in interface FreeformFigure
FreeformFigure.fireExtentChanged()
protected void fireMoved()
fireMoved
in class Figure
Figure.fireMoved()
protected org.eclipse.draw2d.FreeformHelper getFreeformHelper()
public Rectangle getFreeformExtent()
FreeformFigure
getFreeformExtent
in interface FreeformFigure
FreeformFigure.getFreeformExtent()
protected void primTranslate(int dx, int dy)
Figure
primTranslate
in class Figure
dx
- The amount to translate horizontallydy
- The amount to translate verticallyFigure.primTranslate(int, int)
public void remove(IFigure child)
Figure
Figure.removeNotify()
method is also called.remove
in interface IFigure
remove
in class LayeredPane
child
- The Figure to removeIFigure.remove(IFigure)
public void removeFreeformListener(FreeformListener listener)
FreeformFigure
removeFreeformListener
in interface FreeformFigure
listener
- the listenerFreeformFigure.removeFreeformListener(FreeformListener)
public void setFreeformBounds(Rectangle bounds)
FreeformFigure
setFreeformBounds
in interface FreeformFigure
bounds
- the new freeform boundsFreeformFigure.setFreeformBounds(Rectangle)
protected void superFireMoved()
super.fireMoved()
.Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.