de.cau.cs.kieler.synccharts.custom
Class InvisibleLabelFigure

java.lang.Object
  extended by org.eclipse.draw2d.Figure
      extended by org.eclipse.draw2d.Shape
          extended by de.cau.cs.kieler.synccharts.custom.InvisibleLabelFigure
All Implemented Interfaces:
IFigure
Direct Known Subclasses:
SignalEditPart.InvisibleFigure, StateEntryActionEditPart.InvisibleFigure, StateExitActionEditPart.InvisibleFigure, StateInnerActionEditPart.InvisibleFigure, StateSuspensionTriggerEditPart.InvisibleFigure, VariableEditPart.InvisibleFigure

public class InvisibleLabelFigure
extends Shape

Represents invisible figures, which usually serve as container for labels. This is the figure for objects that are not supposed to be seen, such as the background figures needed for signal and action labels.

Rating proposed yellow
(2010-01-27) msp

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
Figure.FigureIterator, Figure.IdentitySearch
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
IFigure.NoInsets
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d.Shape
lineStyle, lineWidth
 
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
InvisibleLabelFigure()
          The constructor.
 
Method Summary
protected  void fillShape(Graphics graphics)
          
 Dimension getMinimumSize(int hint, int hint2)
          Return the minimum size of the figure.
 Dimension getPreferredSize(int hint, int hint2)
          Return the preferred size of the figure.
protected  void outlineShape(Graphics graphics)
          
 
Methods inherited from class org.eclipse.draw2d.Shape
getAlpha, getAntialias, getLineAttributes, getLineCap, getLineDash, getLineDashOffset, getLineJoin, getLineMiterLimit, getLineStyle, getLineWidth, getLineWidthFloat, paintFigure, setAlpha, setAlpha, setAntialias, setAntialias, setFill, setFillXOR, setLineAttributes, setLineCap, setLineDash, setLineDashOffset, setLineJoin, setLineMiterLimit, setLineStyle, setLineWidth, setLineWidthFloat, setOutline, setOutlineXOR, setXOR
 
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getParent, 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, primTranslate, remove, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvisibleLabelFigure

public InvisibleLabelFigure()
The constructor.

Method Detail

getPreferredSize

public Dimension getPreferredSize(int hint,
                                  int hint2)
Return the preferred size of the figure. This is usually a size that is big enough to contain all its inner elements. The preferred size of the invisible figure is the maximum preferred size of all its child labels.

Specified by:
getPreferredSize in interface IFigure
Overrides:
getPreferredSize in class Figure
Parameters:
hint - width hint
hint2 - height hint
Returns:
The preferred size of the figure.

getMinimumSize

public Dimension getMinimumSize(int hint,
                                int hint2)
Return the minimum size of the figure. Here it is the same as the preferred size.

Specified by:
getMinimumSize in interface IFigure
Overrides:
getMinimumSize in class Figure
Parameters:
hint - width hint
hint2 - height hint
Returns:
The minimum size of the figure.

fillShape

protected void fillShape(Graphics graphics)

Specified by:
fillShape in class Shape

outlineShape

protected void outlineShape(Graphics graphics)

Specified by:
outlineShape in class Shape