org.argouml.uml.diagram.state.ui
Class FigTransition

java.lang.Object
  |
  +--FigEdgePoly
        |
        +--org.argouml.uml.diagram.ui.FigEdgeModelElement
              |
              +--org.argouml.uml.diagram.state.ui.FigTransition
All Implemented Interfaces:
ArgoEventListener, ArgoNotationEventListener, DelayedVChangeListener, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, NotationContext, java.beans.PropertyChangeListener, java.beans.VetoableChangeListener

public class FigTransition
extends FigEdgeModelElement

See Also:
Serialized Form

Field Summary
protected static Logger cat
           
private  ArrowHeadGreater endArrow
           
 
Fields inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
_name, _stereo, BUNDLE, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN, POPUP_ADD_OFFSET
 
Constructor Summary
FigTransition()
           
FigTransition(java.lang.Object edge)
           
FigTransition(java.lang.Object edge, Layer lay)
           
 
Method Summary
private  double calculateLength(java.awt.Point point1, java.awt.Point point2)
           
protected  int[] flip(int[] Ps)
           
protected  java.lang.Object getDestination()
          Returns the destination of the edge.
protected  java.lang.Object getSource()
          Returns the source of the edge.
protected  void modelChanged(MElementEvent e)
          This is called aftern any part of the UML MModelElement has changed.
 void paint(java.awt.Graphics g)
           
protected  void textEdited(FigText ft)
          This method is called after the user finishes editing a text field that is in the FigEdgeModelElement.
 
Methods inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
canEdit, damage, delayedVetoableChange, delete, dispose, finalize, getContextNotation, getItemUID, getNameFig, getPopUpActions, getSquaredDistance, getStereotypeFig, getTipString, hitClarifier, keyPressed, keyReleased, keyTyped, listRoleItemSet, makeSelection, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, postLoad, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setItemUID, setOwner, setPoints, updateClassifiers, updateNameText, updateStereotypeText, vetoableChange
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static Logger cat

endArrow

private ArrowHeadGreater endArrow
Constructor Detail

FigTransition

public FigTransition()

FigTransition

public FigTransition(java.lang.Object edge,
                     Layer lay)

FigTransition

public FigTransition(java.lang.Object edge)
Method Detail

textEdited

protected void textEdited(FigText ft)
                   throws java.beans.PropertyVetoException
This method is called after the user finishes editing a text field that is in the FigEdgeModelElement. Determine which field and update the model. This class handles the name, subclasses should override to handle other text elements.

Overrides:
textEdited in class FigEdgeModelElement
java.beans.PropertyVetoException

modelChanged

protected void modelChanged(MElementEvent e)
This is called aftern any part of the UML MModelElement has changed. This method automatically updates the name FigText. Subclasses should override and update other parts.

Overrides:
modelChanged in class FigEdgeModelElement

flip

protected int[] flip(int[] Ps)

calculateLength

private double calculateLength(java.awt.Point point1,
                               java.awt.Point point2)

getDestination

protected java.lang.Object getDestination()
Description copied from class: FigEdgeModelElement
Returns the destination of the edge. The destination is the owner of the node the edge travels to in a binary relationship. For instance: for a classifierrole, this is the receiver. Since we don't support n-array associations but only binary relations, source/destination works for all edges.

Overrides:
getDestination in class FigEdgeModelElement
Returns:
Object
See Also:
FigEdgeModelElement.getDestination()

getSource

protected java.lang.Object getSource()
Description copied from class: FigEdgeModelElement
Returns the source of the edge. The source is the owner of the node the edge travels from in a binary relationship. For instance: for a classifierrole, this is the sender.

Overrides:
getSource in class FigEdgeModelElement
Returns:
MModelElement
See Also:
FigEdgeModelElement.getSource()

paint

public void paint(java.awt.Graphics g)


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook