public class LoopBlock extends Block
| Modifier and Type | Field and Description |
|---|---|
static double |
ARC |
static double |
BACK_EDGE_ARC_RADIUS |
static double |
BACK_EDGE_HEIGHT |
static double |
BACK_EDGE_MARGIN |
static double |
CASING |
static double |
PADDING |
| 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 BACK_EDGE_HEIGHT
public static final double BACK_EDGE_MARGIN
public static final double BACK_EDGE_ARC_RADIUS
public static final double CASING
public static final double ARC
public LoopBlock(Block child)
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