org.jupe.editors.classdiagram.graphics.nodes
Class CommentFigure

java.lang.Object
  extended by org.eclipse.draw2d.Figure
      extended by org.jupe.editors.classdiagram.graphics.nodes.NodeFigure
          extended by org.jupe.editors.classdiagram.graphics.nodes.atomics.FoldedCornerFigure
              extended by org.jupe.editors.classdiagram.graphics.nodes.CommentFigure
All Implemented Interfaces:
org.eclipse.draw2d.IFigure

public class CommentFigure
extends FoldedCornerFigure

Figure that represents a uml2-comment. It has no equivalent model element for it is a pure graphic helper.

Author:
Steffen Klüpfel, Michael Pradel

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
CommentFigure(java.lang.String commentText)
          Constructor for a new CommentFigure.
 
Method Summary
 java.lang.String getText()
          Returns the text inside the TextFlow.
 void setText(java.lang.String newText)
          Sets the text of the TextFlow to the given value.
 
Methods inherited from class org.jupe.editors.classdiagram.graphics.nodes.atomics.FoldedCornerFigure
getCornerSize, setCornerSize
 
Methods inherited from class org.eclipse.draw2d.Figure
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, 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, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentFigure

public CommentFigure(java.lang.String commentText)
Constructor for a new CommentFigure. Set size of comment, its border, layout.

Parameters:
commentText - the text to be set in the comment
Method Detail

getText

public java.lang.String getText()
Returns the text inside the TextFlow.

Returns:
the text inside the comment.

setText

public void setText(java.lang.String newText)
Sets the text of the TextFlow to the given value.

Parameters:
newText - the new text value.