|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectEventHandler
de.tif.jacob.screen.event.GuiEventHandler
de.tif.jacob.screen.event.IGroupMemberEventHandler
de.tif.jacob.screen.event.IChartEventHandler
public abstract class IChartEventHandler
Abstract event handler class for charts. Derived implementations of this event handler class have to be used to "hook" application-specific business logic to charts.
| Field Summary | |
|---|---|
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
| Constructor Summary | |
|---|---|
IChartEventHandler()
|
|
| Method Summary | |
|---|---|
abstract java.awt.Color[] |
getColors(IClientContext context,
IChart chart)
Returns the different colors for the chart lines and chart bars. |
abstract double[][] |
getDataElements(IClientContext context,
IChart chart)
Returns an array of data values. |
abstract java.lang.String[] |
getLegendLabels(IClientContext context,
IChart chart)
Returns the legend labels for the chart. |
abstract java.lang.String |
getTitle(IClientContext context,
IChart chart)
Returns the title of the chart. |
abstract java.lang.String[] |
getXAxisLabels(IClientContext context,
IChart chart)
Returns the labels for the x-axis. |
abstract java.lang.String |
getXAxisTitle(IClientContext context,
IChart chart)
Returns the caption of the x-axis. |
abstract java.lang.String |
getYAxisTitle(IClientContext context,
IChart chart)
Returns the caption of the y-axis. |
| Methods inherited from class de.tif.jacob.screen.event.IGroupMemberEventHandler |
|---|
onGroupStatusChanged, onHide, onShow |
| Methods inherited from class de.tif.jacob.screen.event.GuiEventHandler |
|---|
alert, alert, alert |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient java.lang.String RCS_ID
public static final transient java.lang.String RCS_REV
| Constructor Detail |
|---|
public IChartEventHandler()
| Method Detail |
|---|
public abstract java.lang.String getTitle(IClientContext context,
IChart chart)
throws java.lang.Exception
Example:
public String getTitle(IClientContext context, IChart chart)
{
return ApplicationMessage.getLocalized("MyChart.Title");
}
context - the current client contextchart - the chart itself
java.lang.Exception
public abstract java.lang.String getXAxisTitle(IClientContext context,
IChart chart)
throws java.lang.Exception
context - the current client contextchart - the chart itself
java.lang.Exception
public abstract java.lang.String getYAxisTitle(IClientContext context,
IChart chart)
throws java.lang.Exception
context - the current client contextchart - the chart itself
java.lang.Exception
public abstract java.lang.String[] getXAxisLabels(IClientContext context,
IChart chart)
throws java.lang.Exception
The dimension of the array returned must as follows:
String [numberOfValues]
context - the current client contextchart - the chart itself
java.lang.Exception
public abstract java.lang.String[] getLegendLabels(IClientContext context,
IChart chart)
throws java.lang.Exception
For line charts the dimension of the array returned must as follows:
String [numberOfLines]
Thereas, for bar charts as follows: String [1]
context - the current client contextchart - the chart itself
java.lang.Exception
public abstract java.awt.Color[] getColors(IClientContext context,
IChart chart)
throws java.lang.Exception
For line charts the dimension of the array returned must as follows:
Color [numberOfLines]
Thereas, for bar charts as follows: Color [1]
context - the current client contextchart - the chart itself
java.lang.Exception
public abstract double[][] getDataElements(IClientContext context,
IChart chart)
throws java.lang.Exception
For line charts the dimension of the array returned must as follows:
double [numberOfLines][numberOfValues]
Thereas, for bar charts as follows: double [1][numberOfValues]
Example:
double[][] data = new double[1][numberOfValues];
for (int j = 0; j < numberOfValues; j++)
{
data[0][j] = getRandomNumber(minValue, maxValue);
}
return data;
context - the current client contextchart - the chart itself
java.lang.Exception
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||