public class FreeformLayer extends Layer implements FreeformFigure
Figure.FigureIterator, Figure.IdentitySearchIFigure.NoInsetsbgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipMAX_DIMENSION, MIN_DIMENSION, NO_INSETS| Constructor and Description |
|---|
FreeformLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IFigure child,
java.lang.Object constraint,
int index)
Adds the child with the specified index and constraint.
|
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.
|
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.
|
containsPoint, findFigureAtadd, 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, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, 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, validatepublic void add(IFigure child, java.lang.Object constraint, int index)
IFigureLayoutManager.setConstraint(IFigure, Object) shall be called on
the layout.add in interface IFigureadd in class Figurechild - The IFigure to addconstraint - The newly added IFigure's constraintindex - The index where the IFigure should be addedIFigure.add(IFigure, Object, int)public void addFreeformListener(FreeformListener listener)
FreeformFigureaddFreeformListener in interface FreeformFigurelistener - the listenerFreeformFigure.addFreeformListener(FreeformListener)public void fireExtentChanged()
FreeformFigurefireExtentChanged in interface FreeformFigureFreeformFigure.fireExtentChanged()protected void fireMoved()
fireMoved in class FigureFigure.fireMoved()public Rectangle getFreeformExtent()
FreeformFiguregetFreeformExtent in interface FreeformFigureFreeformFigure.getFreeformExtent()public void primTranslate(int dx,
int dy)
FigureprimTranslate in class Figuredx - The amount to translate horizontallydy - The amount to translate verticallyFigure.primTranslate(int, int)public void remove(IFigure child)
FigureFigure.removeNotify()
method is also called.remove in interface IFigureremove in class Figurechild - The Figure to removeIFigure.remove(IFigure)public void removeFreeformListener(FreeformListener listener)
FreeformFigureremoveFreeformListener in interface FreeformFigurelistener - the listenerFreeformFigure.removeFreeformListener(FreeformListener)public void setFreeformBounds(Rectangle bounds)
FreeformFiguresetFreeformBounds in interface FreeformFigurebounds - the new freeform boundsFreeformFigure.setFreeformBounds(Rectangle)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.