com.jinsight.jetchart
Class GridCrossedLines

java.lang.Object
  |
  +--com.jinsight.jetchart.GridCrossedLines

public class GridCrossedLines
extends java.lang.Object

The GridCrossedLines class paints perpendicular lines crossing a grid. It has no public constructor and can only be accessed through 'get' methods implemented in classes ScatterGraph and GraphSet.

See Also:
ScatterGraph, GraphSet

Field Summary
static int DASHED
          Constant used to set the grid crossed line style to dashed.
static int SOLID
          Constant used to set the grid crossed line style to solid.
 
Constructor Summary
GridCrossedLines()
           
 
Method Summary
protected  void finalize()
           
 void setColor(java.awt.Color color)
          Sets the color of the crossed grid.
 void setDashSize(int dashSize)
          Sets the size of a dash painted in a dashed crossed grid.
 void setDashSpace(int dashSpace)
          Sets the size of the space between consecutive dashes painted in a dashed crossed grid.
 void setEnabled(boolean isEnabled)
          Enables/disables the crossed grid.
 void setStyle(int style)
          Sets the line style of the crossed grid.
 void setThickness(int thickness)
          Sets the thickness of the crossed grid.
 void setVisibleLinesIndexes(int[] visibleLinesIndexes)
          Sets the indexes of the only lines to be displayed.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOLID

public static final int SOLID
Constant used to set the grid crossed line style to solid.

DASHED

public static final int DASHED
Constant used to set the grid crossed line style to dashed.
Constructor Detail

GridCrossedLines

public GridCrossedLines()
Method Detail

setEnabled

public void setEnabled(boolean isEnabled)
Enables/disables the crossed grid.
Parameters:
isEnabled - A boolean value(true/false).

setColor

public void setColor(java.awt.Color color)
Sets the color of the crossed grid.
Parameters:
color - A Color object.

setStyle

public void setStyle(int style)
Sets the line style of the crossed grid. Default style is solid.
Parameters:
style - An integer value.
See Also:
SOLID, DASHED

setThickness

public void setThickness(int thickness)
Sets the thickness of the crossed grid. Default value is 1 pixel. This method only has effect if chart is 2D and the crossed grid style is solid.
Parameters:
thickness - An integer value.
See Also:
setStyle(int)

setVisibleLinesIndexes

public void setVisibleLinesIndexes(int[] visibleLinesIndexes)
Sets the indexes of the only lines to be displayed. The indexes range from 0 to the maximum number of lines displayed. If chart is vertical the lines indexes increase from left to right, and if chart is horizontal, from top to bottom.
Parameters:
visibleLinesIndexes - An array of integer numbers.

setDashSize

public void setDashSize(int dashSize)
Sets the size of a dash painted in a dashed crossed grid. Default value is 10 pixels.
Parameters:
dashSize - An integer value.
See Also:
setStyle(int), setDashSpace(int)

setDashSpace

public void setDashSpace(int dashSpace)
Sets the size of the space between consecutive dashes painted in a dashed crossed grid. Default value is 5 pixels.
Parameters:
dashSpace - An integer value.
See Also:
setStyle(int), setDashSize(int)

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object