|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractHintLayout
de.cau.cs.kieler.synccharts.custom.OldStateLayout
public class OldStateLayout
A special layout for states: If the state is simple, its name is written in the center and the compartments are reduced in size to zero. If the state is complex, the name is written on top and the compartments are laid out in a column below the name.
Field Summary | |
---|---|
static int |
COND_HEIGHT
minimal height for conditional states. |
static int |
COND_WIDTH
minimal width for conditional states. |
static int |
MIN_HEIGHT
minimal height for normal states. |
static int |
MIN_WIDTH
minimal width for normal states. |
Fields inherited from class org.eclipse.draw2d.AbstractLayout |
---|
isObservingVisibility, preferredSize |
Constructor Summary | |
---|---|
OldStateLayout()
Creates a state layout. |
Method Summary | |
---|---|
Dimension |
calculateMinimumSize(IFigure stateFigure,
int whint,
int hhint)
Returns the minimum size of the figure. |
protected Dimension |
calculatePreferredSize(IFigure stateFigure,
int whint,
int hhint)
Calculate the preferred size of the figure. |
void |
checkNewSize(IFigure stateFigure,
State state,
Rectangle newBounds)
Checks the new size of the state figure. |
void |
layout(IFigure stateFigure)
|
Methods inherited from class org.eclipse.draw2d.AbstractHintLayout |
---|
getMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVertically |
Methods inherited from class org.eclipse.draw2d.AbstractLayout |
---|
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIN_HEIGHT
public static final int MIN_WIDTH
public static final int COND_HEIGHT
public static final int COND_WIDTH
Constructor Detail |
---|
public OldStateLayout()
Method Detail |
---|
public void layout(IFigure stateFigure)
public Dimension calculateMinimumSize(IFigure stateFigure, int whint, int hhint)
calculateMinimumSize
in class AbstractHintLayout
stateFigure
- the figure on which this layout is installedwhint
- the width hinthhint
- the height hint
protected Dimension calculatePreferredSize(IFigure stateFigure, int whint, int hhint)
calculatePreferredSize
in class AbstractLayout
stateFigure
- the figurewhint
- the width hinthhint
- the height hint
public void checkNewSize(IFigure stateFigure, State state, Rectangle newBounds)
stateFigure
- the state figurestate
- the corresponding model elementnewBounds
- the new bounds of the state figure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |