|
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.JCValueLabel
A JCValueLabel
is an association between
a floating-point axis value and a ChartText
.
JCValueLabels
are used to implement the
VALUE_LABELS
annotation method, in
which axis labels are determined by the
axis values the user indicates should be
labelled.
Field Summary | |
protected com.klg.jclass.chart.JCAnno |
anno
|
protected com.klg.jclass.chart.JCDataIndex |
dataIndex
|
protected boolean |
drawGrid
|
protected boolean |
drawLabel
|
protected boolean |
drawTick
|
protected com.klg.jclass.chart.ChartText |
label
|
protected double |
value
|
Constructor Summary | |
|
JCValueLabel()
Default constructor required for JavaBeans. |
|
JCValueLabel(double val,
String lbl)
Internal constructor that creates a value label given a value and a String. |
|
JCValueLabel(double val,
String lbl,
com.klg.jclass.chart.JCAxis axis)
A smart constructor that creates a ChartText from a generic
object. |
|
JCValueLabel(double val,
String lbl,
com.klg.jclass.chart.JCAxis axis,
boolean drawTick,
boolean drawLabel,
boolean drawGrid)
Internal constructor. |
|
JCValueLabel(com.klg.jclass.chart.JCAnno anno,
double val)
Internal constructor that creates a value Label from a JCAnno object. |
protected |
JCValueLabel(com.klg.jclass.chart.JCAxis parent,
double val,
int prec)
Convenience constructor for use within JClass Chart. |
protected |
JCValueLabel(com.klg.jclass.chart.JCAxis parent,
int exponent,
int prec)
Convenience constructor used by JClass Chart to create value labels for log values. |
Method Summary | |
com.klg.jclass.chart.JCAnno |
getAnno()
Retrieves the JCAnno associated with this
JCValueLabel . |
com.klg.jclass.chart.ChartText |
getChartText()
Retrieves the ChartText associated with this
JCValueLabel . |
protected com.klg.jclass.chart.JCDataIndex |
getDataIndex()
Get the stored data index for this value label. |
String |
getText()
Gets the value of the Text property. |
double |
getValue()
Gets the value of the Value property. |
boolean |
isDrawGrid()
Is a grid line drawn for this value label? |
boolean |
isDrawLabel()
Ist the label drawn for this value label? |
boolean |
isDrawTick()
Is the tick drawn for this value label? |
void |
setAnno(com.klg.jclass.chart.JCAnno anno)
Sets the JCAnno property for this
JCValueLabel . |
protected void |
setDataIndex(com.klg.jclass.chart.JCDataIndex dataIndex)
Set the stored data index for this value label. |
void |
setDrawGrid(boolean drawGrid)
Set whether the grid line is drawn for this value label. |
void |
setDrawLabel(boolean drawLabel)
Set whether the label is drawn for this value label. |
void |
setDrawTick(boolean drawTick)
Set whether the tick is drawn for this value label. |
protected void |
setParent(com.klg.jclass.chart.JCAxis ax)
Sets the parent for the JCValueLabel instance. |
void |
setText(String t)
Sets the value of the Text property. |
void |
setValue(double nv)
Sets the value of the Value property. |
String |
toString()
Override toString to return the text |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected double value
protected com.klg.jclass.chart.ChartText label
protected boolean drawTick
protected boolean drawLabel
protected boolean drawGrid
protected com.klg.jclass.chart.JCAnno anno
protected com.klg.jclass.chart.JCDataIndex dataIndex
Constructor Detail |
public JCValueLabel()
public JCValueLabel(double val, String lbl, com.klg.jclass.chart.JCAxis axis)
ChartText
from a generic
object.
val
- floating-point axis valuelbl
- String to use as the value labelaxis
- axis on which the value label will appearChartText
public JCValueLabel(double val, String lbl, com.klg.jclass.chart.JCAxis axis, boolean drawTick, boolean drawLabel, boolean drawGrid)
val
- floating-point axis valuelbl
- String to use as the value labelaxis
- axis on which the value label will appeardrawTick
- If true, a tick is drawn for this JCValueLabel.drawLabel
- If true, the ChartText will be drawn.drawGrid
- If true, a grid line will be drawn at this label.public JCValueLabel(double val, String lbl)
val
- floating-point axis valuelbl
- string to use as the value labelpublic JCValueLabel(com.klg.jclass.chart.JCAnno anno, double val)
protected JCValueLabel(com.klg.jclass.chart.JCAxis parent, double val, int prec)
parent
- pointer to the parent axis objectval
- prec
- precision to send to label generatorprotected JCValueLabel(com.klg.jclass.chart.JCAxis parent, int exponent, int prec)
parent
- pointer to the parent axis objectexponent
- power of 10 to be used to generate the labelprec
- precision to send to label generatorMethod Detail |
public com.klg.jclass.chart.ChartText getChartText()
ChartText
associated with this
JCValueLabel
.
public com.klg.jclass.chart.JCAnno getAnno()
JCAnno
associated with this
JCValueLabel
.
public void setAnno(com.klg.jclass.chart.JCAnno anno)
JCAnno
property for this
JCValueLabel
.
public double getValue()
Value
property.
The Value
property controls the position of a label in
data space along a particular axis.
public void setValue(double nv)
Value
property.
The Value
property controls the position of a label in
data space along a particular axis.
nv
- data-space valuepublic String getText()
Text
property.
The Text
property specifies the text displayed inside the label.
public void setText(String t)
Text
property.
The Text
property specifies the text displayed inside the label.
t
- String representing the text inside the label. This String can
be unparsed text.protected void setParent(com.klg.jclass.chart.JCAxis ax)
JCValueLabel
instance. Internal only.
ax
- axis on which the value label will appearpublic String toString()
toString
in class Object
public boolean isDrawTick()
public void setDrawTick(boolean drawTick)
drawTick
- The new value of drawTick.public boolean isDrawGrid()
public void setDrawGrid(boolean drawGrid)
drawGrid
- The new value of drawGrid.public boolean isDrawLabel()
public void setDrawLabel(boolean drawLabel)
drawLabel
- The new value of drawLabel.protected com.klg.jclass.chart.JCDataIndex getDataIndex()
protected void setDataIndex(com.klg.jclass.chart.JCDataIndex dataIndex)
dataIndex
- The new data index 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 |