public class GanttPlot extends AbstractPlot
GanttDataset
interface.AbstractPlot.GradientSetting
Modifier and Type | Field and Description |
---|---|
static GanttStyle |
DEFAULT_STYLE
Default chart style with this plot.
|
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
Constructor and Description |
---|
GanttPlot()
Creates a gantt plot with default properties.
|
GanttPlot(GanttStyle style)
Creates a gantt plot with defined chart style.
|
Modifier and Type | Method and Description |
---|---|
GroupAxis |
getCategoryAxis()
Returns the category axis of this plot.
|
ContinuousDateAxis |
getDataAxis()
Returns the data axis of this plot.
|
GanttDataset |
getDataset()
Returns a dataset of type
GanttDataset . |
int |
getItemLabelAlignment()
Returns the labels alignment of the items displayed on this plot.
|
int |
getItemLabelPosition()
Returns the item label position on the chart item.
|
java.util.List |
getReferencedObject()
|
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.
|
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(GroupAxis categoryAxis)
Sets the category axis for the plot.
|
void |
setDataAxis(ContinuousDateAxis dataAxis)
Sets the data axis of this plot.
|
void |
setDataset(GanttDataset dataset)
Sets the dataset for gantt chart.
|
void |
setItemLabelAlignment(int itemLabelAlignment)
Sets the item label alignment.
|
void |
setItemLabelPosition(int itemLabelPosition)
Sets the item label position on the chart item.
|
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 GanttStyle DEFAULT_STYLE
public GanttPlot()
public GanttPlot(GanttStyle style)
style
- the chart style (null
not permitted)GanttStyle
public GanttDataset getDataset()
GanttDataset
.setDataset(GanttDataset)
,
GanttForEachRecordDataset
,
GanttOneGroupDataset
,
GanttTwoGroupsDataset
public void setDataset(GanttDataset dataset)
dataset
- the dataset (null
not permitted)getDataset()
,
GanttDataset
,
GanttForEachRecordDataset
,
GanttOneGroupDataset
,
GanttTwoGroupsDataset
public GroupAxis getCategoryAxis()
setCategoryAxis(GroupAxis)
,
GroupAxis
public void setCategoryAxis(GroupAxis categoryAxis)
categoryAxis
- the category axis (null
not permitted)getCategoryAxis()
,
GroupAxis
public ContinuousDateAxis getDataAxis()
setDataAxis(ContinuousDateAxis)
,
ContinuousDateAxis
public void setDataAxis(ContinuousDateAxis dataAxis)
dataAxis
- the data axis (null
not permitted)getDataAxis()
,
ContinuousDateAxis
public ChartStyle getStyle()
getStyle
in class AbstractPlot
BarStyle.BAR2D
,
LineStyle.LINE_MARKER
,
AreaStyle.AREA2D_STACKED
public int getItemLabelAlignment()
setItemLabelAlignment(int)
,
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO
,
BarPlot.ITEM_LABEL_ALIGNMENT_HORIZONTAL
,
BarPlot.ITEM_LABEL_ALIGNMENT_VERTICAL
public void setItemLabelAlignment(int itemLabelAlignment)
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO
.itemLabelAlignment
- the item label alignmentjava.lang.IllegalArgumentException
- by unknown alignment.getItemLabelAlignment()
,
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO
,
BarPlot.ITEM_LABEL_ALIGNMENT_HORIZONTAL
,
BarPlot.ITEM_LABEL_ALIGNMENT_VERTICAL
public int getItemLabelPosition()
setItemLabelPosition(int)
,
StandardPlot.ITEM_LABEL_POSITION_BASE
,
StandardPlot.ITEM_LABEL_POSITION_CENTER
,
StandardPlot.ITEM_LABEL_POSITION_INSIDE_OF_MAX
,
StandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
public void setItemLabelPosition(int itemLabelPosition)
StandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
.itemLabelPosition
- the itemLabelPosition to setjava.lang.IllegalArgumentException
- by unknown position.setItemLabelPosition(int)
,
StandardPlot.ITEM_LABEL_POSITION_BASE
,
StandardPlot.ITEM_LABEL_POSITION_CENTER
,
StandardPlot.ITEM_LABEL_POSITION_INSIDE_OF_MAX
,
StandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
public void refreshAutoTitles(Chart2 chart)
refreshAutoTitles
in interface ChartPlot
refreshAutoTitles
in class AbstractPlot
chart
- the chartprotected 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