vocleditor.figures
Class SetClassifierRoleFigure

java.lang.Object
  extended by org.eclipse.draw2d.Figure
      extended by org.eclipse.draw2d.Shape
          extended by org.eclipse.draw2d.RectangleFigure
              extended by vocleditor.figures.SetClassifierRoleFigure
All Implemented Interfaces:
org.eclipse.draw2d.IFigure

public class SetClassifierRoleFigure
extends org.eclipse.draw2d.RectangleFigure

Author:
tugstugi Represents the graphical layout of a set classifier role.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
 
Field Summary
static int SET_SIZE
           
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
SetClassifierRoleFigure(VOCLClassifierRoleEditPart editPart)
          The constructor.
 
Method Summary
 void add(org.eclipse.draw2d.IFigure figure, java.lang.Object constraint, int index)
          Adds a child figure.
 ClassifierFigure getClassifierFigure()
          Returns the classifier role figure.
 org.eclipse.draw2d.geometry.Dimension getMinimumSize(int wHint, int hHint)
          returns the minimum size of this NavExpFigure
 org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint, int hHint)
          returns the preferred size of this figure
 void paintFigure(org.eclipse.draw2d.Graphics g)
          Paints the figure.
 void remove(org.eclipse.draw2d.IFigure figure)
          Removes a child figure.
 void setConstraint(org.eclipse.draw2d.IFigure figure, java.lang.Object constraint)
          Sets the constrainf of a child figure.
 void setOpKind(java.lang.String opKind, java.lang.String sizeVariable, java.lang.String iteratorVariable, java.lang.String sumVariable)
          Sets the operation kind.
 void validate()
          Validates the figure.
 
Methods inherited from class org.eclipse.draw2d.Shape
getLineStyle, getLineWidth, isOpaque, setFill, setFillXOR, setLineStyle, setLineWidth, setOutline, setOutlineXOR, setXOR
 
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, addAncestorListener, addFigureListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, 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, isEnabled, isFocusTraversable, isRequestFocusEnabled, isShowing, isVisible, paint, removeAll, removeAncestorListener, removeFigureListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SET_SIZE

public static int SET_SIZE
Constructor Detail

SetClassifierRoleFigure

public SetClassifierRoleFigure(VOCLClassifierRoleEditPart editPart)
The constructor.

Parameters:
editPart - the classifier role edit part
Method Detail

setOpKind

public void setOpKind(java.lang.String opKind,
                      java.lang.String sizeVariable,
                      java.lang.String iteratorVariable,
                      java.lang.String sumVariable)
Sets the operation kind.

Parameters:
opKind - the operation kind

getClassifierFigure

public ClassifierFigure getClassifierFigure()
Returns the classifier role figure.

Returns:
the classifier role figure

validate

public void validate()
Validates the figure.

Specified by:
validate in interface org.eclipse.draw2d.IFigure
Overrides:
validate in class org.eclipse.draw2d.Figure

add

public void add(org.eclipse.draw2d.IFigure figure,
                java.lang.Object constraint,
                int index)
Adds a child figure.

Specified by:
add in interface org.eclipse.draw2d.IFigure
Overrides:
add in class org.eclipse.draw2d.Figure

remove

public void remove(org.eclipse.draw2d.IFigure figure)
Removes a child figure.

Specified by:
remove in interface org.eclipse.draw2d.IFigure
Overrides:
remove in class org.eclipse.draw2d.Figure

setConstraint

public void setConstraint(org.eclipse.draw2d.IFigure figure,
                          java.lang.Object constraint)
Sets the constrainf of a child figure.

Specified by:
setConstraint in interface org.eclipse.draw2d.IFigure
Overrides:
setConstraint in class org.eclipse.draw2d.Figure

paintFigure

public void paintFigure(org.eclipse.draw2d.Graphics g)
Paints the figure.

Overrides:
paintFigure in class org.eclipse.draw2d.Shape
See Also:
Figure.paintFigure(org.eclipse.draw2d.Graphics)

getMinimumSize

public org.eclipse.draw2d.geometry.Dimension getMinimumSize(int wHint,
                                                            int hHint)
returns the minimum size of this NavExpFigure

Specified by:
getMinimumSize in interface org.eclipse.draw2d.IFigure
Overrides:
getMinimumSize in class org.eclipse.draw2d.Figure
See Also:
IFigure.getMinimumSize(int, int)

getPreferredSize

public org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint,
                                                              int hHint)
returns the preferred size of this figure

Specified by:
getPreferredSize in interface org.eclipse.draw2d.IFigure
Overrides:
getPreferredSize in class org.eclipse.draw2d.Figure
See Also:
IFigure.getPreferredSize(int, int)