vocleditor.figures
Class NavExpFigure

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

public class NavExpFigure
extends org.eclipse.draw2d.Figure

A Figure representing the VOCL NavExp element. This figure provides layers for Nodes (ClassifierRole) and Connections (AssociationRole) in a scrollabe fashion.


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
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
NavExpFigure()
          Creates a new NavExpFigure
 
Method Summary
 void add(org.eclipse.draw2d.IFigure figure, java.lang.Object constraint, int index)
          redefined to pass children (exept my scrollbar) to the content pane
 org.eclipse.draw2d.IFigure getConnectionLayer()
          Returns the connection layer of this NavExp figure.
 org.eclipse.draw2d.IFigure getContentPane()
          returns the ContentPane (a FreeformFigure) of this NavExpFigure, which is not directly a child, but a child of the scrollpanes viewport
 org.eclipse.draw2d.geometry.Dimension getMinimumSize(int wHint, int hHint)
          returns the minimum size of this NavExpFigure
 void remove(org.eclipse.draw2d.IFigure figure)
          redefined to pass children to be deleted (exept my scrollbar) to the content pane
 void setConstraint(org.eclipse.draw2d.IFigure child, java.lang.Object constraint)
          redefined to pass children whose constraint should be set (exept my scrollbar) to the content pane
 void validate()
           
 
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, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isEnabled, isFocusTraversable, isOpaque, 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
 

Constructor Detail

NavExpFigure

public NavExpFigure()
Creates a new NavExpFigure

Method Detail

getConnectionLayer

public org.eclipse.draw2d.IFigure getConnectionLayer()
Returns the connection layer of this NavExp figure.

Returns:
the connection layer of this NavExp figure

add

public void add(org.eclipse.draw2d.IFigure figure,
                java.lang.Object constraint,
                int index)
redefined to pass children (exept my scrollbar) to the content pane

Specified by:
add in interface org.eclipse.draw2d.IFigure
Overrides:
add in class org.eclipse.draw2d.Figure
See Also:
IFigure.add(org.eclipse.draw2d.IFigure, java.lang.Object, int)

remove

public void remove(org.eclipse.draw2d.IFigure figure)
redefined to pass children to be deleted (exept my scrollbar) to the content pane

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

setConstraint

public void setConstraint(org.eclipse.draw2d.IFigure child,
                          java.lang.Object constraint)
redefined to pass children whose constraint should be set (exept my scrollbar) to the content pane

Specified by:
setConstraint in interface org.eclipse.draw2d.IFigure
Overrides:
setConstraint in class org.eclipse.draw2d.Figure
See Also:
IFigure.setConstraint(org.eclipse.draw2d.IFigure, java.lang.Object)

validate

public void validate()
Specified by:
validate in interface org.eclipse.draw2d.IFigure
Overrides:
validate in class org.eclipse.draw2d.Figure
See Also:
IFigure.validate()

getContentPane

public org.eclipse.draw2d.IFigure getContentPane()
returns the ContentPane (a FreeformFigure) of this NavExpFigure, which is not directly a child, but a child of the scrollpanes viewport

Returns:
the ContentPane (a FreeformFigure) of this NavExpFigure

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)