|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.engines.kpi.bo.ChartImpl
public class ChartImpl
Field Summary | |
---|---|
protected java.awt.Color |
color
|
protected org.jfree.data.general.DefaultValueDataset |
dataset
|
protected java.lang.Integer |
height
|
protected java.util.Vector |
intervals
|
protected java.lang.Boolean |
legend
|
protected double |
lower
|
protected java.lang.String |
name
|
protected it.eng.spago.security.IEngUserProfile |
profile
|
protected StyleLabel |
styleSubTitle
|
protected StyleLabel |
styleTitle
|
protected java.lang.String |
subName
|
protected java.lang.Double |
target
|
protected double |
upper
|
protected java.lang.Integer |
width
|
Constructor Summary | |
---|---|
ChartImpl()
|
Method Summary | |
---|---|
DatasetMap |
calculateValue(java.lang.String result)
This function calculates the values for the LineChart by transforming the xml string result in a DatasetMap |
void |
configureChart(java.util.HashMap config)
This function configures the chart with the parameters passed in the config HashMap |
org.jfree.chart.JFreeChart |
createChart()
This function creates the chart object. |
static ChartImpl |
createChart(java.lang.String subtype)
This function creates the object of the right subtype |
java.awt.Color |
getColor()
Gets the color. |
int |
getHeight()
|
java.lang.String |
getName()
|
it.eng.spago.security.IEngUserProfile |
getProfile()
Gets the profile. |
org.jfree.data.general.DefaultValueDataset |
getValueDataSet()
This function returns the Double value represented in the chart |
int |
getWidth()
|
boolean |
isLegend()
|
void |
setColor(java.awt.Color color)
Sets the color. |
void |
setHeight(int _height)
|
void |
setLegend(boolean legend)
|
void |
setName(java.lang.String _name)
|
void |
setProfile(it.eng.spago.security.IEngUserProfile profile)
Sets the profile. |
org.jfree.chart.title.TextTitle |
setStyleTitle(java.lang.String title,
StyleLabel titleLabel)
|
void |
setSubName(java.lang.String _name)
|
void |
setTarget(java.lang.Double target)
Sets the Double value to represent the target into the Chart |
java.lang.String |
setThresholds(java.util.List thresholds)
This function fills up the vector "intervals" with the intervals of the chart, getting them from a list of Thresholds |
void |
setValueDataSet(java.lang.Double valueToRepresent)
Sets the Double value to represent into the Chart |
void |
setWidth(int _width)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String subName
protected StyleLabel styleTitle
protected StyleLabel styleSubTitle
protected java.lang.Integer width
protected java.lang.Integer height
protected it.eng.spago.security.IEngUserProfile profile
protected java.awt.Color color
protected java.lang.Boolean legend
protected org.jfree.data.general.DefaultValueDataset dataset
protected java.util.Vector intervals
protected double lower
protected double upper
protected java.lang.Double target
Constructor Detail |
---|
public ChartImpl()
Method Detail |
---|
public org.jfree.chart.JFreeChart createChart()
public DatasetMap calculateValue(java.lang.String result) throws java.lang.Exception
Xml
- String result in form ROWS.ROW
java.lang.Exception
public static ChartImpl createChart(java.lang.String subtype)
subtype:
- the subtype of the Dial Chart
public void configureChart(java.util.HashMap config)
subtype:
- the subtype of the Dial Chartpublic void setValueDataSet(java.lang.Double valueToRepresent)
Double
- value to setpublic void setTarget(java.lang.Double target)
Double
- value of the target to setpublic org.jfree.data.general.DefaultValueDataset getValueDataSet()
public java.lang.String setThresholds(java.util.List thresholds)
List
- of thresholds to setpublic int getHeight()
public java.lang.String getName()
public int getWidth()
public void setHeight(int _height)
public void setName(java.lang.String _name)
public void setSubName(java.lang.String _name)
public void setWidth(int _width)
public it.eng.spago.security.IEngUserProfile getProfile()
public void setProfile(it.eng.spago.security.IEngUserProfile profile)
profile
- the new profilepublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the new colorpublic boolean isLegend()
public void setLegend(boolean legend)
public org.jfree.chart.title.TextTitle setStyleTitle(java.lang.String title, StyleLabel titleLabel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |