org.romaframework.module.chart.jfreechart.view.domain.chartviewer
Class ChartViewer

java.lang.Object
  extended by org.romaframework.module.chart.jfreechart.view.domain.chartviewer.ChartViewer
All Implemented Interfaces:
org.romaframework.core.config.Refreshable

public class ChartViewer
extends java.lang.Object
implements org.romaframework.core.config.Refreshable

this class can represent charts allowing you to modify the chart structure (dimension, chart type, orientation etc.) through a simple user interface

Author:
Luigi Dell'Aquila (luigi.dellaquila@assetdata.it)

Constructor Summary
ChartViewer()
          builds an empty chart helper
ChartViewer(java.lang.Object obj)
          builds a chart helper creating a chart from the given object
 
Method Summary
 void apply()
           
 ChartRenderer getChart()
          returns the object that is being rendered as a chart
 RenderOptionsMain getOptions()
           
 void refresh()
           
 void setObjectToRender(java.lang.Object obj)
          changes the object to be rendered as a chart
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartViewer

public ChartViewer()
builds an empty chart helper


ChartViewer

public ChartViewer(java.lang.Object obj)
builds a chart helper creating a chart from the given object

Parameters:
obj - the object to be represented as a chart
Method Detail

apply

public void apply()

setObjectToRender

public void setObjectToRender(java.lang.Object obj)
changes the object to be rendered as a chart

Parameters:
obj - the object to be rendered as a chart

getChart

public ChartRenderer getChart()
returns the object that is being rendered as a chart

Returns:
the object that is being rendered as a chart

refresh

public void refresh()
Specified by:
refresh in interface org.romaframework.core.config.Refreshable

getOptions

public RenderOptionsMain getOptions()