public abstract class StandardPlot extends AbstractPlot
BaseAxis
as category axis,
DiscreteNumberAxis
as data axis and StandardDataset
as data source.AbstractPlot.GradientSetting
Modifier and Type | Field and Description |
---|---|
static int |
ITEM_LABEL_POSITION_BASE
The label position over the bottom of the item.
|
static int |
ITEM_LABEL_POSITION_CENTER
The label position in the center of the item.
|
static int |
ITEM_LABEL_POSITION_INSIDE_OF_MAX
The label position inside the max of the item.
|
static int |
ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
The label position outside the max of the item.
|
DEFAULT_COLOR_SEQUENCE, DEFAULT_FOREGROUND_ALPHA, DEFAULT_ITEM_LABEL_COLOR, DEFAULT_ITEM_LABEL_FONT, DEFAULT_OUTLINE_COLOR, DEFAULT_OUTLINE_STYLE, DEFAULT_OUTLINE_WIDTH, TOKEN_PLOT
Modifier and Type | Method and Description |
---|---|
BaseAxis |
getCategoryAxis()
Returns the category axis.
|
DiscreteNumberAxis |
getDataAxis()
Returns the data axis of this plot.
|
StandardDataset |
getDataset()
Returns the data container of this plot.
|
int |
getItemLabelPosition()
Returns the item label position on the chart item.
|
java.util.List |
getReferencedObject()
|
abstract ChartStyle |
getStyle()
Returns the style of this chart, ie. the general category this plot belongs to.
|
protected java.lang.StringBuilder |
getSubProperties(int depth)
Returns the serialized simple properties of subclasses.
|
boolean |
isShowCumulativeValues()
Returns the flag that controls whether or not the item label labels shows cumulative or absolute values.
|
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Reads the chart properties from the DOMParser Element.
|
void |
refreshAutoTitles(Chart2 chart)
Reads out the data column names from dataset and refreshes the chart labels.
|
protected void |
saveSubProperties(java.io.PrintWriter out,
int depth)
Writes the intern properties to output.
|
void |
setCategoryAxis(BaseAxis categoryAxis)
Sets the category axis for this plot.
|
void |
setDataAxis(DiscreteNumberAxis dataAxis)
Sets the data axis for this plot.
|
void |
setDataset(StandardDataset dataset)
Sets the data container for this plot.
|
void |
setItemLabelPosition(int itemLabelPosition)
Sets the item label position on the chart item.
|
void |
setShowCumulativeValues(boolean showCumulativeValues)
Sets the flag that controls whether or not the item labels shows cumulative or absolute values.
|
getBackColor, getColorFormula, getColorSequence, getForegroundAlpha, getGradientSetting, getItemLabelColor, getItemLabelFont, getItemLabelFormat, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, setItemShape, setOutlineColor, setOutlineStyle, setOutlineWidth, setSameColorsForSameGroups, setShowLabel, setShowValue
public static final int ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
public static final int ITEM_LABEL_POSITION_INSIDE_OF_MAX
public static final int ITEM_LABEL_POSITION_CENTER
public static final int ITEM_LABEL_POSITION_BASE
public StandardDataset getDataset()
setDataset(StandardDataset)
,
ForAllRecordsDataset
,
ForEachRecordDataset
,
OneGroupDataset
,
TwoGroupsDataset
public void setDataset(StandardDataset dataset)
dataset
- the dataset (null
not permitted)getDataset()
,
StandardDataset
,
ForAllRecordsDataset
,
ForEachRecordDataset
,
OneGroupDataset
,
TwoGroupsDataset
public BaseAxis getCategoryAxis()
setCategoryAxis(BaseAxis)
,
BaseAxis
public void setCategoryAxis(BaseAxis categoryAxis)
categoryAxis
- the category axis (null
not permitted)getCategoryAxis()
,
BaseAxis
public DiscreteNumberAxis getDataAxis()
setDataAxis(DiscreteNumberAxis)
,
DiscreteNumberAxis
public void setDataAxis(DiscreteNumberAxis dataAxis)
dataAxis
- the data axis (null
not permitted)getDataAxis()
,
DiscreteNumberAxis
public boolean isShowCumulativeValues()
true
for cumulative false
for absolute values.setShowCumulativeValues(boolean)
public void setShowCumulativeValues(boolean showCumulativeValues)
showCumulativeValues
- the flag true
for cumulative false
for absolute valuesisShowCumulativeValues()
public int getItemLabelPosition()
setItemLabelPosition(int)
,
ITEM_LABEL_POSITION_BASE
,
ITEM_LABEL_POSITION_CENTER
,
ITEM_LABEL_POSITION_INSIDE_OF_MAX
,
ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
public void setItemLabelPosition(int itemLabelPosition)
ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
.itemLabelPosition
- the itemLabelPosition to setjava.lang.IllegalArgumentException
- by unknown position.setItemLabelPosition(int)
,
ITEM_LABEL_POSITION_BASE
,
ITEM_LABEL_POSITION_CENTER
,
ITEM_LABEL_POSITION_INSIDE_OF_MAX
,
ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
public void refreshAutoTitles(Chart2 chart)
refreshAutoTitles
in interface ChartPlot
refreshAutoTitles
in class AbstractPlot
chart
- the chartpublic abstract ChartStyle getStyle()
getStyle
in class AbstractPlot
BarStyle.BAR2D
,
LineStyle.LINE_MARKER
,
AreaStyle.AREA2D_STACKED
protected void saveSubProperties(java.io.PrintWriter out, int depth)
PrintWriter
without building a StringBuilder
.saveSubProperties
in class AbstractPlot
out
- the outputdepth
- the depth of XML indentprotected java.lang.StringBuilder getSubProperties(int depth)
getSubProperties
in class AbstractPlot
depth
- the depth of XML indentpublic void readProperties(org.w3c.dom.Element element, Chart2 chart)
readProperties
in interface ChartPlot
readProperties
in class AbstractPlot
element
- the DOMParser Elementchart
- the chartpublic java.util.List getReferencedObject()
getReferencedObject
in interface ChartPlot
getReferencedObject
in class AbstractPlot
Copyright © 1999-2020 by i-net software GmbH