com.jinsight.jetchart
Class RadarScale

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

public class RadarScale
extends java.lang.Object

A radar graph displays a scale along each radial axis. A radar scale shows the range of values within which a variable is measured. Data points' coordinates are calculated with respect to a scale range.
The class RadarScale implements the properties of a radar scale.


Constructor Summary
RadarScale()
          Creates a RadarScale object.
RadarScale(double minValue, double maxValue, double increment)
          Creates a RadarScale object, passing the minimum, maximum and increment values.
 
Method Summary
protected  void finalize()
           
 void setColor(java.awt.Color color)
          Sets the color of a radar scale labels.
 void setEnabled(boolean isEnabled)
          Enables/disables a radar scale.
 void setFont(java.awt.Font font)
          Sets the font used to display the labels of a radar scale.
 void setLabels(java.lang.String[] labels)
          Sets the scale labels to replace the scale values that are automatically calculated.
 void setLabelsGap(int labelsGap)
          Sets the gap in pixels between a radar scale label and respective scale tick.
 void setRange(double minValue, double maxValue, double increment)
          Sets the range and increment values of a radar scale.
 void setTickLength(int tickLength)
          Sets the tick length in pixels.
 void setTicksColor(java.awt.Color ticksColor)
          Sets the color of the ticks marks of a radar scale.
 void setValueFormat(java.lang.String valueFormat)
          Sets the format of a radar scale values.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadarScale

public RadarScale()
Creates a RadarScale object. Default constructor.

See Also:
RadarGraph.addScale(com.jinsight.jetchart.RadarScale), RadarGraph.removeScale(com.jinsight.jetchart.RadarScale), RadarGraph.removeAllScales(), RadarGraph.getScale(int), RadarGraph.getScalesCount()

RadarScale

public RadarScale(double minValue,
                  double maxValue,
                  double increment)
Creates a RadarScale object, passing the minimum, maximum and increment values.

Parameters:
minValue - A double precision number.
maxValue - A double precision number.
increment - A double precision number.
See Also:
setRange(double, double, double)
Method Detail

setRange

public void setRange(double minValue,
                     double maxValue,
                     double increment)
Sets the range and increment values of a radar scale.

Parameters:
minValue - A double precision number. param maxValue A double precision number.
increment - A double precision number.

setValueFormat

public void setValueFormat(java.lang.String valueFormat)
Sets the format of a radar scale values. Default format is "###,###,##0.00". Please refer to the java.text.DecimalFormat for a list of available patterns.

Parameters:
valueFormat - A String object.

setEnabled

public void setEnabled(boolean isEnabled)
Enables/disables a radar scale. A radar scale is enabled by default.

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

setColor

public void setColor(java.awt.Color color)
Sets the color of a radar scale labels. Default color is Color.black.

Parameters:
color - A Color object.

setTicksColor

public void setTicksColor(java.awt.Color ticksColor)
Sets the color of the ticks marks of a radar scale. Default color is Color.black.

Parameters:
ticksColor - A Color object.

setFont

public void setFont(java.awt.Font font)
Sets the font used to display the labels of a radar scale. Default font is SansSerif,BOLD,10.

Parameters:
font - A Font object.

setLabels

public void setLabels(java.lang.String[] labels)
Sets the scale labels to replace the scale values that are automatically calculated.

Parameters:
labels - An array of strings.

setTickLength

public void setTickLength(int tickLength)
Sets the tick length in pixels. Default length is 4 pixels.

Parameters:
tickLength - An integer number.

setLabelsGap

public void setLabelsGap(int labelsGap)
Sets the gap in pixels between a radar scale label and respective scale tick. The gap is 5 pixels by default.
The gap is measured from the scale tick tip to the border of the rectangular area that surrounds the text of the scale label. The rectangular area dimensions are the text width and height.

Parameters:
labelsGap - An integer number.

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable