public abstract class BaseFigure extends diva.canvas.CompositeFigure
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseFigure.Orientation
Two possible orientations for a monitor figure.
|
| Modifier and Type | Field and Description |
|---|---|
protected long |
_lastUpdate
The last time
update() was called. |
protected BaseFigure.Orientation |
_orientation
Arbitrarily initialized to
Orientation.HORIZONTAL. |
protected java.awt.geom.RectangularShape |
_shape
The shape associated with the figure
|
protected static boolean |
isDebugging |
protected static org.apache.commons.logging.Log |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseFigure(java.awt.geom.RectangularShape shape) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
_update()
A subclass implements this method to do the actual update of the this
figure.
|
BaseFigure.Orientation |
getOrientation() |
void |
setOrientation(BaseFigure.Orientation orientation)
It only sets the orientation indicator.
|
void |
update()
Updates the GUI according to the current state of this monitor.
|
add, add, contains, figures, figuresFromBack, figuresFromFront, get, getBackgroundFigure, getBounds, getChildren, getFigureCount, getOrigin, getShape, getTransformContext, indexOf, intersects, invalidateCachedBounds, paint, paint, pick, pick, remove, remove, repaint, replaceChild, setBackgroundFigure, setIndex, toString, transform, translatecontains, getInteractor, getLayer, getParent, getToolTipText, getUserObject, hit, isVisible, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleprotected BaseFigure.Orientation _orientation
Orientation.HORIZONTAL.protected java.awt.geom.RectangularShape _shape
protected long _lastUpdate
update() was called.protected static final org.apache.commons.logging.Log log
protected static final boolean isDebugging
protected BaseFigure(java.awt.geom.RectangularShape shape)
public void update()
public BaseFigure.Orientation getOrientation()
public void setOrientation(BaseFigure.Orientation orientation)
orientation - the orientation.