All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----MSBChart.LineStyle
This class draws lines. It contains the description of how a line looks like. If you are using jdk 1.1 some features may not be available (width and style).
The following code creates the line style for the grid of this chart:
XAxis.gridStyle=new LineStyle(0.2f,java.awt.Color.darkGray,LineStyle.LINE_DASHED);
public static final int LINE_NORMAL
public static final int LINE_DASHED
public static final int LINE_DOTS
public LineStyle(float w, Color c, int t)
Creates a line style with the given width, color and style(line, dashed...).
public void draw(Graphics g, int x1, int y1, int x2, int y2)
draws a line between two points.
public void drawArc(Graphics g, int x, int y, int w, int h, int a1, int a2)
draws an arc.
public void drawPolygon(Graphics g, int x[], int y[], int c)
draws a polygon. X and Y contains the points and c the number of points.
public void drawRect(Graphics g, int x1, int y1, int x2, int y2)
draws a rectangle.
public Color getColor()
returns the color of the line.
public int getType()
returns the style of the line.
public float getWidth()
returns the width of the line.
All Packages Class Hierarchy This Package Previous Next Index