org.argouml.uml.diagram.ui
Class FigTextGroup

java.lang.Object
  |
  +--org.tigris.gef.presentation.Fig
        |
        +--org.tigris.gef.presentation.FigGroup
              |
              +--org.argouml.uml.diagram.ui.FigTextGroup
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, org.tigris.gef.ui.PopupGenerator, java.beans.PropertyChangeListener, java.io.Serializable

public class FigTextGroup
extends org.tigris.gef.presentation.FigGroup

Custom class to group FigTexts in such a way that they don't overlap and that the group is shrinked to fit (no whitespace in group).

See Also:
Serialized Form

Field Summary
static int ROWHEIGHT
           
protected  boolean supressCalcBounds
           
 
Fields inherited from class org.tigris.gef.presentation.FigGroup
_dynObjects, _figs
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE
 
Constructor Summary
FigTextGroup()
           
 
Method Summary
 void addFig(org.tigris.gef.presentation.Fig f)
          Adds a FigText to the list with figs.
 void calcBounds()
           
 void delete()
           
 void dispose()
           
protected  void updateFigTexts()
          Updates the FigTexts.
 
Methods inherited from class org.tigris.gef.presentation.FigGroup
clone, contains, elements, getDisplayedFigs, getFigs, getFillColor, getFilled, getFont, getFontFamily, getFontSize, getLineColor, getLineWidth, getPrivateData, getTextColor, getTextFillColor, getTextFilled, hit, hitFig, isReshapable, isResizable, isRotatable, paint, parseDynObjects, removeAll, removeFig, setBounds, setFigs, setFillColor, setFilled, setFont, setFontFamily, setFontSize, setLineColor, setLineWidth, 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, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLocation, getLocked, getMinimumSize, getNumPoints, getOwner, getPerimeterLength, getPoints, getPoints, getPopUpActions, getPreferedSize, getResource, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, initAnnotations, insertPoint, intersects, isAnnotation, isDisplayed, isLowerRightResizable, isMovable, makeSelection, OK, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setCenter, setContext, setDashed, setDashedString, setDisplayed, setEnclosingFig, setGroup, setHandleBox, setHeight, setLayer, setLocation, setLocation, setLocked, setNumPoints, setOwner, setPoints, setPoints, setPoints, setPoints, setPoints, setResource, setSavingAllowed, setSize, setSize, setVisState, setWidth, setX, setXs, setY, setYs, startTrans, stuffBounds, stuffPointAlongPerimeter, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROWHEIGHT

public static final int ROWHEIGHT

supressCalcBounds

protected boolean supressCalcBounds
Constructor Detail

FigTextGroup

public FigTextGroup()
Method Detail

addFig

public void addFig(org.tigris.gef.presentation.Fig f)
Adds a FigText to the list with figs. Makes sure that the figtexts do not overlap.
Overrides:
addFig in class org.tigris.gef.presentation.FigGroup
See Also:
FigGroup.addFig(Fig)

updateFigTexts

protected void updateFigTexts()
Updates the FigTexts. FigTexts without text (equals "") are not shown. The rest of the figtexts are shown non-overlapping. The first figtext added (via addFig) is shown at the bottom of the FigTextGroup.

calcBounds

public void calcBounds()
Overrides:
calcBounds in class org.tigris.gef.presentation.FigGroup
See Also:
Fig.calcBounds()

delete

public void delete()
Overrides:
delete in class org.tigris.gef.presentation.Fig
See Also:
Fig.delete()

dispose

public void dispose()
Overrides:
dispose in class org.tigris.gef.presentation.Fig
See Also:
Fig.dispose()


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook