public class Chart extends Object
Chart
represents the chart feature of the ODF document. Chart
provides
methods to get/set chart title, get/set chart data, etc.Modifier and Type | Method and Description |
---|---|
String |
getAxisTitle(String dimType)
chart axis manipulation, temporarily only consider the axis title
|
DataSet |
getChartData()
chart data manipulation, get the chart data
|
String |
getChartID()
chart id manipulation, get the current chart id
|
String |
getChartTitle()
chart title manipulation, get the current chart title
|
ChartType |
getChartType()
chart type manipulation, get the current chart type
|
boolean |
IsApply3DEffect()
3D effect manipulation, get whether the chart apples 3D effect
|
boolean |
isUseLegend()
chart legend manipulation
|
void |
refreshChart()
Refresh chart view and data setting.
|
void |
setApply3DEffect(boolean _3deffect)
3D effect manipulation, set to apply 3D effect
|
void |
setAxisTitle(String dimType,
String title)
chart axis manipulation, set the chart axis title according to the give dimension
|
void |
setChartData(DataSet dataset)
chart data manipulation, set chart data
|
boolean |
setChartTitle(String title)
chart title manipulation, get the current chart title
|
void |
setChartType(ChartType type)
chart type manipulation, set a chart type when chart type is changed, all the corresponding
chart behaviors and properties should be changed accordingly
|
void |
setUseLegend(boolean useLegend)
chart legend manipulation, get whether the chart use legend
|
public boolean IsApply3DEffect()
public String getAxisTitle(String dimType)
dimType
- the chart axis dimension, x, y or zpublic DataSet getChartData()
public String getChartTitle()
public ChartType getChartType()
public String getChartID()
public boolean isUseLegend()
public void setApply3DEffect(boolean _3deffect)
_3deffect
- a flag specifying whether or not apply a 3D effectpublic void setAxisTitle(String dimType, String title)
dimType
- the chart axis dimension, x,y, or ztitle
- the title of axispublic void setChartData(DataSet dataset)
dataset
- the data set for the chart, which is a 2 dimensional data containerpublic boolean setChartTitle(String title)
public void setChartType(ChartType type)
type
- the type of chartpublic void setUseLegend(boolean useLegend)
useLegend
- a flag specifying whether or not use legendpublic void refreshChart()
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.