de.upb.swt.epctools.figures
Class ArcFigure

java.lang.Object
  extended by org.eclipse.draw2d.Figure
      extended by org.eclipse.draw2d.Shape
          extended by org.eclipse.draw2d.Polyline
              extended by org.eclipse.draw2d.PolylineConnection
                  extended by de.upb.swt.epctools.figures.ArcFigure
All Implemented Interfaces:
org.eclipse.draw2d.AnchorListener, org.eclipse.draw2d.Connection, org.eclipse.draw2d.IFigure

public class ArcFigure
extends org.eclipse.draw2d.PolylineConnection

This figure represents an Arc.


Nested Class Summary
(package private)  class ArcFigure.LabelFigure
           
 
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
private  Arc m_arc
           
protected  org.eclipse.draw2d.PolylineDecoration m_decoration
           
protected  org.eclipse.draw2d.ImageFigure m_image_figure
           
private  int m_image_offset_x
           
private  int m_image_offset_y
           
protected  org.eclipse.draw2d.Label m_label
           
private  ArcFigure.LabelFigure m_label_figure
           
private  int m_label_figure_offset_x
           
private  int m_label_figure_offset_y
           
private  int m_label_offset_x
           
private  int m_label_offset_y
           
protected  org.eclipse.draw2d.IFigure m_parent_figure
           
static int RECTANGLE_HEIGHT
           
static int RECTANGLE_WIDTH
           
 
Fields inherited from class org.eclipse.draw2d.Shape
lineStyle, lineWidth
 
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.Connection
PROPERTY_CONNECTION_ROUTER, PROPERTY_POINTS
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
ArcFigure(Arc arc, org.eclipse.draw2d.IFigure parent_figure)
           
 
Method Summary
 void paintFigure(org.eclipse.draw2d.Graphics g)
           
 void removeNotify()
           
private  void setLineStyle(Arc arc)
          Sets the lineStyle to DASHED if source == opt RangeConnector, opt RoleItem, opt Input ObjectItem, or if target == opt RangeConnector, opt Output ObjectItem NOTE: this method only works when the figure is created from an existing file (e.g.
protected  void setSubBounds()
           
 
Methods inherited from class org.eclipse.draw2d.PolylineConnection
addNotify, addRoutingListener, anchorMoved, getBounds, getConnectionRouter, getRoutingConstraint, getSourceAnchor, getSourceDecoration, getTargetAnchor, getTargetDecoration, layout, removeRoutingListener, revalidate, setConnectionRouter, setRoutingConstraint, setSourceAnchor, setSourceDecoration, setTargetAnchor, setTargetDecoration
 
Methods inherited from class org.eclipse.draw2d.Polyline
addPoint, containsPoint, fillShape, getEnd, getPoints, getStart, insertPoint, isOpaque, outlineShape, primTranslate, removeAllPoints, removePoint, setEnd, setEndpoints, setLineWidth, setPoint, setPoints, setStart, setTolerance
 
Methods inherited from class org.eclipse.draw2d.Shape
getLineStyle, getLineWidth, setFill, setFillXOR, setLineStyle, setOutline, setOutlineXOR, setXOR
 
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, 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, 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, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, paint, paintBorder, paintChildren, paintClientArea, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, 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.Connection
getPoints, setPoints
 
Methods inherited from interface org.eclipse.draw2d.IFigure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, 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, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, 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
 

Field Detail

RECTANGLE_WIDTH

public static int RECTANGLE_WIDTH

RECTANGLE_HEIGHT

public static int RECTANGLE_HEIGHT

m_arc

private Arc m_arc

m_label

protected org.eclipse.draw2d.Label m_label

m_label_figure

private ArcFigure.LabelFigure m_label_figure

m_decoration

protected org.eclipse.draw2d.PolylineDecoration m_decoration

m_parent_figure

protected org.eclipse.draw2d.IFigure m_parent_figure

m_image_figure

protected org.eclipse.draw2d.ImageFigure m_image_figure

m_label_figure_offset_x

private int m_label_figure_offset_x

m_label_figure_offset_y

private int m_label_figure_offset_y

m_label_offset_x

private int m_label_offset_x

m_label_offset_y

private int m_label_offset_y

m_image_offset_x

private int m_image_offset_x

m_image_offset_y

private int m_image_offset_y
Constructor Detail

ArcFigure

public ArcFigure(Arc arc,
                 org.eclipse.draw2d.IFigure parent_figure)
Method Detail

setLineStyle

private void setLineStyle(Arc arc)
Sets the lineStyle to DASHED if source == opt RangeConnector, opt RoleItem, opt Input ObjectItem, or if target == opt RangeConnector, opt Output ObjectItem NOTE: this method only works when the figure is created from an existing file (e.g. when double-clicking on the diagram file). During editing, somehow the target is not available anymore


setSubBounds

protected void setSubBounds()

paintFigure

public void paintFigure(org.eclipse.draw2d.Graphics g)
Overrides:
paintFigure in class org.eclipse.draw2d.Shape

removeNotify

public void removeNotify()
Specified by:
removeNotify in interface org.eclipse.draw2d.IFigure
Overrides:
removeNotify in class org.eclipse.draw2d.PolylineConnection