All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.samples.statechart.SuperState

CH.ifa.draw.standard.AbstractFigure
   |
   +----CH.ifa.draw.standard.CompositeFigure
           |
           +----CH.ifa.draw.contrib.xcomp.ManagedComposite
                   |
                   +----CH.ifa.draw.contrib.xcomp.FrameComposite
                           |
                           +----CH.ifa.draw.samples.statechart.SuperState

public class SuperState
extends FrameComposite

Constructor Index

 o SuperState()
 o SuperState(Point, Point)

Method Index

 o accept(Figure)
Default is to accept all figures.
 o add(Figure)
Adds a figure to the list of figures.
 o created()
Creates the default state compartment for this super state.
 o createRootFigure()
Creates a RootRoundRectangleFigure.
 o createRootFigure(Point, Point)
Creates a RootRoundRectangleFigure.
 o draw(Graphics)
Draws all the contained figures.
 o drawDividers(Graphics)
Draws a horizontal solid line after each name compartment and a vertical dashed line after each state machine compartment (except the last).
 o getDefaultLayoutManager()
 o getInsets()
Returns insets of (3,3,3,3).
 o remove(Figure)
Removes a figure from the composite.

Constructors

 o SuperState
 public SuperState()
 o SuperState
 public SuperState(Point origin,
                   Point corner)

Methods

 o createRootFigure
 protected RootFigure createRootFigure()
Creates a RootRoundRectangleFigure.

Overrides:
createRootFigure in class FrameComposite
 o createRootFigure
 protected RootFigure createRootFigure(Point origin,
                                       Point corner)
Creates a RootRoundRectangleFigure.

Overrides:
createRootFigure in class FrameComposite
 o created
 public void created()
Creates the default state compartment for this super state.

Overrides:
created in class AbstractFigure
 o getDefaultLayoutManager
 protected DrawLayoutManager getDefaultLayoutManager()
Overrides:
getDefaultLayoutManager in class CompositeFigure
 o getInsets
 public Insets getInsets()
Returns insets of (3,3,3,3).

Overrides:
getInsets in class FrameComposite
 o accept
 public boolean accept(Figure figure)
Default is to accept all figures.

Overrides:
accept in class FrameComposite
 o 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).

 o add
 public Figure add(Figure figure)
Adds a figure to the list of figures.

Overrides:
add in class CompositeFigure
 o remove
 public Figure remove(Figure figure)
Removes a figure from the composite.

Overrides:
remove in class CompositeFigure
 o draw
 public void draw(Graphics g)
Draws all the contained figures. Calls drawDividers() (this is a template method).

See Also:
draw

All Packages  Class Hierarchy  This Package  Previous  Next  Index