public class CellFigure
extends org.eclipse.draw2d.Figure
Cell
model. Each Cell can be
represented by a Figure. This Figure may contain a geometric Figure, e.g., a
RectangleFigure, or a Label, depending on the requirements.Constructor and Description |
---|
CellFigure()
The default constructor for a CellFigure.
|
Modifier and Type | Method and Description |
---|---|
void |
addLabel(java.lang.String key)
Adds a label to the Figure showing the desired string, typically the Cell
model's key.
|
org.eclipse.draw2d.IFigure |
getFigure()
Gets the IFigure used to display useful information.
|
void |
setSelected(boolean selected)
Sets the color of the CellFigure based on its selection state.
|
void |
setState(Cell.State state)
Updates the CellFigure based on the provided Cell state.
|
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, 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, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAll, 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, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
public org.eclipse.draw2d.IFigure getFigure()
public void addLabel(java.lang.String key)
key
- The string to display on the label.public void setState(Cell.State state)
state
- The State of the model Cell (unselected, selected, disabled,
or invalid).public void setSelected(boolean selected)
selected
- Whether or not the CellFigure is selected.