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

java.lang.Object
  |
  +--org.tigris.gef.presentation.Fig
        |
        +--org.tigris.gef.presentation.FigEdge
              |
              +--org.tigris.gef.presentation.FigEdgePoly
                    |
                    +--org.argouml.uml.diagram.ui.FigEdgeModelElement
                          |
                          +--org.argouml.uml.diagram.state.ui.FigTransition
All Implemented Interfaces:
ArgoEventListener, ArgoNotationEventListener, java.lang.Cloneable, DelayedVChangeListener, java.util.EventListener, org.tigris.gef.ui.Highlightable, java.awt.event.KeyListener, ru.novosoft.uml.MElementListener, java.awt.event.MouseListener, NotationContext, org.tigris.gef.ui.PopupGenerator, java.beans.PropertyChangeListener, java.io.Serializable, java.beans.VetoableChangeListener

public class FigTransition
extends FigEdgeModelElement

See Also:
Serialized Form

Inner classes inherited from class org.tigris.gef.presentation.FigEdge
org.tigris.gef.presentation.FigEdge.PathItem
 
Field Summary
protected static org.apache.log4j.Category cat
           
 
Fields inherited from class org.argouml.uml.diagram.ui.FigEdgeModelElement
_name, _stereo, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN
 
Fields inherited from class org.tigris.gef.presentation.FigEdgePoly
_initiallyLaidOut
 
Fields inherited from class org.tigris.gef.presentation.FigEdge
_arrowHeadEnd, _arrowHeadStart, _destFigNode, _destPortFig, _fig, _highlight, _pathItems, _sourceFigNode, _sourcePortFig, _useNearest
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE
 
Constructor Summary
FigTransition()
           
FigTransition(java.lang.Object edge)
           
FigTransition(java.lang.Object edge, org.tigris.gef.base.Layer lay)
           
 
Method Summary
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(ru.novosoft.uml.MElementEvent e)
          This is called aftern any part of the UML MModelElement has changed.
protected  void textEdited(org.tigris.gef.presentation.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, hit, hitClarifier, keyPressed, keyReleased, keyTyped, listRoleItemSet, makeSelection, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, notationAdded, notationChanged, notationProviderAdded, notationProviderRemoved, notationRemoved, paintClarifiers, propertyChange, propertySet, recovered, removed, renderingChanged, roleAdded, roleRemoved, setItemUID, setOwner, updateClassifiers, updateStereotypeText, vetoableChange
 
Methods inherited from class org.tigris.gef.presentation.FigEdgePoly
computeRoute, findAvoidPt, insertPoint, layoutEdge, makeEdgeFig, moveVertex, paint, routingRectPoint, segOK, setEndPoints, setInitiallyLaidOut, setPoints, tryRoute
 
Methods inherited from class org.tigris.gef.presentation.FigEdge
addPathItem, calcBounds, cleanUp, contains, getBetweenNearestPoints, getBounds, getDashed, getDestArrowHead, getDestFigNode, getDestPortFig, getFig, getFirstPoint, getHighlight, getLastPoint, getLineColor, getLineWidth, getNumPoints, getPathItem, getPathItemFig, getPathItemFigs, getPathItemsRaw, getPerimeterLength, getPoints, getPoints, getPrivateData, getSourceArrowHead, getSourceFigNode, getSourcePortFig, getXs, getYs, hitFig, intersects, isReshapable, isResizable, isRotatable, paintArrowHeads, paintHighlightLine, paintPathItems, postLoad, removePathItem, removePathItem, setBetweenNearestPoints, setDashed, setDestArrowHead, setDestFigNode, setDestPortFig, setFig, setHighlight, setLineColor, setLineWidth, setNumPoints, setPoints, setPoints, setPrivateData, setSourceArrowHead, setSourceFigNode, setSourcePortFig, setXs, setYs, stuffPointAlongPerimeter, translateEdge, updatePathItemLocations
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, clone, connectionPoint, contains, contains, countCornersContained, createDrag, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getClosestPoint, getContext, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLayer, getLocation, getLocked, getMinimumSize, getOwner, getPreferedSize, getResource, getSize, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getY, initAnnotations, isAnnotation, isDisplayed, isLowerRightResizable, isMovable, OK, pointAlongPerimeter, postSave, preSave, print, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashedString, setDisplayed, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setPoints, setPoints, setResource, setSavingAllowed, setSize, setSize, setVisState, setWidth, setX, setY, startTrans, stuffBounds, translate, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tigris.gef.ui.Highlightable
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

cat

protected static org.apache.log4j.Category cat
Constructor Detail

FigTransition

public FigTransition()

FigTransition

public FigTransition(java.lang.Object edge,
                     org.tigris.gef.base.Layer lay)

FigTransition

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

textEdited

protected void textEdited(org.tigris.gef.presentation.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

modelChanged

protected void modelChanged(ru.novosoft.uml.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)

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
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
See Also:
FigEdgeModelElement.getSource()


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook