org.argouml.uml.diagram.ui
Class FigOperationsCompartment

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.FigOperationsCompartment
All Implemented Interfaces:
Cloneable, EventListener, org.tigris.gef.di.GraphicElement, PopupGenerator, PropertyChangeListener, Serializable

public class FigOperationsCompartment
extends FigFeaturesCompartment

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
FigOperationsCompartment(int x, int y, int w, int h)
          The constructor.
 
Method Summary
protected  void addExtraVisualisations(Object umlObject, CompartmentFigText comp)
          Add extra decorations to the compartment fig to visualise an UML object property.
 void createFeature()
          Create a new feature.
protected  int getNotationType()
           
protected  Collection getUmlCollection()
           
 void populate()
          Add handling abstract operations; they are shown in italics.
 
Methods inherited from class org.argouml.uml.diagram.ui.FigFeaturesCompartment
addFig, getMinimumSize, getSeperatorFig, 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

FigOperationsCompartment

public FigOperationsCompartment(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()

addExtraVisualisations

protected void addExtraVisualisations(Object umlObject,
                                      CompartmentFigText comp)
Description copied from class: FigFeaturesCompartment
Add extra decorations to the compartment fig to visualise an UML object property.

Overrides:
addExtraVisualisations in class FigFeaturesCompartment
Parameters:
umlObject - the UML object shown in the given compartment fig
comp - the given compartment fig to be decorated
See Also:
FigFeaturesCompartment.addExtraVisualisations(java.lang.Object, org.argouml.uml.diagram.ui.CompartmentFigText)

populate

public void populate()
Add handling abstract operations; they are shown in italics.

Overrides:
populate in class FigFeaturesCompartment
See Also:
FigFeaturesCompartment.populate()

createFeature

public void createFeature()
Description copied from class: FigFeaturesCompartment
Create a new feature.

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


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook