uci.uml.visual
Class FigClass

java.lang.Object
  |
  +--uci.gef.Fig
        |
        +--uci.gef.FigGroup
              |
              +--uci.gef.FigNode
                    |
                    +--uci.uml.visual.FigNodeModelElement
                          |
                          +--uci.uml.visual.FigClass

public class FigClass
extends FigNodeModelElement

Class to display graphics for a UML Class in a diagram.

See Also:
Serialized Form

Field Summary
protected  FigText _attr
           
protected  boolean _attrVisible
           
protected  FigRect _bigPort
           
protected  FigText _lastVisible
           
protected  FigText _oper
           
protected  boolean _operVisible
           
 
Fields inherited from class uci.uml.visual.FigNodeModelElement
_enclosedFigs, _encloser, _name, _readyToEdit, ITALIC_LABEL_FONT, LABEL_FONT, MARGIN
 
Fields inherited from class uci.gef.FigNode
_blinkPorts, _figEdges, _highlight, ang135, ang225, ang315, ang45
 
Fields inherited from class uci.gef.FigGroup
_figs
 
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
FigClass()
           
FigClass(GraphModel gm, Object node)
           
 
Method Summary
 Object clone()
           
 FigText getAttributeFig()
           
 Dimension getMinimumSize()
           
 FigText getOperationFig()
           
 Vector getPopUpActions(MouseEvent me)
           
 boolean isAttributeVisible()
          Returns the status of the attribute field.
 boolean isOperationVisible()
          Returns the status of the operation field.
 Selection makeSelection()
           
protected  void modelChanged()
           
 void mousePressed(MouseEvent me)
           
 String placeString()
           
 void setAttributeVisible(boolean isVisible)
          Sets the attribute field visible or not in the class icon.
 void setBounds(int x, int y, int w, int h)
           
 void setEnclosingFig(Fig encloser)
           
 void setOperationVisible(boolean isVisible)
          Sets the operation field visible or not in the class icon.
 void setOwner(Object node)
           
protected  void textEdited(FigText ft)
           
 void translate(int dx, int dy)
           
 
Methods inherited from class uci.uml.visual.FigNodeModelElement
delayedVetoableChange, getEnclosedFigs, getEnclosingFig, getNameFig, getTipString, hitClarifier, keyPressed, keyReleased, keyTyped, mouseClicked, paintClarifiers, propertyChange, updateBounds, vetoableChange
 
Methods inherited from class uci.gef.FigNode
addFigEdge, bindPort, cleanUp, contains, deepHitPort, delete, dispose, endTrans, getBlinkPorts, getFigEdges, getHighlight, getPortFig, getPortFigs, getPortSector, hidePorts, hit, hitPort, hitPort, mouseEntered, mouseExited, mouseReleased, paint, postLoad, removeFigEdge, removePort, setBlinkPorts, setHighlight, showPorts, startTrans, superTranslate, updateEdges
 
Methods inherited from class uci.gef.FigGroup
addFig, calcBounds, elements, getFigs, getFillColor, getFilled, getFont, getFontFamily, getFontSize, getLineColor, getLineWidth, getTextColor, getTextFillColor, getTextFilled, hitFig, isReshapable, isResizable, isRotatable, removeAll, removeFig, setFigs, setFillColor, setFilled, setFont, setFontFamily, setFontSize, setLineColor, setLineWidth, setTextColor, setTextFillColor, setTextFilled
 
Methods inherited from class uci.gef.Fig
addPoint, addPropertyChangeListener, align, center, classNameAndBounds, connectionPoint, contains, contains, countCornersContained, createDrag, damage, drawDashedLine, drawDashedPerimeter, firePropChange, firePropChange, firePropChange, getBounds, getClosestPoint, getDashed, getDashed01, getDashedString, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHeight, getId, getLastPoint, getLayer, getLocation, getLocked, getNumPoints, getOwner, getPerimeterLength, getPoints, getPoints, getPreferedSize, getSize, getTrapRect, getUseTrapRect, getWidth, getX, getXs, getY, getYs, insertPoint, intersects, isLowerRightResizable, isMovable, OK, pointAlongPerimeter, postSave, preSave, print, removePoint, removePropertyChangeListener, reorder, routingRect, setBounds, setDashed, setDashedString, setGroup, setHeight, setLayer, setLocation, setLocation, setLocked, setNumPoints, setPoints, setPoints, setPoints, setPoints, setPoints, setSize, setSize, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_attr

protected FigText _attr

_oper

protected FigText _oper

_bigPort

protected FigRect _bigPort

_lastVisible

protected FigText _lastVisible

_attrVisible

protected boolean _attrVisible

_operVisible

protected boolean _operVisible
Constructor Detail

FigClass

public FigClass()

FigClass

public FigClass(GraphModel gm,
                Object node)
Method Detail

placeString

public String placeString()
Overrides:
placeString in class FigNodeModelElement

clone

public Object clone()
Overrides:
clone in class FigNode

makeSelection

public Selection makeSelection()
Overrides:
makeSelection in class FigNodeModelElement

getPopUpActions

public Vector getPopUpActions(MouseEvent me)
Overrides:
getPopUpActions in class FigNodeModelElement

setOwner

public void setOwner(Object node)
Overrides:
setOwner in class FigNodeModelElement

getOperationFig

public FigText getOperationFig()

getAttributeFig

public FigText getAttributeFig()

isOperationVisible

public boolean isOperationVisible()
Returns the status of the operation field.
Returns:
true if the operations are visible, false otherwise

isAttributeVisible

public boolean isAttributeVisible()
Returns the status of the attribute field.
Returns:
true if the attributes are visible, false otherwise

setOperationVisible

public void setOperationVisible(boolean isVisible)
Sets the operation field visible or not in the class icon.
Parameters:
true - to set the operations visible, false otherwise

setAttributeVisible

public void setAttributeVisible(boolean isVisible)
Sets the attribute field visible or not in the class icon.
Parameters:
true - to set the attributes visible, false otherwise

getMinimumSize

public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Fig

translate

public void translate(int dx,
                      int dy)
Overrides:
translate in class FigNode

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)
Overrides:
setBounds in class FigNode

mousePressed

public void mousePressed(MouseEvent me)
Overrides:
mousePressed in class FigNode

setEnclosingFig

public void setEnclosingFig(Fig encloser)
Overrides:
setEnclosingFig in class FigNodeModelElement

textEdited

protected void textEdited(FigText ft)
                   throws PropertyVetoException
Overrides:
textEdited in class FigNodeModelElement

modelChanged

protected void modelChanged()
Overrides:
modelChanged in class FigNodeModelElement