|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.analyze.lib.graph.ChartEngineImpl
public class ChartEngineImpl
The Class ChartEngineImpl.
Field Summary |
---|
Fields inherited from interface org.ow2.clif.analyze.api.graph.ChartControl |
---|
AREA_RENDERER, BAR_RENDERER, CHART_CONTROL, DOT_RENDERER, LINE_RENDERER |
Constructor Summary | |
---|---|
ChartEngineImpl()
Instantiates a new chart engine impl. |
Method Summary | |
---|---|
void |
addYAxis(int chartId,
java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
java.lang.String fieldLabel)
Add an Y axis to the chart. |
void |
bindFc(java.lang.String clientItfName,
java.lang.Object serverItf)
|
int |
createNewChart(java.lang.String type)
Create a new chart of the type type. |
javax.swing.JPanel |
getChart(int chartId)
Get a panel with a chart in. |
java.awt.image.BufferedImage |
getChartImage(int chartId,
int width,
int height)
Get an image of the chart. |
java.awt.Color |
getColor(int chartId,
java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
java.lang.String fieldLabel)
Gets the color. |
ChartEngineImpl |
getInstance()
Gets the single instance of ChartEngineImpl. |
int |
getLowerLimit(int chartId)
Gets the lower limit. |
int |
getMaxNumberOfPoint(int chartId)
Gets the max number of point. |
java.util.Map |
getRendererList()
Gets the renderer list. |
int |
getUpperLimit(int chartId)
Gets the upper limit. |
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String clientItfName)
|
void |
removeYAxis(int chartId,
java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
java.lang.String fieldLabel)
Remove a Y axis to the chart. |
void |
setChartTitle(int chartId,
java.lang.String title)
Define the chart's title. |
void |
setColor(int chartId,
java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
java.lang.String fieldLabel,
java.awt.Color color)
Sets the color of a plot. |
void |
setDomainRange(int chartId,
int lower,
int upper)
Sets the domain range. |
void |
setMaxNumberOfPoint(int chartId,
int number)
Sets the max number of point. |
void |
setRenderer(int chartId,
java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
java.lang.String fieldLabel,
java.lang.String rendererType)
Sets the renderer. |
void |
setXAxis(int chartId,
java.lang.String fieldName)
Define the X axis for the chart. |
void |
setXAxisLabel(int chartId,
java.lang.String label)
Define the X axis' label. |
void |
setYAxisLabel(int chartId,
java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
java.lang.String fieldLabel,
java.lang.String label)
Define a Y axis' label. |
void |
setYAxisMovingStatistics(int chartId,
java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
java.lang.String fieldLabel,
java.lang.String movingStatistic,
int timeWindow,
int step)
Sets the Y axis moving statistics. |
void |
unbindFc(java.lang.String clientItfName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartEngineImpl()
Method Detail |
---|
public ChartEngineImpl getInstance()
public void bindFc(java.lang.String clientItfName, java.lang.Object serverItf) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
bindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
public java.lang.String[] listFc()
listFc
in interface org.objectweb.fractal.api.control.BindingController
public java.lang.Object lookupFc(java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException
lookupFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
public void unbindFc(java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
unbindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
public void addYAxis(int chartId, java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel)
ChartControl
addYAxis
in interface ChartControl
chartId
- the chart idtestName
- the name of the testbladeId
- the id of a bladeeventTypeLabel
- the label of an event typefieldLabel
- the field labelpublic int createNewChart(java.lang.String type)
ChartControl
createNewChart
in interface ChartControl
type
- the type of chart
public javax.swing.JPanel getChart(int chartId)
ChartControl
getChart
in interface ChartControl
chartId
- the chart id
public void removeYAxis(int chartId, java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel)
ChartControl
removeYAxis
in interface ChartControl
chartId
- the chart idtestName
- the name of the testbladeId
- the id of a bladeeventTypeLabel
- the label of an event typefieldLabel
- the field labelpublic void setChartTitle(int chartId, java.lang.String title)
ChartControl
setChartTitle
in interface ChartControl
chartId
- the chart idtitle
- the chart's titlepublic void setXAxis(int chartId, java.lang.String fieldName)
ChartControl
setXAxis
in interface ChartControl
chartId
- the chart idfieldName
- the field namepublic void setXAxisLabel(int chartId, java.lang.String label)
ChartControl
setXAxisLabel
in interface ChartControl
chartId
- the chart idlabel
- the label of the X axispublic void setYAxisLabel(int chartId, java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel, java.lang.String label)
ChartControl
setYAxisLabel
in interface ChartControl
chartId
- the chart idtestName
- the name of the testbladeId
- the id of a bladeeventTypeLabel
- the label of an event typefieldLabel
- the field labellabel
- the label of the Y axispublic java.awt.image.BufferedImage getChartImage(int chartId, int width, int height)
ChartControl
getChartImage
in interface ChartControl
chartId
- the chart idwidth
- the widthheight
- the height
public java.awt.Color getColor(int chartId, java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel)
ChartControl
getColor
in interface ChartControl
chartId
- the chart idtestName
- the test namebladeId
- the blade ideventTypeLabel
- the event type labelfieldLabel
- the field label
public void setColor(int chartId, java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel, java.awt.Color color)
ChartControl
setColor
in interface ChartControl
chartId
- the chart idtestName
- the test namebladeId
- the blade ideventTypeLabel
- the event type labelfieldLabel
- the field labelcolor
- the colorpublic void setRenderer(int chartId, java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel, java.lang.String rendererType)
ChartControl
setRenderer
in interface ChartControl
chartId
- the chart idtestName
- the test namebladeId
- the blade ideventTypeLabel
- the event type labelfieldLabel
- the field labelrendererType
- the type rendererpublic java.util.Map getRendererList()
ChartControl
getRendererList
in interface ChartControl
public void setYAxisMovingStatistics(int chartId, java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel, java.lang.String movingStatistic, int timeWindow, int step)
ChartControl
setYAxisMovingStatistics
in interface ChartControl
chartId
- the chart idtestName
- the test namebladeId
- the blade ideventTypeLabel
- the event type labelfieldLabel
- the field labelmovingStatistic
- the moving statistictimeWindow
- the time windowstep
- the steppublic void setDomainRange(int chartId, int lower, int upper)
ChartControl
setDomainRange
in interface ChartControl
chartId
- the chart idlower
- the lowerupper
- the upperpublic int getLowerLimit(int chartId)
ChartControl
getLowerLimit
in interface ChartControl
chartId
- the chart id
public int getMaxNumberOfPoint(int chartId)
ChartControl
getMaxNumberOfPoint
in interface ChartControl
chartId
- the chart id
public int getUpperLimit(int chartId)
ChartControl
getUpperLimit
in interface ChartControl
chartId
- the chart id
public void setMaxNumberOfPoint(int chartId, int number)
ChartControl
setMaxNumberOfPoint
in interface ChartControl
chartId
- the chart idnumber
- the number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |