arom.gui.ide
Class FigRole

java.lang.Object
  |
  +--uci.gef.Fig
        |
        +--uci.gef.FigEdge
              |
              +--uci.gef.FigEdgeLine
                    |
                    +--arom.gui.ide.FigRole

public class FigRole
extends uci.gef.FigEdgeLine
implements Serializable

The graphical item that represents a role. The role is represented by a solid line which connect the association in which the role is defined and the class corresponding to the role. The name of the role is displayed in the middle of the line representing this role.

Version:
0.2
See Also:
Serialized Form

Inner classes inherited from class uci.gef.FigEdge
uci.gef.FigEdge.PathItem
 
Fields inherited from class uci.gef.FigEdge
_arrowHeadEnd, _arrowHeadStart, _destFigNode, _destPortFig, _fig, _highlight, _pathItems, _sourceFigNode, _sourcePortFig, _useNearest
 
Fields inherited from class uci.gef.Fig
_dashes, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _w, _x, _y, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE
 
Constructor Summary
FigRole(AromRole role)
           
 
Method Summary
 Rectangle getBounds()
           
 String getTipString(MouseEvent me)
           
 void paint(Graphics g)
           
 void setRole(AromRole role)
           
 
Methods inherited from class uci.gef.FigEdgeLine
computeRoute, makeEdgeFig
 
Methods inherited from class uci.gef.FigEdge
addPathItem, calcBounds, cleanUp, contains, delete, getBetweenNearestPoints, getDashed, getDestArrowHead, getDestFigNode, getDestPortFig, getFig, getHighlight, getLineColor, getLineWidth, getNumPoints, getPathItem, getPathItemsRaw, getPerimeterLength, getPoints, getPoints, getSourceArrowHead, getSourceFigNode, getSourcePortFig, getXs, getYs, hit, hitFig, intersects, isReshapable, isResizable, isRotatable, paintArrowHeads, paintHighlightLine, paintPathItems, postLoad, propertyChange, removePathItem, setBetweenNearestPoints, setDashed, setDestArrowHead, setDestFigNode, setDestPortFig, setFig, setHighlight, setLineColor, setLineWidth, setNumPoints, setOwner, setPoints, setPoints, setPoints, setSourceArrowHead, setSourceFigNode, setSourcePortFig, setXs, setYs, stuffPointAlongPerimeter, translateEdge, updatePathItemLocations
 
Methods inherited from class uci.gef.Fig
addPoint, addPropertyChangeListener, align, center, classNameAndBounds, clone, connectionPoint, contains, contains, countCornersContained, createDrag, damage, dispose, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getClosestPoint, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHeight, getId, getLayer, getLocation, getLocked, getMinimumSize, getOwner, getPopUpActions, getPreferedSize, getSize, getTrapRect, getUseTrapRect, getWidth, getX, getY, insertPoint, isLowerRightResizable, isMovable, OK, pointAlongPerimeter, postSave, preSave, print, removePoint, removePropertyChangeListener, reorder, routingRect, setBounds, setBounds, setDashedString, setEnclosingFig, setFillColor, setFilled, setGroup, setHeight, setLayer, setLocation, setLocation, setLocked, setPoints, setPoints, setSize, setSize, setWidth, setX, setY, startTrans, stuffBounds, translate, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigRole

public FigRole(AromRole role)
Method Detail

setRole

public void setRole(AromRole role)

getTipString

public String getTipString(MouseEvent me)
Overrides:
getTipString in class uci.gef.Fig

paint

public void paint(Graphics g)
Overrides:
paint in class uci.gef.FigEdgeLine

getBounds

public Rectangle getBounds()
Overrides:
getBounds in class uci.gef.FigEdge