net.hydromatic.clapham.graph
Class Chart

java.lang.Object
  extended by net.hydromatic.clapham.graph.Chart

public class Chart
extends Object

TODO:

Since:
Aug 26, 2008
Author:
jhyde
 

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

ITER_COLOR

public static final Color ITER_COLOR

EPS_COLOR

public static final Color EPS_COLOR

OPT_COLOR

public static final Color OPT_COLOR

RERUN_COLOR

public static final Color RERUN_COLOR

RERUN1_COLOR

public static final Color RERUN1_COLOR

N_NT_COLOR

public static final Color N_NT_COLOR

showBorders

public final boolean showBorders
See Also:
Constant Field Values

STROKE1

public static final BasicStroke STROKE1

componentArcSize

public int componentArcSize

componentGapWidth

public int componentGapWidth

componentGapHeight

public int componentGapHeight

charFont

public Font charFont

arrowSize

public int arrowSize

lineStroke

public Stroke lineStroke

lineColor

public Color lineColor
color of the line


charColor

public Color charColor
fontColor of the T and NT symbols


symbolGapHeight

public int symbolGapHeight
gap between the line of the symbol and the font


symbolGapWidth

public final int symbolGapWidth
See Also:
Constant Field Values

beginningXCoordinate

public final int beginningXCoordinate
where the drawing starts (Y)

See Also:
Constant Field Values
Constructor Detail

Chart

public Chart(Grammar grammar,
             org.apache.batik.svggen.SVGGraphics2D graphics)
Method Detail

getFontHeight

public int getFontHeight()
needed to make the gap between the symbol and and the font possible


getDimension

public Dimension getDimension()

getStringWidth

public int getStringWidth(Font font,
                          String text)

drawString

public void drawString(String text,
                       Font font,
                       Color color,
                       float x,
                       float y)

setCharFont

public void setCharFont(Font value)

getCharFont

public Font getCharFont()

setCharColor

public void setCharColor(Color value)

getCharColor

public Color getCharColor()

setArrowSize

public void setArrowSize(int value)

getArrowSize

public int getArrowSize()

setSymbolGapHeight

public void setSymbolGapHeight(int value)

getSymbolGapHeight

public int getSymbolGapHeight()

getComponentGapHeight

public int getComponentGapHeight()

setComponentGapWidth

public void setComponentGapWidth(int value)

getComponentGapWidth

public int getComponentGapWidth()

getSymbolSize

public Size getSymbolSize()

restoreDefaultSettings

public void restoreDefaultSettings()

drawComponent

public void drawComponent(Symbol s)

calcDrawing

public void calcDrawing()

SourceForge.net_Logo