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);

 
 LINE_DASHED
	LINE_DASHED
   LINE_DOTS
	LINE_DOTS
   LINE_NORMAL
	LINE_NORMAL
   
 LineStyle(float, Color, int)
	LineStyle(float, Color, int)
   
 draw(Graphics, int, int, int, int)
	draw(Graphics, int, int, int, int)
   drawArc(Graphics, int, int, int, int, int, int)
	drawArc(Graphics, int, int, int, int, int, int)
   drawPolygon(Graphics, int[], int[], int)
	drawPolygon(Graphics, int[], int[], int)
   drawRect(Graphics, int, int, int, int)
	drawRect(Graphics, int, int, int, int)
   getColor()
	getColor()
   getType()
	getType()
   getWidth()
	getWidth()
   
 LINE_NORMAL
LINE_NORMAL
public static final int LINE_NORMAL
 LINE_DASHED
LINE_DASHED
public static final int LINE_DASHED
 LINE_DOTS
LINE_DOTS
public static final int LINE_DOTS
 
 LineStyle
LineStyle
 public LineStyle(float w,
                  Color c,
                  int t)
Creates a line style with the given width, color and style(line, dashed...).
 
 draw
draw
 public void draw(Graphics g,
                  int x1,
                  int y1,
                  int x2,
                  int y2)
draws a line between two points.
 drawArc
drawArc
 public void drawArc(Graphics g,
                     int x,
                     int y,
                     int w,
                     int h,
                     int a1,
                     int a2)
draws an arc.
 drawPolygon
drawPolygon
 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.
 drawRect
drawRect
 public void drawRect(Graphics g,
                      int x1,
                      int y1,
                      int x2,
                      int y2)
draws a rectangle.
 getColor
getColor
public Color getColor()
returns the color of the line.
 getType
getType
public int getType()
returns the style of the line.
 getWidth
getWidth
public float getWidth()
returns the width of the line.
All Packages Class Hierarchy This Package Previous Next Index