be.ac.vub.cocompose.eclipse.figures
Class ConceptFigure

java.lang.Object
  extended byorg.eclipse.draw2d.Figure
      extended bybe.ac.vub.cocompose.eclipse.figures.ConceptFigure
All Implemented Interfaces:
HandleBounds, IFigure

public class ConceptFigure
extends Figure
implements HandleBounds

Eclipse figure for displaying concepts.

Since:
0.2.0
Version:
0.2.4, 22/01/2004
Author:
Dennis Wagelaar

Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d.Figure
Figure.FigureIterator
 
Nested classes inherited from class org.eclipse.draw2d.IFigure
IFigure.NoInsets
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, 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
ConceptFigure()
          Creates a ConceptFigure.
 
Method Summary
 IFigure getContentPane()
          Gets the pane for embedded contents.
 Rectangle getHandleBounds()
           
 Image getIcon()
          Gets the icon image.
 String getLabel()
          Gets the label string.
 int getLinestyle()
          Gets the line style
 boolean hasChildren()
          Checks if this figure contains other figures.
 void invalidate()
           
 boolean isBold()
          Returns true if the border is bold.
 void setBold(boolean bold)
          Returns true if the border is bold.
 void setIcon(Image icon)
          Sets the icon image.
 void setLabel(String label)
          Sets the label string.
 void setLinestyle(int linestyle)
          Gets the line style
protected  boolean useLocalCoordinates()
           
 
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addFigureListener, addFocusListener, addKeyListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, 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, invalidateTree, isEnabled, isFocusTraversable, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeFigureListener, removeFocusListener, removeKeyListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, 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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.draw2d.IFigure
add, 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, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidateTree, isEnabled, isFocusTraversable, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeFigureListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
 

Constructor Detail

ConceptFigure

public ConceptFigure()
Creates a ConceptFigure.

Method Detail

hasChildren

public boolean hasChildren()
Checks if this figure contains other figures.

Returns:
true if this figure contains other figures.

getHandleBounds

public Rectangle getHandleBounds()
Specified by:
getHandleBounds in interface HandleBounds
See Also:
HandleBounds.getHandleBounds()

getContentPane

public IFigure getContentPane()
Gets the pane for embedded contents.

Returns:
the pane for embedded contents.

getLabel

public String getLabel()
Gets the label string.

Returns:
the label string.

setLabel

public void setLabel(String label)
Sets the label string.

Parameters:
label - - the label string.

isBold

public boolean isBold()
Returns true if the border is bold.

Returns:
true if the border is bold.

setBold

public void setBold(boolean bold)
Returns true if the border is bold.

Parameters:
bold - true if the border is bold.

invalidate

public void invalidate()
Specified by:
invalidate in interface IFigure
See Also:
IFigure.invalidate()

getLinestyle

public int getLinestyle()
Gets the line style

Returns:
the line style
See Also:
Graphics

setLinestyle

public void setLinestyle(int linestyle)
Gets the line style

Parameters:
linestyle - the line style
See Also:
Graphics

setIcon

public void setIcon(Image icon)
Sets the icon image.

Parameters:
icon - the icon.

getIcon

public Image getIcon()
Gets the icon image.

Returns:
the icon.

useLocalCoordinates

protected boolean useLocalCoordinates()
See Also:
Figure.useLocalCoordinates()