|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to be used by any class wanting to implement chart label functionality within JClass Chart.
Method Summary | |
void |
addAutoLabels(com.klg.jclass.chart.ChartDataView cdv,
int addSeries,
int addPoint)
Adds some automatically created JCChartLabels . |
void |
addChartLabel(com.klg.jclass.chart.JCChartLabel label)
Adds a chart label, forcing a recalculation of it and a redraw of the parent chart. |
void |
addToDwellLabels(com.klg.jclass.chart.JCChartLabel label)
Adds a new chart label to the list of dwell labels. |
void |
clearAutoLabels(com.klg.jclass.chart.ChartDataView cdv)
Clears the auto labels list for this data view. |
String |
createAutoLabelText(com.klg.jclass.chart.ChartDataView cdv,
int series,
int point)
Creates the text for an auto label given the series and point. |
void |
generateAutoLabels(com.klg.jclass.chart.ChartDataView cdv)
Automatically creates JCChartLabels for every series and point,
if requested. |
com.klg.jclass.chart.JCChartLabel[][] |
getAutoLabelList(com.klg.jclass.chart.ChartDataView cdv)
Gets the AutoLabelList property for the
ChartDataView object. |
List |
getChartLabels()
Gets the value of the ChartLabels indexed property. |
com.klg.jclass.chart.JCChartLabel |
getChartLabels(int index)
Gets a value of the ChartLabels indexed property. |
com.klg.jclass.chart.JCChartLabel |
getCurrentDwellLabel()
Gets the current dwell label. |
Point |
getCurrentDwellLabelAttachPoint()
Gets the AttachPoint property of the current dwell label, if
one exists. |
JComponent |
getCurrentDwellLabelComponent()
Gets the Component property of the current dwell label. |
int |
getNumChartLabels()
Gets the current number of chart labels. |
com.klg.jclass.chart.JCChart |
getParentChart()
Gets the chart for which this class is managing chart labels. |
boolean |
locateCurrentDwellLabel(int x,
int y)
Locates the dwell label that is associated with the given coordinates and marks it as the current dwell label. |
void |
markAllChartLabelsForRecalc()
Marks all chart labels for later recalculation. |
void |
paintConnectors(Graphics gc)
Paints the connectors between the chart labels and the points to which they are connected. |
void |
recalcChangedChartLabels()
Forces recalculation of any chart labels marked for a recalc. |
void |
removeAllChartLabels()
Removes all of the chart labels. |
void |
removeAutoLabels(com.klg.jclass.chart.ChartDataView cdv)
Removes all of the automatically created JCChartLabels . |
void |
removeAutoLabels(com.klg.jclass.chart.ChartDataView cdv,
int remSeries,
int remPoint)
Removes some of the automatically created JCChartLabels . |
void |
removeChartLabel(com.klg.jclass.chart.JCChartLabel label)
Removes a chart label, forcing a redraw of the parent chart. |
void |
removeFromDwellLabels(com.klg.jclass.chart.JCChartLabel label)
Removes a chart label from the list of dwell labels. |
void |
setAutoLabelText(com.klg.jclass.chart.ChartDataView cdv,
int series,
int point)
Sets the text on an auto label given the series and point. |
void |
setChartLabels(int index,
com.klg.jclass.chart.JCChartLabel lbl)
Sets a value of the ChartLabels indexed property. |
void |
setChartLabels(List s)
Sets the value of the ChartLabels indexed property. |
void |
setParentChart(com.klg.jclass.chart.JCChart chart)
Sets the chart for which this class is managing chart labels. |
void |
updateParent(int cf)
Updates the parent chart based on the type of change made to the child chart label. |
Method Detail |
public void setParentChart(com.klg.jclass.chart.JCChart chart)
chart
- parent JCChart
instancepublic com.klg.jclass.chart.JCChart getParentChart()
JCChart
instancepublic void paintConnectors(Graphics gc)
gc
- Graphics object of parent chart used for painting connectorspublic void addChartLabel(com.klg.jclass.chart.JCChartLabel label)
label
- the JCChartLabel
instance to addpublic void addToDwellLabels(com.klg.jclass.chart.JCChartLabel label)
label
- the JCChartLabel
instance being added to the dwell
label listpublic boolean locateCurrentDwellLabel(int x, int y)
x
- the x coordinate within the JCChartArea
y
- the y coordinate within the JCChartArea
true
if dwell label is found; false
otherwisepublic Point getCurrentDwellLabelAttachPoint()
AttachPoint
property of the current dwell label, if
one exists.
AttachPoint
property of the current dwell label, an
instance of the Point
object, or nullpublic JComponent getCurrentDwellLabelComponent()
Component
property of the current dwell label.
JComponent
class, or nullpublic com.klg.jclass.chart.JCChartLabel getCurrentDwellLabel()
JChartLabel
class, or nullpublic void removeChartLabel(com.klg.jclass.chart.JCChartLabel label)
label
- the JCChartLabel
instance to remove from the chart
label listpublic void removeFromDwellLabels(com.klg.jclass.chart.JCChartLabel label)
label
- the JCChartLabel
instance to remove from the dwell
label listpublic int getNumChartLabels()
public void removeAllChartLabels()
AutoLabel
property has
been set on any of this chart's DataViews
, the property should
be set to false
and the list of auto labels nulled out.
public com.klg.jclass.chart.JCChartLabel getChartLabels(int index)
ChartLabels
indexed property.
The ChartLabels
property controls a list of chart labels
managed by the chart.
index
- position at which to add the new object
public void setChartLabels(int index, com.klg.jclass.chart.JCChartLabel lbl)
ChartLabels
indexed property.
The ChartLabels
property controls a list of chart labels
managed by the chart.
index
- position at which to add the new object; to add a new
item at the end, set the position to the current size of the labels
arraylbl
- new chart label to be added
IllegalArgumentException
- Thrown if the index is larger than
the size of the array.public List getChartLabels()
ChartLabels
indexed property.
The ChartLabels
property controls a list of chart labels
managed by the chart.
JCChart
public void setChartLabels(List s)
ChartLabels
indexed property.
The ChartLabels
property controls a list of chart labels
managed by the chart.
s
- List object containg chart labels to add to this
JCChart
public void markAllChartLabelsForRecalc()
public void recalcChangedChartLabels()
public com.klg.jclass.chart.JCChartLabel[][] getAutoLabelList(com.klg.jclass.chart.ChartDataView cdv)
AutoLabelList
property for the
ChartDataView
object. The AutoLabelList
property
is a two-dimensional array of automatically generated
JCChartLabel
instances, one for every point and series. The
inner array is indexed by point; the outer array by series.
cdv
- the ChartDataView
instance that defines the auto
label list
JCChartLabel
objects representing the
automatically generated chart labelspublic void generateAutoLabels(com.klg.jclass.chart.ChartDataView cdv)
JCChartLabels
for every series and point,
if requested.
cdv
- the ChartDataView
instance that defines the auto
label listpublic String createAutoLabelText(com.klg.jclass.chart.ChartDataView cdv, int series, int point)
cdv
- the ChartDataView
instance that defines the auto
label listseries
- the series numberpoint
- the point number within the series
public void setAutoLabelText(com.klg.jclass.chart.ChartDataView cdv, int series, int point)
cdv
- the ChartDataView
instance that defines the auto
label listseries
- the series numberpoint
- the point number within the seriespublic void addAutoLabels(com.klg.jclass.chart.ChartDataView cdv, int addSeries, int addPoint)
JCChartLabels
.
cdv
- the ChartDataView
instance that defines the auto
label listaddSeries
- the series number to add auto labels for (if -1,
add applies to all series)addPoint
- the point number within a series to add auto labels
for (if -1, add applies to all points within the given series)public void removeAutoLabels(com.klg.jclass.chart.ChartDataView cdv, int remSeries, int remPoint)
JCChartLabels
.
cdv
- the ChartDataView
instance that defines the auto
label listremSeries
- the series number to remove auto labels for (if -1,
remove applies to all series)remPoint
- the point number within a series to remove auto labels
for (if -1, remove applies to all points within the given series)public void removeAutoLabels(com.klg.jclass.chart.ChartDataView cdv)
JCChartLabels
.
cdv
- the ChartDataView
instance that defines the auto
label listpublic void clearAutoLabels(com.klg.jclass.chart.ChartDataView cdv)
cdv
- ChartDataView
instance from which the auto labels
are to be clearedpublic void updateParent(int cf)
cf
- the changed flag
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |