com.jinsight.jetchart
Class LabelsZone

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

public class LabelsZone
extends java.lang.Object

A labels zone is a color filled polygon horizontally or vertically painted across the chart area. A labels zone delimits an area between two labels, consecutive or not.
Only two dimensional charts display labels zones.


Field Summary
static int BEHIND
          This constant is used to place the labels zone behind the grid.
static int FRONT
          This constant is used to place the labels zone in front of the grid.
 
Constructor Summary
LabelsZone()
          Default constructor of the LabelsZone class.
LabelsZone(int startIndex, int endIndex)
          Constructor of the LabelsZone class.
 
Method Summary
protected  void finalize()
           
 void setColor(java.awt.Color color)
          Sets the color of the labels zone area.
 void setIndexes(int startIndex, int endIndex)
          Sets the start and end indexes of a LabelsZone object.
static void setPosition(int position)
          Sets the position where all labels zones are painted.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRONT

public static final int FRONT
This constant is used to place the labels zone in front of the grid.

See Also:
Constant Field Values

BEHIND

public static final int BEHIND
This constant is used to place the labels zone behind the grid.

See Also:
Constant Field Values
Constructor Detail

LabelsZone

public LabelsZone()
Default constructor of the LabelsZone class.


LabelsZone

public LabelsZone(int startIndex,
                  int endIndex)
Constructor of the LabelsZone class. This constructor takes two integer values indicating the start and end indexes of a LabelsZone object, taken with respect to the sequence of labels displayed. A chart labels are kept in an array of strings, so the first index of the labels sequence is zero, and the last index is the string array length minus 1. Any values between this range can be assigned to a LabelsZone object.

Parameters:
startIndex - An integer value.
endIndex - An integer value.
See Also:
Graph.setLabels(java.lang.String[])
Method Detail

setIndexes

public void setIndexes(int startIndex,
                       int endIndex)
Sets the start and end indexes of a LabelsZone object. The start and end indexes are taken with respect to the sequence of labels displayed. A chart labels are kept in an array of strings, so the first index of the labels sequence is zero, and the last index is the string array length minus 1. Any values between this range can be passed to this method.

Parameters:
startIndex - An integer value.
endIndex - An integer value.
See Also:
Graph.setLabels(java.lang.String[])

setColor

public void setColor(java.awt.Color color)
Sets the color of the labels zone area. Default color is light gray.

Parameters:
color - A Color object.

setPosition

public static void setPosition(int position)
Sets the position where all labels zones are painted. Labels zones can be painted in front of or behind the grid. The default position is in front of the grid.

Parameters:
position - An integer value.
See Also:
FRONT, BEHIND

finalize

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