|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.chart.ChartDefinitionImpl
public class ChartDefinitionImpl
The implementation of the ChartDefinition interface. This class will hold the objects used to load the chart definition and the related data.
Constructor Summary | |
---|---|
ChartDefinitionImpl(ChartData data,
ChartDocument doc)
Constructs a ChartDefinition with the specified data and the chart document |
|
ChartDefinitionImpl(ChartData data,
org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
Constructs a ChartDefinition by loading the chart information from a resource manager using the specified key. |
|
ChartDefinitionImpl(ChartDocument doc)
Constructs a ChartDefinition with the specified chart document |
|
ChartDefinitionImpl(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
|
Method Summary | |
---|---|
ChartDocument |
getChartDocument()
Returns the chart document which was set or loaded from the resource manager |
org.pentaho.reporting.libraries.resourceloader.ResourceKey |
getChartResourceKey()
Returns the resource key which is used to store the chart in the resource manager |
org.pentaho.reporting.libraries.resourceloader.ResourceManager |
getChartResourceManager()
Returns the resource manager in which the chart document is stored |
ChartData |
getData()
Returns the chart data |
void |
setData(ChartData data)
Sets the chart data |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartDefinitionImpl(ChartData data, ChartDocument doc) throws IllegalArgumentException
data
- the data for the chart (null
is acceptable)doc
- the chart document used in generating the chart
IllegalArgumentException
- indicates the chart document passed is null
public ChartDefinitionImpl(ChartDocument doc) throws IllegalArgumentException
doc
-
IllegalArgumentException
- indicates the chart document passed is null
public ChartDefinitionImpl(ChartData data, org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws IllegalArgumentException, org.pentaho.reporting.libraries.resourceloader.ResourceException
data
- the data for the chart (null
is acceptable)manager
- the resource manager from which the chart definition resource should be retrieved
(null
is acceptable)key
- the key used to retrieve the chart definition resource from the resource manager
IllegalArgumentException
- indicates the resource key provided is null
org.pentaho.reporting.libraries.resourceloader.ResourceException
public ChartDefinitionImpl(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws IllegalArgumentException, org.pentaho.reporting.libraries.resourceloader.ResourceException
manager
- key
-
IllegalArgumentException
org.pentaho.reporting.libraries.resourceloader.ResourceException
Method Detail |
---|
public void setData(ChartData data)
setData
in interface ChartDefinition
data
- the chart datapublic ChartData getData()
getData
in interface ChartDefinition
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getChartResourceKey()
getChartResourceKey
in interface ChartDefinition
public org.pentaho.reporting.libraries.resourceloader.ResourceManager getChartResourceManager()
getChartResourceManager
in interface ChartDefinition
public ChartDocument getChartDocument()
getChartDocument
in interface ChartDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |