|
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.JCAnno
An instance of this class is used to define a series of tick marks on a JCAxis.
Field Summary | |
static int |
DEFAULT_INNER_EXTENT
|
static int |
DEFAULT_LABEL_EXTENT
|
static int |
DEFAULT_LABELS
|
static int |
DEFAULT_OUTER_EXTENT
|
static int |
DEFAULT_TICKS
|
protected int |
defInnerExtent
|
protected int |
defLabelExtent
|
protected int |
defOuterExtent
|
protected int |
defPrecision
|
protected boolean |
drawLabels
If true , draw tick labels; otherwise, no tick labels are drawn. |
protected boolean |
drawTicks
If true , draw tick marks; otherwise, no tick marks are drawn. |
protected com.klg.jclass.chart.DerivedDouble |
incrementValue
If not automatic, the scale values at which tick marks are to be placed. |
protected com.klg.jclass.chart.DerivedInt |
innerExtent
The pixel length of a tick within the plot area. |
protected Color |
labelColor
The color in which to draw labels. |
protected com.klg.jclass.chart.DerivedInt |
labelExtent
The distance in pixels of a label from the axis. |
protected String |
name
|
protected com.klg.jclass.chart.DerivedInt |
outerExtent
The pixel length of a tick outside of the plot area. |
protected com.klg.jclass.chart.JCAxis |
parent
|
protected com.klg.jclass.chart.DerivedInt |
precision
If precisionUseDefault is false , use this
precision. |
protected com.klg.jclass.chart.DerivedDouble |
startValue
The startValue is the scale value at which to begin this set of
tick marks. |
protected com.klg.jclass.chart.DerivedDouble |
stopValue
The stopValue is the scale value at which this set of tick
marks ends. |
protected Color |
tickColor
The color in which to draw ticks. |
protected int |
type
|
static int |
USER_DEFINED
|
Constructor Summary | |
JCAnno()
Creates a JCAnno object with default properties. |
|
JCAnno(int type,
com.klg.jclass.chart.JCAxis parent,
Color tickColor)
Creates a JCAnno with startValue, stopValue, and incrementValue initialized to the min, max, and tickSpacing values of the parent JCAxis. |
|
JCAnno(int type,
com.klg.jclass.chart.JCAxis parent,
double startValue,
double stopValue,
double incrementValue,
int precision,
boolean drawLabels,
boolean drawTicks,
int labelExtent,
int innerExtent,
int outerExtent,
Color tickColor,
Color labelColor)
Creates a tick object and sets its properties. |
Method Summary | |
int |
getDefaultInnerExtent()
|
int |
getDefaultLabelExtent()
|
int |
getDefaultOuterExtent()
|
int |
getDefaultPrecision()
|
boolean |
getDrawLabels()
Returns the Boolean controlling the drawing of labels. |
boolean |
getDrawLabelsIsDefault()
Returns true if the drawLabels property has the default value. |
boolean |
getDrawTicks()
Returns the Boolean controlling the drawing of ticks. |
boolean |
getDrawTicksIsDefault()
Returns true if the drawTicks property has the default value. |
boolean |
getIncrementIsDefault()
|
double |
getIncrementValue()
In non-automatic mode, use this value as the increment value; that is, it places ticks at every incrementValue along the scale. |
int |
getInnerExtent()
This method returns the distance (in pixels) that tick marks extend into the plot area. |
boolean |
getInnerExtentIsDefault()
|
Color |
getLabelColor()
Returns the color in which to draw labels. |
int |
getLabelExtent()
Returns the distance (in pixels) of tick labels from the axis. |
boolean |
getLabelExtentIsDefault()
|
String |
getName()
Returns the name of this tick object. |
int |
getOuterExtent()
This method returns the distance (in pixels) that tick marks extend beyond the plot area. |
boolean |
getOuterExtentIsDefault()
|
com.klg.jclass.chart.JCAxis |
getParent()
Returns the parent JCAxis. |
int |
getPrecision()
Returns the format for numbers in a tick label. |
boolean |
getPrecisionIsDefault()
If true , uses the axis-determined precision for tick labels;
otherwise, uses the current value of precision property to
label tick marks. |
double |
getStartValue()
In non-automatic mode, uses this value as the start value. |
boolean |
getStartValueIsDefault()
|
double |
getStopValue()
In non-automatic mode, uses this value as the stop value. |
boolean |
getStopValueIsDefault()
|
Color |
getTickColor()
Returns the color in which to draw ticks. |
int |
getType()
Intended for internal use. |
protected void |
setChanged(boolean c,
int cf)
Calls the setChanged() method of the parent axis. |
void |
setDefaultInnerExtent(int defValue)
|
void |
setDefaultLabelExtent(int defValue)
|
void |
setDefaultOuterExtent(int defValue)
|
void |
setDefaultPrecision(int defValue)
|
void |
setDrawLabels(boolean drawLabels)
Returns the Boolean controlling the drawing of labels. |
void |
setDrawTicks(boolean drawTicks)
Sets the boolean controlling the drawing of ticks. |
void |
setIncrementIsDefault(boolean isDefault)
|
void |
setIncrementValue(double incrementValue)
In non-automatic mode, use this value as the increment value; that is, it places ticks at every incrementValue along the scale. |
void |
setInnerExtent(int innerExtent)
Sets the pixel length of tick marks within the plot area. |
void |
setInnerExtentIsDefault(boolean isDefault)
|
void |
setLabelColor(Color labelColor)
The color to use to draw labels. |
void |
setLabelExtent(int labelExtent)
Sets the pixel distance at which to place the tick label objects. |
void |
setLabelExtentIsDefault(boolean isDefault)
|
void |
setName(String name)
Sets the name of this tick object. |
void |
setOuterExtent(int outerExtent)
Sets the pixel length of tick marks outside of the plot area. |
void |
setOuterExtentIsDefault(boolean isDefault)
|
void |
setParent(com.klg.jclass.chart.JCAxis axis)
Sets the parent JCAxis. |
void |
setPrecision(int precision)
Sets the format for numbers in a tick label; positive values denote the number of places after the decimal point (for example, 3 means multiples of 0.001), negative values indicate the positive number of zeros are used before the decimal place (for example, -3 means numbering will be in multiples of 1000). |
void |
setPrecisionIsDefault(boolean isDefault)
If true , uses the axis-determined precision for tick labels;
otherwise, uses the current value of precision property to
label tick marks. |
void |
setStartValue(double startValue)
In non-automatic mode, use this value as the start value. |
void |
setStartValueIsDefault(boolean isDefault)
|
void |
setStopValue(double stopValue)
In non-automatic mode, use this value as the stop value. |
void |
setStopValueIsDefault(boolean isDefault)
|
void |
setTickColor(Color tickColor)
The color to use to draw ticks. |
void |
setType(int type)
Intended for internal use. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_LABELS
public static final int DEFAULT_TICKS
public static final int USER_DEFINED
public static final int DEFAULT_INNER_EXTENT
public static final int DEFAULT_OUTER_EXTENT
public static final int DEFAULT_LABEL_EXTENT
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
tick marks.
protected com.klg.jclass.chart.DerivedDouble stopValue
stopValue
is the scale value at which this set of tick
marks ends.
protected com.klg.jclass.chart.DerivedDouble incrementValue
protected int defPrecision
protected com.klg.jclass.chart.DerivedInt precision
precisionUseDefault
is false
, use this
precision. If it is true
, the value of this property will be
automatically calculated and the calculated value will overwrite any
previous value this property might have.
protected boolean drawLabels
true
, draw tick labels; otherwise, no tick labels are drawn.
protected boolean drawTicks
true
, draw tick marks; otherwise, no tick marks are drawn.
protected int defLabelExtent
protected com.klg.jclass.chart.DerivedInt labelExtent
protected int defInnerExtent
protected com.klg.jclass.chart.DerivedInt innerExtent
protected int defOuterExtent
protected com.klg.jclass.chart.DerivedInt outerExtent
protected Color tickColor
protected Color labelColor
protected int type
Constructor Detail |
public JCAnno()
public JCAnno(int type, com.klg.jclass.chart.JCAxis parent, Color tickColor)
public JCAnno(int type, com.klg.jclass.chart.JCAxis parent, double startValue, double stopValue, double incrementValue, int precision, boolean drawLabels, boolean drawTicks, int labelExtent, int innerExtent, int outerExtent, Color tickColor, Color labelColor)
type
- The tick object type. Valid values are DEFAULT_LABELS,
DEFAULT_TICKS, and USER_DEFINED.parent
- The JCAxis associated with this JCAnno.startValue
- where the tick marks are to beginstopValue
- where the tick marks are to endincrementValue
- the (non-default) tick intervalprecision
- The format of the tick label; positive values denote the
number of places after the decimal point (for example, 3 means multiples
of 0.001), and negative values indicate the positive number of zeros to
be used before the decimal place (for example, -3 means numbering will
be in multiples of 1000). Overridden if precisionIsDefault
is set to true
.drawLabels
- whether tick labels are to be drawndrawTicks
- whether tick marks are to be drawnlabelExtent
- the radial or linear distance to the center of a tick
label, expressed as a decimal fraction of the scale's radius or
width/heightinnerExtent
- the place where the tick mark starts, expressed in pixelsouterExtent
- the place where the tick mark ends, expressed in pixelstickColor
- the color of the tick marklabelColor
- the color of the labels.Method Detail |
public com.klg.jclass.chart.JCAxis getParent()
public void setParent(com.klg.jclass.chart.JCAxis axis)
public String getName()
public void setName(String name)
public boolean getDrawLabels()
true
means draw the labels, false
means hide the labels.
boolean
controlling the drawing of labelspublic boolean getDrawLabelsIsDefault()
public boolean getDrawTicksIsDefault()
public boolean getDrawTicks()
true
means draw the ticks, false
means hide the ticks.
boolean
controlling the drawing of tickspublic double getIncrementValue()
incrementValue
along the scale.
In automatic mode, the calculated increment value will overwrite this value.
public boolean getIncrementIsDefault()
public int getInnerExtent()
public boolean getInnerExtentIsDefault()
public int getDefaultInnerExtent()
public int getLabelExtent()
public boolean getLabelExtentIsDefault()
public int getDefaultLabelExtent()
public int getOuterExtent()
public boolean getOuterExtentIsDefault()
public int getDefaultOuterExtent()
public int getPrecision()
precisionUseDefault
is set
to true
.
public boolean getPrecisionIsDefault()
true
, uses the axis-determined precision for tick labels;
otherwise, uses the current value of precision
property to
label tick marks.
precision
propertypublic int getDefaultPrecision()
public double getStartValue()
public boolean getStartValueIsDefault()
public double getStopValue()
public boolean getStopValueIsDefault()
public Color getTickColor()
public Color getLabelColor()
public void setDrawLabels(boolean drawLabels)
true
means draw the labels; false
means hide the labels.
drawLabels
- the boolean controlling the drawing of
labelspublic void setDrawTicks(boolean drawTicks)
true
means draw the ticks; false
means hide the ticks.
drawTicks
- the boolean controlling the drawing of
tickspublic void setIncrementValue(double incrementValue)
incrementValue
along the scale.
In automatic mode, the calculated increment value will overwrite this value.
incrementValue
- the spacing between adjacent tick markspublic void setIncrementIsDefault(boolean isDefault)
public void setInnerExtent(int innerExtent)
innerExtent
- the inner extent of the tick markpublic void setInnerExtentIsDefault(boolean isDefault)
public void setDefaultInnerExtent(int defValue)
public void setLabelExtent(int labelExtent)
labelExtent
- the label extentpublic void setLabelExtentIsDefault(boolean isDefault)
public void setDefaultLabelExtent(int defValue)
public void setOuterExtent(int outerExtent)
outerExtent
- the outer extent of the tick markpublic void setOuterExtentIsDefault(boolean isDefault)
public void setDefaultOuterExtent(int defValue)
public void setPrecision(int precision)
precisionUseDefault
is set
to true
.
precision
- an integer that specifies the number of decimal places
for the values in tick labelspublic void setPrecisionIsDefault(boolean isDefault)
true
, uses the axis-determined precision for tick labels;
otherwise, uses the current value of precision
property to
label tick marks.
isDefault
- whether or not to use the axis-determined
precisionpublic void setDefaultPrecision(int defValue)
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 setTickColor(Color tickColor)
tickColor
- the color of the tick markpublic void setLabelColor(Color labelColor)
labelColor
- the color of the labelpublic void setType(int type)
public int getType()
protected void setChanged(boolean c, int cf)
c
- new value for Changed
cf
- the value with which to update the changed flagpublic String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |