Modelers

org.topcased.modeler.figures
Class EdgeObjectEditableLabel

java.lang.Object
  extended by org.eclipse.draw2d.Figure
      extended by org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel
          extended by org.topcased.draw2d.figures.Label
              extended by org.topcased.draw2d.figures.EditableLabel
                  extended by org.topcased.modeler.figures.EdgeObjectEditableLabel
All Implemented Interfaces:
org.eclipse.draw2d.IFigure, org.eclipse.draw2d.PositionConstants, ILabel, IEdgeObjectFigure
Direct Known Subclasses:
EdgeObjectOffsetEditableLabel

public class EdgeObjectEditableLabel
extends EditableLabel
implements IEdgeObjectFigure

A figure to represent an editable label edge object.
Creation : 25 oct. 2005


Nested Class Summary
 
Nested classes/interfaces inherited from class org.topcased.draw2d.figures.EditableLabel
EditableLabel.TextProvider
 
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
 
Field Summary
static int EMPTY_WIDTH
           
 
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
 
Fields inherited from interface org.eclipse.draw2d.PositionConstants
ALWAYS_LEFT, ALWAYS_RIGHT, BOTTOM, CENTER, EAST, EAST_WEST, HORIZONTAL, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, NSEW, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TOP_MIDDLE_BOTTOM, VERTICAL, WEST
 
Constructor Summary
EdgeObjectEditableLabel(org.eclipse.draw2d.Connection connection)
           
 
Method Summary
 org.eclipse.draw2d.geometry.Rectangle getBounds()
           
 org.eclipse.draw2d.Connection getConnection()
          Get the owner connexion figure
 boolean isEditable()
          Test wheter this edge object figure is editable or not
 boolean isEmpty()
          Test wheter this edge object figure is empty or not
 
Methods inherited from class org.topcased.draw2d.figures.EditableLabel
getEditableText, getSelected, setColorSelectedLabel, setColorUnselectedLabel, setSelected, setText
 
Methods inherited from class org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel
calculateLabelSize, calculateSubStringTextSize, calculateTextSize, getEllipse, getIcon, getIcon, getIconAlignment, getIconBounds, getIconLocation, getIconSize, getIconTextGap, getMaximumSize, getMinimumSize, getNumberofIcons, getPreferredSize, getSubStringText, getSubStringTextSize, getText, getTextAlignment, getTextBounds, getTextLocation, getTextPlacement, getTextSize, getTextWrapAlignment, getTotalIconSize, hasFocus, hasIcons, invalidate, isSelected, isTextStrikedThrough, isTextTruncated, isTextUnderlined, isTextWrapped, paintFigure, setFocus, setIcon, setIcon, setIconAlignment, setLabelAlignment, setTextAlignment, setTextPlacement, setTextStrikeThrough, setTextUnderline, setTextWrap, setTextWrapAlignment, setTextWrapWidth
 
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, getChildren, getClientArea, getClientArea, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMinimumSize, getParent, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, internalGetEventDispatcher, intersects, 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, 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
 
Methods inherited from interface org.eclipse.draw2d.IFigure
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, 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, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, 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, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
 
Methods inherited from interface org.topcased.draw2d.figures.ILabel
getText
 

Field Detail

EMPTY_WIDTH

public static final int EMPTY_WIDTH
See Also:
Constant Field Values
Constructor Detail

EdgeObjectEditableLabel

public EdgeObjectEditableLabel(org.eclipse.draw2d.Connection connection)
Method Detail

getConnection

public org.eclipse.draw2d.Connection getConnection()
Description copied from interface: IEdgeObjectFigure
Get the owner connexion figure

Specified by:
getConnection in interface IEdgeObjectFigure
Returns:
a connection figure
See Also:
IEdgeObjectFigure.getConnection()

isEmpty

public boolean isEmpty()
Description copied from interface: IEdgeObjectFigure
Test wheter this edge object figure is empty or not

Specified by:
isEmpty in interface IEdgeObjectFigure
Returns:
a boolean
See Also:
IEdgeObjectFigure.isEmpty()

isEditable

public boolean isEditable()
Description copied from interface: IEdgeObjectFigure
Test wheter this edge object figure is editable or not

Specified by:
isEditable in interface IEdgeObjectFigure
Returns:
a boolean
See Also:
IEdgeObjectFigure.isEditable()

getBounds

public org.eclipse.draw2d.geometry.Rectangle getBounds()
Specified by:
getBounds in interface org.eclipse.draw2d.IFigure
Overrides:
getBounds in class org.eclipse.draw2d.Figure
See Also:
Figure.getBounds()

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.