public interface FreeformFigure extends IFigure
FreeformViewport
. Also,
you shouldn't call IFigure.setBounds(Rectangle)
on this figure. The
bounds will be calculated based on the extent of its children. A
FreeformFigure's bounds will be the smallest rectangle that will contain all
of its children.IFigure.NoInsets
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
Modifier and Type | Method and Description |
---|---|
void |
addFreeformListener(FreeformListener listener)
Adds a FreeformListener to this FreeformFigure.
|
void |
fireExtentChanged()
Notifies listeners that the freeform extent (i.e. bounds) has changed.
|
Rectangle |
getFreeformExtent()
Returns the freeform extent, essentially the bounds of the
FreeformFigure.
|
void |
removeFreeformListener(FreeformListener listener)
Removes the given listener from this FreeformFigure.
|
void |
setFreeformBounds(Rectangle bounds)
Sets the freeform bounds of this FreeformFigure.
|
add, 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, remove, 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
void addFreeformListener(FreeformListener listener)
listener
- the listenervoid fireExtentChanged()
Rectangle getFreeformExtent()
void removeFreeformListener(FreeformListener listener)
listener
- the listenervoid setFreeformBounds(Rectangle bounds)
bounds
- the new freeform boundsCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.