public class StateBubble extends AbstractFigure
| Modifier and Type | Field and Description |
|---|---|
static int |
FINAL_STATE
The style of a finalstate
|
static int |
INITIAL_STATE
The style of an initial state
|
static int |
NORMAL_STATE
The style of a regular state
|
| Constructor and Description |
|---|
StateBubble(double x,
double y,
double width,
double height)
Create a new figure at the given coordinates.
|
StateBubble(double x,
double y,
double width,
double height,
Paint fill)
Create a new figure at the given coordinates and with the
given fill.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBounds()
Get the bounding box of this figure.
|
Shape |
getShape()
Get the shape of this figure.
|
int |
getStateType()
Get the state type.
|
Stroke |
getStroke()
Get the stroke of this figure.
|
Paint |
getStrokePaint()
Get the stroke paint pattern of this figure.
|
boolean |
hit(Rectangle2D r)
Test if this figure intersects the given rectangle.
|
void |
paint(Graphics2D g)
Paint the figure.
|
void |
setFillPaint(Paint p)
Set the fill paint pattern of this figure.
|
void |
setStateType(int type)
Set the type of the state
|
void |
setStroke(BasicStroke s)
Set the stroke of this figure.
|
void |
setStrokePaint(Paint p)
Set the stroke paint pattern of this figure.
|
void |
transform(AffineTransform at)
Transform the figure with the supplied transform.
|
void |
translate(double x,
double y)
Translate the figure with by the given distance.
|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisiblepublic static final int NORMAL_STATE
public static final int INITIAL_STATE
public static final int FINAL_STATE
public StateBubble(double x,
double y,
double width,
double height)
public StateBubble(double x,
double y,
double width,
double height,
Paint fill)
public Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class AbstractFigurepublic Shape getShape()
getShape in interface FiguregetShape in class AbstractFigurepublic int getStateType()
public Stroke getStroke()
public Paint getStrokePaint()
public boolean hit(Rectangle2D r)
hit in interface Figurehit in class AbstractFigurepublic void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class AbstractFigurepublic void setFillPaint(Paint p)
public void setStroke(BasicStroke s)
public void setStateType(int type)
public void setStrokePaint(Paint p)
public void transform(AffineTransform at)
transform in interface Figuretransform in class AbstractFigurepublic void translate(double x,
double y)
translate in interface Figuretranslate in class AbstractFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.