|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jinsight.jetchart.Scale
This class implements the properties and methods of a chart scale. A scale
has no public constructor, and can only be accessed through 'get' methods
implemented in classes ScatterGraph
and GraphSet
.
ScatterGraph
,
GraphSet
Field Summary | |
static int |
BOTTOM
Constant used to place scale along the bottom of the chart. |
static int |
INNER_LEFT
Constant used to place scale along the inner side of the left axis of vertical charts. |
static int |
INNER_LEFT_RIGHT
Constant used to place scale along the inner sides of both left and right axis of vertical charts. |
static int |
INNER_RIGHT
Constant used to place scale along the inner side of the right axis of vertical charts. |
static int |
LEFT
Constant used to place scale along the left axis of vertical charts. |
static int |
LEFT_RIGHT
Constant used to place scale along both left and right axis of vertical charts. |
static int |
RIGHT
Constant used to place scale along the right axis of vertical charts. |
static int |
TOP_BOTTOM
Constant used to place scale along the top and bottom of the chart. |
Method Summary | |
protected void |
finalize()
|
void |
setAutoScaleEnabled(boolean isAutoScaleEnabled)
Enables/disables automatic scale. |
void |
setColor(java.awt.Color color)
Sets the scale color. |
void |
setEndPoint(float endPoint)
Sets scale end point. |
void |
setFont(java.awt.Font font)
Sets the scale font. |
void |
setIncrement(double increment)
Sets the scale increment. |
void |
setLabels(java.lang.String[] labels)
Sets the scale labels to be displayed, replacing the scale values, which are automatically calculated. |
void |
setLabelsEnabled(boolean isLabelsEnabled)
Enables/disables display of scale labels. |
void |
setLogBase(int logBase)
Sets the logarithmic scale base. |
void |
setLogEnabled(boolean isLogEnabled)
Enables/disables a logarithmic scale. |
void |
setLogIncrementEnabled(boolean isLogIncrementEnabled)
Enables/disables display of logarithmic values on a logarithmic scale. |
void |
setMarksColor(java.awt.Color marksColor)
Sets the color of the scale marks. |
void |
setMarksEnabled(boolean isMarksEnabled)
Enables/disables display of scale marks. |
void |
setMaxValue(double maxValue)
Sets the scale maximum value. |
void |
setMinValue(double minValue)
Sets the scale minimum value. |
void |
setPosition(int position)
Sets scale position. |
void |
setStartPoint(float startPoint)
Sets a scale starting point. |
void |
setValueFormat(java.lang.String valueFormat)
Sets the format of values displayed along the scale. |
void |
setValuesEnabled(boolean isValuesEnabled)
Deprecated. |
void |
setVisibleLabelsIndexes(int[] visibleLabelsIndexes)
Sets the indexes of the only scale labels to be displayed. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEFT
public static final int RIGHT
public static final int LEFT_RIGHT
public static final int INNER_LEFT
public static final int INNER_RIGHT
public static final int INNER_LEFT_RIGHT
public static final int BOTTOM
public static final int TOP_BOTTOM
Method Detail |
public void setLogEnabled(boolean isLogEnabled)
isLogEnabled
- A boolean value(true/false).setLogBase(int)
,
setLogIncrementEnabled(boolean)
,
setAutoScaleEnabled(boolean)
public void setLogBase(int logBase)
logBase
- An integer number.setLogEnabled(boolean)
,
setLogIncrementEnabled(boolean)
,
setMaxValue(double)
,
setMinValue(double)
,
setIncrement(double)
public void setLogIncrementEnabled(boolean isLogIncrementEnabled)
isLogIncrementEnabled
- A boolean value(true/false).setLogEnabled(boolean)
,
setLogBase(int)
,
setMaxValue(double)
,
setMinValue(double)
,
setIncrement(double)
public void setStartPoint(float startPoint)
startPoint
- A float number ranging from 0 to 1.setEndPoint(float)
public void setEndPoint(float endPoint)
startPoint
- A float number ranging from 0 to 1.setStartPoint(float)
public void setLabels(java.lang.String[] labels)
labels
- An array of strings.public void setVisibleLabelsIndexes(int[] visibleLabelsIndexes)
visibleLabelsIndexes
- An array of integer numbers.public void setPosition(int position)
position
- One of the constants used to set scale position.LEFT
,
RIGHT
,
LEFT_RIGHT
,
INNER_LEFT
,
INNER_RIGHT
,
INNER_LEFT_RIGHT
,
BOTTOM
,
TOP_BOTTOM
public void setAutoScaleEnabled(boolean isAutoScaleEnabled)
isAutoScaleEnabled
- A boolean value(true/false).setMaxValue(double)
,
setMinValue(double)
,
setIncrement(double)
public void setMaxValue(double maxValue)
maxValue
- A double precision number.setAutoScaleEnabled(boolean)
public void setMinValue(double minValue)
minValue
- A double precision number.setAutoScaleEnabled(boolean)
public void setIncrement(double increment)
increment
- A double precision number.setAutoScaleEnabled(boolean)
public void setValueFormat(java.lang.String valueFormat)
valueFormat
- String pattern to format values.public void setFont(java.awt.Font font)
font
- A Font object.public void setColor(java.awt.Color color)
color
- A Color object.public void setMarksColor(java.awt.Color marksColor)
marksColor
- A Color object.public void setLabelsEnabled(boolean isLabelsEnabled)
isLabelsEnabled
- A boolean value(true/false).public void setValuesEnabled(boolean isValuesEnabled)
setLabelsEnabled(boolean)
public void setMarksEnabled(boolean isMarksEnabled)
isMarksEnabled
- A boolean value(true/false).protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |