|
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.chart3d.Chart3dAnnoHandler
Class that handles annotations for a given JCAxis.
| Field Summary | |
protected double |
annoHeight
The maximum annotation height for the current valueLabel list. |
protected double |
annoShift
The annotation shift for the current valueLabel list |
protected com.klg.jclass.chart3d.JCAxis |
axis
The parent JCAxis object |
protected ArrayList |
userValueLabels
User value labels list. |
protected ArrayList |
valueLabels
ArrayList of JCValueLabel instances. |
| Constructor Summary | |
Chart3dAnnoHandler(com.klg.jclass.chart3d.JCAxis axis)
Constructor that sets the parent JCAxis object. |
|
| Method Summary | |
protected void |
calcAnnoHeight(Graphics gc)
Calculates the maximum annotation height for this axis |
int |
compare(Object o1,
Object o2)
JCValueLabel sorting routine. |
double |
getAnnoHeight()
Gets the maximum annotation height for the current valueLabel
list. |
double |
getAnnoShift()
Gets the annotation shift for the current valueLabel list. |
protected com.klg.jclass.chart3d.JCAxis |
getAxis()
Gets the parent JCAxis object. |
protected com.klg.jclass.chart3d.JCValueLabel |
getLabelFromValue(double value,
boolean labelDrawn,
boolean tickDrawn,
boolean minorTick,
boolean useLabelGenerator)
Makes a formatted value label given a value. |
protected ArrayList |
getUserValueLabels()
Returns the user value label list. |
ArrayList |
getValueLabels()
Gets the internally generated value labels. |
protected void |
makeAnnotations(Graphics gc,
com.klg.jclass.chart3d.Anno anno)
Creates the axis annotations for display. |
protected void |
setUserValueLabels(ArrayList userValueLabels)
Sets the user value label list. |
protected void |
sortValueLabels()
Sorts user-provided value labels so that they are in increasing order. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Field Detail |
protected ArrayList valueLabels
JCValueLabel instances.
protected ArrayList userValueLabels
protected double annoHeight
protected double annoShift
protected com.klg.jclass.chart3d.JCAxis axis
| Constructor Detail |
public Chart3dAnnoHandler(com.klg.jclass.chart3d.JCAxis axis)
axis - The parent JCAxis object| Method Detail |
protected com.klg.jclass.chart3d.JCAxis getAxis()
public ArrayList getValueLabels()
annotationMethod of the parent axis is
ANNOTATION_VALUE_LABELS, this list will hold the same value
labels as the user value label list.
protected ArrayList getUserValueLabels()
protected void setUserValueLabels(ArrayList userValueLabels)
userValueLabels - The new userValueLabel list.public double getAnnoHeight()
valueLabel
list.
public double getAnnoShift()
valueLabel list.
protected void sortValueLabels()
public int compare(Object o1,
Object o2)
JCValueLabel sorting routine.
compare in interface Comparatoro1 - The first value labelo2 - The second value label
protected void calcAnnoHeight(Graphics gc)
gc - Graphics context needed for font information
protected void makeAnnotations(Graphics gc,
com.klg.jclass.chart3d.Anno anno)
ArrayList of JCValueLabel objects.
Each JCValueLabel represents a label and/or tick at a particular
value along the axis.
gc - Graphics context needed to calculate annotation font informationanno - The Anno object for which the labels are to be generated.
protected com.klg.jclass.chart3d.JCValueLabel getLabelFromValue(double value,
boolean labelDrawn,
boolean tickDrawn,
boolean minorTick,
boolean useLabelGenerator)
value - The value for which the label is to be generatedlabelDrawn - Is the label drawn for the returned value label?tickDrawn - Is the tick drawn for the returned value label?minorTick - Minor or Major tick for the returned value label?useLabelGenerator - Call the user supplied label generator for this
value label.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||