|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.chart.model.ChartModel
public class ChartModel
The documentation for this class is from the perspective of the ChartModel file. The valid property parameters may not match the property parameter type, but instead reflects the values that may be present in the file. Properties which are classes have their own configurable properties and are therefore linked. Please reference the respective class for its attributes.
Field Summary | |
---|---|
static String |
DEFAULT_FAMILY
|
static int |
DEFAULT_SIZE
|
Constructor Summary | |
---|---|
ChartModel()
|
Method Summary | |
---|---|
Object |
getBackground()
Get the currently set background |
Integer |
getBorderColor()
|
boolean |
getBorderVisible()
|
Integer |
getBorderWidth()
|
String |
getChartEngineId()
|
ChartLegend |
getLegend()
|
Plot |
getPlot()
|
CssStyle |
getStyle()
|
StyledText |
getSubtitle()
|
List<StyledText> |
getSubtitles()
|
Theme.ChartTheme |
getTheme()
|
ChartTitle |
getTitle()
|
void |
setBackground(Gradient backgroundGradient)
Not implemented |
void |
setBackground(Integer backgroundColor)
StyledText.setBackgroundColor(Integer) |
void |
setBackground(String backgroundImageLocation)
Not implemented |
void |
setBackground(Texture backgroundTexture)
Not implemented |
void |
setBorderColor(Integer color)
Hex RGB notation of the desired border color |
void |
setBorderVisible(boolean visible)
Not implemented |
void |
setBorderWidth(Integer width)
Width of the entire chart area in pixels |
void |
setChartEngineId(String id)
Desired renderer of the chart. |
void |
setLegend(ChartLegend chartLegend)
|
void |
setPlot(Plot plot)
The plot is the area on which the chart will be rendered. |
void |
setSubtitle(StyledText title)
|
void |
setSubtitles(List<StyledText> subtitles)
|
void |
setTheme(Theme.ChartTheme theme)
Set an overall color and style scheme for the chart. |
void |
setTitle(ChartTitle title)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_FAMILY
public static final int DEFAULT_SIZE
Constructor Detail |
---|
public ChartModel()
Method Detail |
---|
public String getChartEngineId()
public void setChartEngineId(String id)
Possible values |
---|
JFreeChart |
OpenFlashChart |
id
- public Theme.ChartTheme getTheme()
public void setTheme(Theme.ChartTheme theme)
Possible values |
---|
THEME1 |
THEME2 |
THEME3 |
THEME4 |
THEME5 |
THEME6 |
theme
- public List<StyledText> getSubtitles()
public void setSubtitles(List<StyledText> subtitles)
subtitles
- StyledText
public StyledText getSubtitle()
public void setSubtitle(StyledText title)
title
- StyledText
public ChartLegend getLegend()
public void setLegend(ChartLegend chartLegend)
chartLegend
- ChartLegend
public Object getBackground()
public void setBackground(Integer backgroundColor)
StyledText.setBackgroundColor(Integer)
backgroundColor
- public void setBackground(String backgroundImageLocation)
backgroundImageLocation
- public void setBackground(Gradient backgroundGradient)
backgroundGradient
- Gradient
public void setBackground(Texture backgroundTexture)
backgroundTexture
- public Plot getPlot()
public void setPlot(Plot plot)
Possible values |
---|
barPlot |
areaPlot |
linePlot |
piePlot |
dialPlot |
plot
- public ChartTitle getTitle()
public void setTitle(ChartTitle title)
title
- ChartTitle
public Integer getBorderColor()
public boolean getBorderVisible()
public Integer getBorderWidth()
public void setBorderColor(Integer color)
Basic colors | |
---|---|
White: | #FFFFFF |
Black: | #000000 |
Grey: | #888888 |
Red: | #FF0000 |
Green: | #00FF00 |
Blue: | #0000FF |
color
- public void setBorderVisible(boolean visible)
visible
- public void setBorderWidth(Integer width)
width
- public CssStyle getStyle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |