|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart.JCGrid
This class is used to define a series of grid lines on a JCAxis.
Field Summary | |
protected com.klg.jclass.chart.JCChartStyle |
gridStyle
Style of grid lines. |
protected com.klg.jclass.chart.DerivedDouble |
incrementValue
If not default, the scale values at which grid lines are to be placed. |
protected String |
name
|
protected com.klg.jclass.chart.JCAxis |
parent
|
protected com.klg.jclass.chart.DerivedDouble |
startValue
The startValue is the scale value at which to begin this set of
grid lines. |
protected com.klg.jclass.chart.DerivedDouble |
stopValue
The stopValue is the scale value at which this set of grid
lines ends. |
Constructor Summary | |
JCGrid()
Creates a JCGrid object with default properties. |
|
JCGrid(com.klg.jclass.chart.JCAxis ax)
Creates a JCGrid object with startValue, stopValue, and incrementValue initialized to the min, max, and numSpacing values of the parent axis. |
|
JCGrid(com.klg.jclass.chart.JCAxis parent,
double startValue,
double stopValue,
double incrementValue,
com.klg.jclass.chart.JCChartStyle gridStyle)
Creates a grid object and sets its properties. |
Method Summary | |
static boolean |
equivalentGridLineStyles(com.klg.jclass.chart.JCLineStyle ls1,
com.klg.jclass.chart.JCLineStyle ls2,
com.klg.jclass.chart.JCAxis ax)
Intended for internal use only. |
com.klg.jclass.chart.JCChartStyle |
getGridStyle()
Returns the style in which to draw grids. |
boolean |
getIncrementIsDefault()
|
double |
getIncrementValue()
In non-default mode, use this value as the increment value; that is, it places grids at every incrementValue along the scale. |
String |
getName()
Returns the name of this grid object. |
com.klg.jclass.chart.JCAxis |
getParent()
Returns the parent JCAxis. |
double |
getStartValue()
In non-default mode, use this value as the start value. |
boolean |
getStartValueIsDefault()
|
double |
getStopValue()
In non-default mode, use this value as the stop value. |
boolean |
getStopValueIsDefault()
|
boolean |
isDefault()
Returns true if all the JCGrid properties have default values. |
static com.klg.jclass.chart.JCLineStyle |
makeDefaultLineStyle(com.klg.jclass.chart.JCAxis axis)
This method creates a JCLineStyle with default attributes for a JCGrid. |
void |
setGridStyle(com.klg.jclass.chart.JCChartStyle gridStyle)
The style to use to draw grid lines. |
void |
setIncrementIsDefault(boolean isDefault)
|
void |
setIncrementValue(double incrementValue)
In non-default mode, use this value as the increment value; that is, it places grid lines at every incrementValue along
the scale. |
void |
setName(String name)
Sets the name of this grid object. |
void |
setParent(com.klg.jclass.chart.JCAxis ax)
Sets the parent JCAxis. |
void |
setStartValue(double startValue)
In non-default mode, use this value as the start value. |
void |
setStartValueIsDefault(boolean isDefault)
|
void |
setStopValue(double stopValue)
In non-default mode, use this value as the stop value. |
void |
setStopValueIsDefault(boolean isDefault)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected com.klg.jclass.chart.JCAxis parent
protected String name
protected com.klg.jclass.chart.DerivedDouble startValue
startValue
is the scale value at which to begin this set of
grid lines.
protected com.klg.jclass.chart.DerivedDouble stopValue
stopValue
is the scale value at which this set of grid
lines ends.
protected com.klg.jclass.chart.DerivedDouble incrementValue
protected com.klg.jclass.chart.JCChartStyle gridStyle
Constructor Detail |
public JCGrid()
public JCGrid(com.klg.jclass.chart.JCAxis ax)
public JCGrid(com.klg.jclass.chart.JCAxis parent, double startValue, double stopValue, double incrementValue, com.klg.jclass.chart.JCChartStyle gridStyle)
startValue
- where the grid lines are to beginstopValue
- where the grid lines are to endincrementValue
- the grid intervalgridStyle
- the grid line styleMethod Detail |
public com.klg.jclass.chart.JCAxis getParent()
public void setParent(com.klg.jclass.chart.JCAxis ax)
public String getName()
public void setName(String name)
public double getIncrementValue()
incrementValue
along the scale.
In default mode, the calculated increment value will overwrite this value.
public boolean getIncrementIsDefault()
public double getStartValue()
public boolean getStartValueIsDefault()
public double getStopValue()
public boolean getStopValueIsDefault()
public com.klg.jclass.chart.JCChartStyle getGridStyle()
public void setIncrementValue(double incrementValue)
incrementValue
along
the scale. In default mode, the calculated increment value will
overwrite this value.
incrementValue
- the spacing between adjacent grid linespublic void setIncrementIsDefault(boolean isDefault)
public void setStartValue(double startValue)
startValue
- the start valuepublic void setStartValueIsDefault(boolean isDefault)
public void setStopValue(double stopValue)
stopValue
- the stop valuepublic void setStopValueIsDefault(boolean isDefault)
public void setGridStyle(com.klg.jclass.chart.JCChartStyle gridStyle)
gridStyle
- the style of the grid linespublic String toString()
toString
in class Object
public static com.klg.jclass.chart.JCLineStyle makeDefaultLineStyle(com.klg.jclass.chart.JCAxis axis)
public static boolean equivalentGridLineStyles(com.klg.jclass.chart.JCLineStyle ls1, com.klg.jclass.chart.JCLineStyle ls2, com.klg.jclass.chart.JCAxis ax)
public boolean isDefault()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |