org.argouml.uml.diagram.static_structure.ui
Class FigFeature

java.lang.Object
  extended byorg.tigris.gef.presentation.Fig
      extended byorg.tigris.gef.presentation.FigText
          extended byorg.argouml.uml.diagram.ui.FigSingleLineText
              extended byorg.argouml.uml.diagram.ui.CompartmentFigText
                  extended byorg.argouml.uml.diagram.static_structure.ui.FigFeature
All Implemented Interfaces:
Cloneable, EventListener, org.tigris.gef.di.GraphicElement, KeyListener, MouseListener, PopupGenerator, PropertyChangeListener, Serializable

public class FigFeature
extends CompartmentFigText

Fig to show features in class or interface like attributes or operations. TODO: This doesn't have any behavior specific to Features. It's really just an item for a ListCompartment and should probably have a better name tfm - 20060310

Since:
Dec 1, 2002
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.presentation.FigText
END_EDITING, IGNORE, INSERT, JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, MIN_TEXT_WIDTH
 
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
FigFeature(int x, int y, int w, int h, Fig aFig, NotationProvider4 np)
          Constructor for FigFeature.
 
Method Summary
 Selection makeSelection()
          Via makeSelection we can add a custom selection class.
 void setFilled(boolean filled)
           
 void setTextFilled(boolean filled)
           
 
Methods inherited from class org.argouml.uml.diagram.ui.CompartmentFigText
getFilled, getLineColor, getNotationProvider, isHighlighted, setHighlighted
 
Methods inherited from class org.argouml.uml.diagram.ui.FigSingleLineText
getMinimumSize, isStartEditingKey
 
Methods inherited from class org.tigris.gef.presentation.FigText
append, append, calcBounds, deleteLastChar, deleteLastCharFromString, drawString, getAllowsTab, getBold, getBotMargin, getEditable, getExpandOnly, getFont, getFontFamily, getFontMetrics, getFontSize, getItalic, getJustification, getJustificationByName, getLeftMargin, getLineSpacing, getMinimumHeight, getMultiLine, getReturnAction, getRightMargin, getTabAction, getText, getTextBounds, getTextColor, getTextEditorClass, getTextFillColor, getTextFilled, getTextFriend, getTopMargin, getUnderline, hit, isWordWrap, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, paint, setAllowsTab, setBold, setBotMargin, setBoundsImpl, setEditable, setExpandOnly, setFont, setFontFamily, setFontSize, setItalic, setJustification, setJustificationByName, setLeftMargin, setLineSeparator, setLineSpacing, setMultiLine, setReturnAction, setRightMargin, setTabAction, setText, setText, setTextColor, setTextEditorClass, setTextFillColor, setTopMargin, setUnderline, setWordWrap, startTextEditor, stuffMinimumSize
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, center, classNameAndBounds, cleanUp, clone, connectionPoint, contains, contains, contains, countCornersContained, createDrag, damage, deleteFromModel, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getBounds, getCenter, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLineWidth, getLocation, getLocked, getNumPoints, getOwner, getPerimeterLength, getPoint, getPoints, getPopUpActions, getPreferredSize, getPrivateData, getResource, getSingle, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hasFillColor, hasLineColor, initAnnotations, insertPoint, intersects, intersectsPerimeter, isAnnotation, isCopyable, isCutable, isLowerRightResizable, isMovable, isRemoveStarted, isReshapable, isResizable, isRotatable, isSelectable, isSelected, isVisible, 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, setFillColor, setGroup, setHandleBox, setHeight, setLayer, setLineColor, setLineWidth, setLocation, setLocation, setLocked, setMovable, setNumPoints, setOwner, setPoint, setPoint, setPoint, setPoint, setPoints, setPrivateData, setResizable, setResource, setSavingAllowed, setSize, setSize, setVisible, setWidth, setX, setXs, setY, setYs, stuffBounds, stuffPointAlongPerimeter, translate, translateAnnotations, translateImpl, unsetAnnotationOwner, updateAnnotationPositions, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigFeature

public FigFeature(int x,
                  int y,
                  int w,
                  int h,
                  Fig aFig,
                  NotationProvider4 np)
Constructor for FigFeature.

Parameters:
x - x
y - x
w - w
h - h
aFig - the fig
np - the notation provider for the text
Method Detail

makeSelection

public Selection makeSelection()
Via makeSelection we can add a custom selection class. This way we can add a custom keyevent handler for our attributes or operations.

See Also:
Fig.makeSelection()

setTextFilled

public void setTextFilled(boolean filled)
See Also:
FigText.setTextFilled(boolean)

setFilled

public void setFilled(boolean filled)
See Also:
Fig.setFilled(boolean)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook