org.argouml.uml.diagram.ui
Class FigTextGroup

java.lang.Object
  |
  +--FigGroup
        |
        +--org.argouml.uml.diagram.ui.FigTextGroup

public class FigTextGroup
extends 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
           
 
Constructor Summary
FigTextGroup()
           
 
Method Summary
 void addFig(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROWHEIGHT

public static final int ROWHEIGHT
See Also:
Constant Field Values

supressCalcBounds

protected boolean supressCalcBounds
Constructor Detail

FigTextGroup

public FigTextGroup()
Method Detail

addFig

public void addFig(Fig f)
Adds a FigText to the list with figs. Makes sure that the figtexts do not overlap.

See Also:
org.tigris.gef.presentation.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()
See Also:
org.tigris.gef.presentation.Fig#calcBounds()

delete

public void delete()
See Also:
org.tigris.gef.presentation.Fig#delete()

dispose

public void dispose()
See Also:
org.tigris.gef.presentation.Fig#dispose()


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