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

java.lang.Object
  extended by org.tigris.gef.presentation.Fig
      extended by org.tigris.gef.presentation.FigGroup
          extended by org.tigris.gef.presentation.FigNode
              extended by gov.nih.nci.cagrid.graph.uml.UMLClass
All Implemented Interfaces:
java.awt.event.MouseListener, 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 UMLClass
extends org.tigris.gef.presentation.FigNode

See Also:
Serialized Form

Field Summary
protected  org.tigris.gef.presentation.FigText attribs
           
protected  java.util.Vector attributes
           
 int defaultRendering
           
static int FADED
           
protected  org.tigris.gef.presentation.FigText header
           
protected  java.util.Vector methods
           
protected  java.lang.String name
           
static int NORMAL
           
protected  org.tigris.gef.presentation.FigText opers
           
protected static int PRIVATE
           
protected static int PROTECTED
           
protected static int PUBLIC
           
 
Fields inherited from class org.tigris.gef.presentation.FigNode
_blinkPorts, _highlight, ang135, ang225, ang315, ang45
 
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
UMLClass(java.lang.String name)
           
 
Method Summary
 void addAttribute(Attribute att)
           
 void addAttribute(java.lang.String type, java.lang.String name)
           
 void addMethod(Method meth)
           
 float associationsIntersectRectangle(int x, int y, int width, int height)
           
 void fade()
           
 int getLabelOverlap(int x, int y, int width, int height)
           
 int getLabelOverlap(java.awt.Rectangle r)
           
 void highlight(org.tigris.gef.base.Layer layer)
           
 void refresh()
           
 void setDefaultRendering(int rendering)
           
 void setName(java.lang.String name)
           
 void setNormal()
           
 void setToolTip(java.lang.String text)
           
 
Methods inherited from class org.tigris.gef.presentation.FigNode
addFigEdge, bindPort, cleanUp, clone, contains, deepHitPort, deleteFromModel, dispose, endTrans, getFigEdges, getFigEdges, getHighlight, getPortFig, getPortFigs, getPortSector, hidePorts, hit, hitPort, hitPort, isBlinkPorts, isDragConnectable, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, paint, postLoad, propertyChange, removeFigEdge, removeFromDiagram, removePort, setBlinkPorts, setBounds, setEnclosingFig, setHighlight, setOwner, showPorts, superTranslate, translate, updateEdges
 
Methods inherited from class org.tigris.gef.presentation.FigGroup
addFig, addFigs, calcBounds, deepSelect, elements, getDisplayedFigs, getExtraFrameSpace, getFigAt, getFigs, getFont, getFontFamily, getFontSize, getPrivateData, getSize, getSubFigBounds, getTextColor, getTextFillColor, getTextFilled, hitFig, isReshapable, isRotatable, iterator, parseDynObjects, removeAll, removeFig, setExtraFrameSpace, setFigs, setFigs, setFillColor, setFilled, setFont, setFontFamily, setFontSize, setLineColor, setLineWidth, setPrivateData, setTextColor, setTextFillColor, setTextFilled
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, connectionPoint, contains, contains, countCornersContained, createDrag, damage, drawDashedLine, drawDashedPerimeter, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getBounds, getCenter, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getNumPoints, getOwner, getPerimeterLength, getPoint, getPoints, getPopUpActions, getPreferredSize, getResource, getSingle, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hasFillColor, hasLineColor, initAnnotations, insertPoint, intersects, intersectsPerimeter, isAnnotation, isCopyable, isCutable, isLowerRightResizable, isMovable, isResizable, isSelectable, isSelected, isVisible, makeSelection, OK, pointAlongPerimeter, postSave, preSave, print, redraw, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setCenter, setContext, setDashed, setDashedString, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setMovable, setNumPoints, setPoint, setPoint, setPoint, setPoint, setPoints, setResizable, setResource, setSavingAllowed, setSingle, setSize, setSize, setVisible, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, 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

name

protected java.lang.String name

attributes

protected java.util.Vector attributes

methods

protected java.util.Vector methods

PROTECTED

protected static final int PROTECTED
See Also:
Constant Field Values

PRIVATE

protected static final int PRIVATE
See Also:
Constant Field Values

PUBLIC

protected static final int PUBLIC
See Also:
Constant Field Values

header

protected org.tigris.gef.presentation.FigText header

attribs

protected org.tigris.gef.presentation.FigText attribs

opers

protected org.tigris.gef.presentation.FigText opers

NORMAL

public static int NORMAL

FADED

public static int FADED

defaultRendering

public int defaultRendering
Constructor Detail

UMLClass

public UMLClass(java.lang.String name)
Method Detail

setDefaultRendering

public void setDefaultRendering(int rendering)

highlight

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

setNormal

public void setNormal()

fade

public void fade()

setName

public void setName(java.lang.String name)

setToolTip

public void setToolTip(java.lang.String text)

addAttribute

public void addAttribute(java.lang.String type,
                         java.lang.String name)

addAttribute

public void addAttribute(Attribute att)

addMethod

public void addMethod(Method meth)

refresh

public void refresh()

getLabelOverlap

public int getLabelOverlap(java.awt.Rectangle r)

getLabelOverlap

public int getLabelOverlap(int x,
                           int y,
                           int width,
                           int height)

associationsIntersectRectangle

public float associationsIntersectRectangle(int x,
                                            int y,
                                            int width,
                                            int height)