org.argouml.uml.diagram.ui
Class FigNameCompartment

java.lang.Object
  extended byorg.tigris.gef.presentation.Fig
      extended byorg.tigris.gef.presentation.FigGroup
          extended byorg.argouml.uml.diagram.ui.FigCompartment
              extended byorg.argouml.uml.diagram.ui.FigNameCompartment
All Implemented Interfaces:
Cloneable, EventListener, org.tigris.gef.ui.PopupGenerator, PropertyChangeListener, Serializable

public class FigNameCompartment
extends FigCompartment

A specialist for displaying the model element name and stereotype.

See Also:
Serialized Form

Field Summary
private  FigName name
           
private  FigStereotype stereotype
           
 
Fields inherited from class org.tigris.gef.presentation.FigGroup
_dynObjects, _extraFrameSpace
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _dashPeriod, _dashStyle, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _selected, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, MIN_SIZE
 
Constructor Summary
FigNameCompartment(int x, int y, int w, int h, boolean expandOnly)
          The constructor.
 
Method Summary
 Object clone()
           
 String getName()
           
 String getStereotype()
           
 void setName(String n)
           
 void setStereotype(String s)
           
 
Methods inherited from class org.argouml.uml.diagram.ui.FigCompartment
getLineWidth, setLineWidth
 
Methods inherited from class org.tigris.gef.presentation.FigGroup
addFig, addFigs, calcBounds, contains, deepSelect, elements, getDisplayedFigs, getExtraFrameSpace, getFigAt, getFigs, getFigs, getFont, getFontFamily, getFontSize, getPrivateData, getSize, getSubFigBounds, getTextColor, getTextFillColor, getTextFilled, hit, hitFig, isReshapable, isRotatable, iterator, paint, parseDynObjects, removeAll, removeFig, setBounds, setExtraFrameSpace, setFigs, setFigs, setFillColor, setFilled, setFont, setFontFamily, setFontSize, setLineColor, setPrivateData, setTextColor, setTextFillColor, setTextFilled, translate
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, cleanUp, connectionPoint, contains, contains, countCornersContained, createDrag, damage, delete, deleteFromModel, dispose, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getBounds, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLineColor, 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, isCopieable, isCopyable, isCutable, isDisplayed, isLowerRightResizable, isMovable, isResizable, isSelected, isVisible, makeSelection, OK, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, redraw, removeAnnotation, removeAnnotation, removeFromDiagram, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setCenter, setContext, setDashed, setDashedString, setDisplayed, setEnclosingFig, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setMovable, setNumPoints, setOwner, setPoint, setPoint, setPoint, setPoint, setPoints, setPoints, setPoints, setPoints, setPoints, setResizable, setResource, setSavingAllowed, setSelected, setSingle, setSize, setSize, setVisible, setVisState, 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
 

Field Detail

stereotype

private FigStereotype stereotype

name

private FigName name
Constructor Detail

FigNameCompartment

public FigNameCompartment(int x,
                          int y,
                          int w,
                          int h,
                          boolean expandOnly)
The constructor.

Parameters:
x - horizontal distance to the left
y - vertical distance from the top
w - width
h - heigth
expandOnly - true if the fig can grow if the text changes, but not shrink
Method Detail

setStereotype

public void setStereotype(String s)
Parameters:
s - the stereotype name string

getStereotype

public String getStereotype()
Returns:
the stereotype name string

setName

public void setName(String n)
Parameters:
n - the name string

getName

public String getName()
Returns:
the name string

clone

public Object clone()
See Also:
Object.clone()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook