|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.hydromatic.clapham.graph.Chart
public class Chart
TODO:
Field Summary | |
---|---|
int |
arrowSize
|
int |
beginningXCoordinate
where the drawing starts (Y) |
Color |
charColor
fontColor of the T and NT symbols |
Font |
charFont
|
int |
componentArcSize
|
int |
componentGapHeight
|
int |
componentGapWidth
|
static Color |
EPS_COLOR
|
static Color |
ITER_COLOR
|
Color |
lineColor
color of the line |
Stroke |
lineStroke
|
static Color |
N_NT_COLOR
|
static Color |
OPT_COLOR
|
static Color |
RERUN_COLOR
|
static Color |
RERUN1_COLOR
|
boolean |
showBorders
|
static BasicStroke |
STROKE1
|
int |
symbolGapHeight
gap between the line of the symbol and the font |
int |
symbolGapWidth
|
Constructor Summary | |
---|---|
Chart(Grammar grammar,
org.apache.batik.svggen.SVGGraphics2D graphics)
|
Method Summary | |
---|---|
void |
calcDrawing()
|
void |
drawComponent(Symbol s)
|
void |
drawString(String text,
Font font,
Color color,
float x,
float y)
|
int |
getArrowSize()
|
Color |
getCharColor()
|
Font |
getCharFont()
|
int |
getComponentGapHeight()
|
int |
getComponentGapWidth()
|
Dimension |
getDimension()
|
int |
getFontHeight()
needed to make the gap between the symbol and and the font possible |
int |
getStringWidth(Font font,
String text)
|
int |
getSymbolGapHeight()
|
Size |
getSymbolSize()
|
void |
restoreDefaultSettings()
|
void |
setArrowSize(int value)
|
void |
setCharColor(Color value)
|
void |
setCharFont(Font value)
|
void |
setComponentGapWidth(int value)
|
void |
setSymbolGapHeight(int value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Color ITER_COLOR
public static final Color EPS_COLOR
public static final Color OPT_COLOR
public static final Color RERUN_COLOR
public static final Color RERUN1_COLOR
public static final Color N_NT_COLOR
public final boolean showBorders
public static final BasicStroke STROKE1
public int componentArcSize
public int componentGapWidth
public int componentGapHeight
public Font charFont
public int arrowSize
public Stroke lineStroke
public Color lineColor
public Color charColor
public int symbolGapHeight
public final int symbolGapWidth
public final int beginningXCoordinate
Constructor Detail |
---|
public Chart(Grammar grammar, org.apache.batik.svggen.SVGGraphics2D graphics)
Method Detail |
---|
public int getFontHeight()
public Dimension getDimension()
public int getStringWidth(Font font, String text)
public void drawString(String text, Font font, Color color, float x, float y)
public void setCharFont(Font value)
public Font getCharFont()
public void setCharColor(Color value)
public Color getCharColor()
public void setArrowSize(int value)
public int getArrowSize()
public void setSymbolGapHeight(int value)
public int getSymbolGapHeight()
public int getComponentGapHeight()
public void setComponentGapWidth(int value)
public int getComponentGapWidth()
public Size getSymbolSize()
public void restoreDefaultSettings()
public void drawComponent(Symbol s)
public void calcDrawing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |