org.argouml.uml.diagram.ui
Class FigEnumLiteralsCompartment

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.FigFeaturesCompartment
                  extended byorg.argouml.uml.diagram.ui.FigEnumLiteralsCompartment
All Implemented Interfaces:
Cloneable, EventListener, org.tigris.gef.di.GraphicElement, PopupGenerator, PropertyChangeListener, Serializable

public class FigEnumLiteralsCompartment
extends FigFeaturesCompartment

The Fig for the compartment of an Enumeration that shows a list of enumerationliterals.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.argouml.uml.diagram.ui.FigFeaturesCompartment
FigFeaturesCompartment.FigSeperator
 
Field Summary
 
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, plotter
 
Constructor Summary
FigEnumLiteralsCompartment(int x, int y, int w, int h)
          The constructor.
 
Method Summary
 void createFeature()
          Despite its name it creates an EnumerationLiteral, not a feature.
protected  int getNotationType()
           
protected  Collection getUmlCollection()
           
 
Methods inherited from class org.argouml.uml.diagram.ui.FigFeaturesCompartment
addExtraVisualisations, addFig, getMinimumSize, getSeperatorFig, populate, setBoundsImpl, setVisible, updateFigGroupSize
 
Methods inherited from class org.argouml.uml.diagram.ui.FigCompartment
getBigPort
 
Methods inherited from class org.tigris.gef.presentation.FigGroup
addFigs, calcBounds, clone, contains, deepSelect, elements, getDisplayedFigs, getExtraFrameSpace, getFigAt, getFigCount, getFigPosn, getFigs, getFont, getFontFamily, getFontSize, getPrivateData, getSubFigBounds, getTextColor, getTextFillColor, getTextFilled, hit, hitFig, isReshapable, isRotatable, iterator, paint, parseDynObjects, removeAll, removeFig, setExtraFrameSpace, setFigs, setFigs, setFillColor, setFilled, setFont, setFontFamily, setFontSize, setLineColor, setLineWidth, setPrivateData, setTextColor, setTextFillColor, setTextFilled, translateImpl
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, cleanUp, connectionPoint, contains, contains, countCornersContained, createDrag, damage, deleteFromModel, endTrans, 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, getNumPoints, getOwner, getPerimeterLength, getPoint, getPoints, getPopUpActions, getPreferredSize, getResource, getSingle, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hasFillColor, hasLineColor, initAnnotations, insertPoint, intersects, intersectsPerimeter, isAnnotation, isCopyable, isCutable, isLowerRightResizable, isMovable, isRemoveStarted, isResizable, isSelectable, isSelected, isVisible, makeSelection, paint, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, redraw, removeAnnotation, removeFromDiagram, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashed, setDashedString, setEnclosingFig, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setMovable, setNumPoints, setOwner, setPoint, setPoint, setPoint, setPoint, setPoints, setResizable, setResource, setSavingAllowed, setSize, setSize, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, translate, translateAnnotations, unsetAnnotationOwner, updateAnnotationPositions, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigEnumLiteralsCompartment

public FigEnumLiteralsCompartment(int x,
                                  int y,
                                  int w,
                                  int h)
The constructor.

Parameters:
x - x
y - y
w - width
h - height
Method Detail

getUmlCollection

protected Collection getUmlCollection()
Specified by:
getUmlCollection in class FigFeaturesCompartment
Returns:
the collection of UML objects on which this compartment of features is based
See Also:
FigFeaturesCompartment.getUmlCollection()

getNotationType

protected int getNotationType()
Specified by:
getNotationType in class FigFeaturesCompartment
Returns:
the type of the notationprovider used to handle the text in the compartment
See Also:
FigFeaturesCompartment.getNotationType()

createFeature

public void createFeature()
Despite its name it creates an EnumerationLiteral, not a feature. It needs this name because that's what FigNodeModelElement and FigClassifierBox expect. - tfm

Specified by:
createFeature in class FigFeaturesCompartment
See Also:
FigFeaturesCompartment.createFeature()


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook