All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.samples.statechart.State
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractFigure
|
+----CH.ifa.draw.standard.CompositeFigure
|
+----CH.ifa.draw.standard.PanelComposite
|
+----CH.ifa.draw.standard.CompartmentPanel
|
+----CH.ifa.draw.samples.statechart.State
- public class State
- extends CompartmentPanel
-
fCompMenu
- The popup menu for choosing which kind of compartment to create.
-
State()
-
-
State(Point, Point)
-
-
createCenteredListAt(int, int)
- Create a new compartment at the point (x,y).
-
createCompartmentAt(int, int, DrawingView)
- Create a new compartment at the point (x,y).
-
createCompartments(Point, Point)
- Creates one FigureHolder compartment by default.
-
createFigureHolderAt(int, int)
- Create a FigureHolder that is inserted after the compartment
found currently at (x,y).
-
createRootFigure()
- Creates a RootRoundRectangleFigure.
-
createRootFigure(Point, Point)
- Creates a RootRoundRectangleFigure.
-
drawDividers(Graphics)
- Draws a horizontal solid line after each name compartment and a
vertical dashed line after each state machine compartment (except the
last).
-
getCompartmentPopup(DrawingView)
- Gets the popup menu for choosing which kind of compartment to create.
-
getLayout(Point, Point)
- Computes and returns the layout of figure holders within the box defined
by origin and corner.
-
getMinimumLayout()
- Returns a vector of rectangles representing the minimum space required
by the compartments arranged according to the current layout strategy.
-
removeCompartmentAt(int, int)
- Delete the compartment at the point (x,y).
-
setCompartmentMenuItems(PopupMenu, int, int)
- Fills the new compartment choosing menu with action listeners to
invoke the appropriate compartment creation methods of this.
fCompMenu
protected static PopupMenu fCompMenu
- The popup menu for choosing which kind of compartment to create.
State
public State()
State
public State(Point origin,
Point corner)
getCompartmentPopup
protected static PopupMenu getCompartmentPopup(DrawingView view)
- Gets the popup menu for choosing which kind of compartment to create.
Creates the menu when called for the first time.
createRootFigure
protected RootFigure createRootFigure()
- Creates a RootRoundRectangleFigure.
- Overrides:
- createRootFigure in class PanelComposite
createRootFigure
protected RootFigure createRootFigure(Point origin,
Point corner)
- Creates a RootRoundRectangleFigure.
- Overrides:
- createRootFigure in class PanelComposite
createCompartments
protected void createCompartments(Point origin,
Point corner)
- Creates one FigureHolder compartment by default.
- Overrides:
- createCompartments in class CompartmentPanel
getMinimumLayout
protected Vector getMinimumLayout()
- Returns a vector of rectangles representing the minimum space required
by the compartments arranged according to the current layout strategy.
The name compartments are tiled vertically (top-down) and the and - state machine
compartments are tiled horizontally (from left to right).
- Overrides:
- getMinimumLayout in class CompartmentPanel
getLayout
protected Vector getLayout(Point origin,
Point corner)
- Computes and returns the layout of figure holders within the box defined
by origin and corner. The layout is returned as a vector of rectangles
that holds the new display boxes of the holders. The name compartments
are tiled vertically (top-down) and the and - state machine
compartments are tiled horizontally (from left to right).
The name compartments are stretched horizontally to fill the display box.
The state machine compartments are stretched vertically to fill the
display box - the last compartment is also stretched horizontally.
- Overrides:
- getLayout in class CompartmentPanel
drawDividers
public void drawDividers(Graphics g)
- Draws a horizontal solid line after each name compartment and a
vertical dashed line after each state machine compartment (except the
last).
- Overrides:
- drawDividers in class CompartmentPanel
createFigureHolderAt
public void createFigureHolderAt(int x,
int y)
- Create a FigureHolder that is inserted after the compartment
found currently at (x,y).
createCenteredListAt
public void createCenteredListAt(int x,
int y)
- Create a new compartment at the point (x,y). The created compartment
is a Centering Holder that is inserted after the compartment
found currently at (x,y). If the compartment under (x,y) is not
a Centering Holder (name compartment), adds the new compartment
as the last name compartment.
setCompartmentMenuItems
protected void setCompartmentMenuItems(PopupMenu chooseCompartment,
int x,
int y)
- Fills the new compartment choosing menu with action listeners to
invoke the appropriate compartment creation methods of this.
createCompartmentAt
public void createCompartmentAt(int x,
int y,
DrawingView view)
- Create a new compartment at the point (x,y). The created compartment
is a default FigureHolder that is inserted after the compartment
found currently at (x,y).
- Overrides:
- createCompartmentAt in class CompartmentPanel
removeCompartmentAt
public void removeCompartmentAt(int x,
int y)
- Delete the compartment at the point (x,y). The contents of the
compartment is merged with the previous compartment.
- Overrides:
- removeCompartmentAt in class CompartmentPanel
All Packages Class Hierarchy This Package Previous Next Index