com.jinsight.jetchart
Class PolarGrid

java.lang.Object
  extended bycom.jinsight.jetchart.PolarGrid

public class PolarGrid
extends java.lang.Object

The polar grid consists of circles painted outwards starting from the center of the polar graph. Each circle's radius length corresponds to the distance from the polar graph center to a tick mark of the horizontal or vertical scale. The polar grid can also display spokes, which are straight lines painted from the graph center towards the outer grid circle. The spokes are displayed at a user-defined angle relative to the right horizontal radius of the polar graph and measured counterclockwise.

See Also:
PolarGraph

Method Summary
 void setColor(java.awt.Color color)
          Sets polar grid color.
 void setEnabled(boolean isEnabled)
          Enables/disables the polar grid.
 void setSpokesColors(java.awt.Color[] spokesColors)
          Sets the color of each grid spoke.
 void setSpokesDegrees(int[] spokesDegrees)
          Sets the degrees of the polar graph's spokes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setColor

public void setColor(java.awt.Color color)
Sets polar grid color. Default color is gray.

Parameters:
color - A Color object.

setSpokesDegrees

public void setSpokesDegrees(int[] spokesDegrees)
Sets the degrees of the polar graph's spokes. The spokes are straight lines painted from the polar graph center to the outer grid circle.

Parameters:
spokesDegrees -
See Also:
setSpokesColors(java.awt.Color[]), XAxis, YAxis

setSpokesColors

public void setSpokesColors(java.awt.Color[] spokesColors)
Sets the color of each grid spoke. The arrays accepted by this method and method setSpokesDegrees are associated by their indexes. Default color is the polar grid color.

Parameters:
spokesColors - An array of Color objects.
See Also:
setSpokesDegrees(int[]), setColor(java.awt.Color)

setEnabled

public void setEnabled(boolean isEnabled)
Enables/disables the polar grid. The polar grid is enabled by default.

Parameters:
isEnabled - A boolean value(true/false).