public class SequenceBlock extends Block
| Modifier and Type | Field and Description |
|---|---|
static double |
ARC |
static double |
CASING |
static double |
LINE_LENGTH |
static double |
PADDING |
| Constructor and Description |
|---|
SequenceBlock(Block... children) |
SequenceBlock(java.util.List<Block> children) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g2,
double x,
double y,
boolean reversed,
boolean onBackEdge,
int grayLevel) |
double |
getBottomHeight() |
java.awt.geom.Point2D |
getFirstChildPosition(boolean reversed) |
double |
getHeight() |
java.awt.geom.Point2D |
getLastChildPosition(boolean reversed) |
double |
getTopHeight() |
double |
getWidth() |
grayLevelToColor, isOptional, setOptional, setToDimmedForegroundColor, setToForegroundColorpublic static final double PADDING
public static final double LINE_LENGTH
public static final double CASING
public static final double ARC
public SequenceBlock(Block... children)
public SequenceBlock(java.util.List<Block> children)
public double getTopHeight()
getTopHeight in class Blockpublic double getBottomHeight()
getBottomHeight in class Blockpublic void draw(java.awt.Graphics2D g2,
double x,
double y,
boolean reversed,
boolean onBackEdge,
int grayLevel)
public java.awt.geom.Point2D getFirstChildPosition(boolean reversed)
getFirstChildPosition in class Blockpublic java.awt.geom.Point2D getLastChildPosition(boolean reversed)
getLastChildPosition in class Block