gov.nih.nci.cagrid.graph.uml
Class UMLClassAssociation

java.lang.Object
  extended by org.tigris.gef.presentation.Fig
      extended by org.tigris.gef.presentation.FigEdge
          extended by org.tigris.gef.presentation.FigEdgePoly
              extended by gov.nih.nci.cagrid.graph.uml.UMLClassAssociation
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, org.tigris.gef.presentation.Connecter, org.tigris.gef.ui.Highlightable, org.tigris.gef.ui.PopupGenerator

public class UMLClassAssociation
extends org.tigris.gef.presentation.FigEdgePoly

See Also:
Serialized Form

Field Summary
 UMLClass destination
           
 UMLClassAssociationArrowHead destinationArrow
           
 Text destinationLabel
           
 Text destinationMultiplicity
           
protected  float[] fitnessFunction
           
protected static java.awt.Font highlightFont
           
protected  float[] labelToAnchorDistance
           
protected  float[] labelToEdgeOverlaps
           
protected  float[] labelToLabelOverlaps
           
 boolean showDestinationArrow
           
 boolean showSourceArrow
           
 UMLClass source
           
 UMLClassAssociationArrowHead sourceArrow
           
 Text sourceLabel
           
 Text sourceMultiplicity
           
protected static java.awt.Font unhighlightFont
           
 
Fields inherited from class org.tigris.gef.presentation.FigEdgePoly
_initiallyLaidOut
 
Fields inherited from class org.tigris.gef.presentation.FigEdge
_arrowHeadEnd, _arrowHeadStart, _destFigNode, _fig, _highlight, _pathItems, _sourceFigNode, _useNearest
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _dashPeriod, _dashStyle, _filled, _h, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, MIN_SIZE
 
Constructor Summary
UMLClassAssociation(java.lang.String sourceRoleName, java.lang.String sourceMultiplicity, java.lang.String targetRoleName, java.lang.String targetMultiplicity)
           
 
Method Summary
 void fade()
           
 void highlight(org.tigris.gef.base.Layer layer)
           
 float intersectsRectangle(java.awt.Rectangle r)
           
 void paint(java.awt.Graphics g)
           
 void repositionLabelsAndArrowHeads()
           
 void setDestFigNode(UMLClass f)
           
 void setDestinationArrowVisible(boolean show)
           
 void setDestPortFig(UMLClass f)
           
 void setNormal()
           
 void setSourceArrowVisible(boolean show)
           
 void setSourceFigNode(UMLClass f)
           
 void setSourcePortFig(UMLClass f)
           
 
Methods inherited from class org.tigris.gef.presentation.FigEdgePoly
computeRoute, findAvoidPt, insertPoint, layoutEdge, makeEdgeFig, moveVertex, routingRectPoint, segOK, setEndPoints, setInitiallyLaidOut, setPoint, 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, getPoint, getPoints, getPrivateData, getSourceArrowHead, getSourceFigNode, getSourcePortFig, getXs, getYs, hasFillColor, hit, hitFig, intersects, isReshapable, isResizable, isRotatable, paintArrowHeads, paintHighlightLine, paintPathItems, postLoad, propertyChange, removeFromDiagram, removePathItem, removePathItem, setBetweenNearestPoints, setDashed, setDestArrowHead, setDestFigNode, setDestPortFig, setFig, setHighlight, setLineColor, setLineWidth, setNumPoints, setOwner, setPoint, setPoints, 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, damage, deleteFromModel, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getCenter, getClosestPoint, getContext, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLayer, getLocation, getLocked, getMinimumSize, getOwner, getPopUpActions, getPreferredSize, getResource, getSingle, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getY, hasLineColor, initAnnotations, intersectsPerimeter, isAnnotation, isCopyable, isCutable, isLowerRightResizable, isMovable, isSelectable, isSelected, isVisible, makeSelection, OK, pointAlongPerimeter, postSave, preSave, print, redraw, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashedString, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setMovable, setPoint, setPoint, setPrivateData, setResizable, setResource, setSavingAllowed, setSingle, setSize, setSize, setVisible, setWidth, setX, setY, stuffBounds, translate, translateAnnotations, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tigris.gef.ui.Highlightable
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

source

public UMLClass source

destination

public UMLClass destination

sourceLabel

public Text sourceLabel

destinationLabel

public Text destinationLabel

sourceMultiplicity

public Text sourceMultiplicity

destinationMultiplicity

public Text destinationMultiplicity

sourceArrow

public UMLClassAssociationArrowHead sourceArrow

destinationArrow

public UMLClassAssociationArrowHead destinationArrow

showSourceArrow

public boolean showSourceArrow

showDestinationArrow

public boolean showDestinationArrow

labelToLabelOverlaps

protected float[] labelToLabelOverlaps

labelToEdgeOverlaps

protected float[] labelToEdgeOverlaps

labelToAnchorDistance

protected float[] labelToAnchorDistance

fitnessFunction

protected float[] fitnessFunction

highlightFont

protected static java.awt.Font highlightFont

unhighlightFont

protected static java.awt.Font unhighlightFont
Constructor Detail

UMLClassAssociation

public UMLClassAssociation(java.lang.String sourceRoleName,
                           java.lang.String sourceMultiplicity,
                           java.lang.String targetRoleName,
                           java.lang.String targetMultiplicity)
Method Detail

setSourceArrowVisible

public void setSourceArrowVisible(boolean show)

setDestinationArrowVisible

public void setDestinationArrowVisible(boolean show)

highlight

public void highlight(org.tigris.gef.base.Layer layer)

fade

public void fade()

setNormal

public void setNormal()

repositionLabelsAndArrowHeads

public void repositionLabelsAndArrowHeads()

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class org.tigris.gef.presentation.FigEdgePoly

intersectsRectangle

public float intersectsRectangle(java.awt.Rectangle r)

setSourceFigNode

public void setSourceFigNode(UMLClass f)

setDestFigNode

public void setDestFigNode(UMLClass f)

setSourcePortFig

public void setSourcePortFig(UMLClass f)

setDestPortFig

public void setDestPortFig(UMLClass f)