|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.GanttPlot
public class GanttPlot
A general class for plotting data in the form of an start, end and progress value.
This plot can use data from any class that implements the GanttDataset interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
AbstractPlot.GradientSetting |
| Field Summary | |
|---|---|
static GanttStyle |
DEFAULT_STYLE
Default chart style with this plot. |
| Fields inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
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 Summary | |
|---|---|
GanttPlot()
Creates a gantt plot with default properties. |
|
GanttPlot(GanttStyle style)
Creates a gantt plot with defined chart style. |
|
| Method Summary | |
|---|---|
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. |
ChartStyle |
getStyle()
Returns the style of this chart, ie. the general category this plot belongs to. |
protected java.lang.StringBuffer |
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. |
| Field Detail |
|---|
public static final GanttStyle DEFAULT_STYLE
| Constructor Detail |
|---|
public GanttPlot()
public GanttPlot(GanttStyle style)
style - the chart style (null not permitted)GanttStyle| Method Detail |
|---|
public GanttDataset getDataset()
GanttDataset.
setDataset(GanttDataset),
GanttForEachRecordDataset,
GanttOneGroupDataset,
GanttTwoGroupsDatasetpublic void setDataset(GanttDataset dataset)
dataset - the dataset (null not permitted)getDataset(),
GanttDataset,
GanttForEachRecordDataset,
GanttOneGroupDataset,
GanttTwoGroupsDatasetpublic GroupAxis getCategoryAxis()
setCategoryAxis(GroupAxis),
GroupAxispublic void setCategoryAxis(GroupAxis categoryAxis)
categoryAxis - the category axis (null not permitted)getCategoryAxis(),
GroupAxispublic ContinuousDateAxis getDataAxis()
setDataAxis(ContinuousDateAxis),
ContinuousDateAxispublic void setDataAxis(ContinuousDateAxis dataAxis)
dataAxis - the data axis (null not permitted)getDataAxis(),
ContinuousDateAxispublic ChartStyle getStyle()
getStyle in class AbstractPlotBarStyle.BAR2D,
LineStyle.LINE_MARKER,
AreaStyle.AREA2D_STACKEDpublic int getItemLabelAlignment()
setItemLabelAlignment(int),
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO,
BarPlot.ITEM_LABEL_ALIGNMENT_HORIZONTAL,
BarPlot.ITEM_LABEL_ALIGNMENT_VERTICALpublic void setItemLabelAlignment(int itemLabelAlignment)
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO.
itemLabelAlignment - the item label alignment
java.lang.IllegalArgumentException - by unknown alignment.getItemLabelAlignment(),
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO,
BarPlot.ITEM_LABEL_ALIGNMENT_HORIZONTAL,
BarPlot.ITEM_LABEL_ALIGNMENT_VERTICALpublic 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_MAXpublic void setItemLabelPosition(int itemLabelPosition)
StandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAX.
itemLabelPosition - the itemLabelPosition to set
java.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_MAXpublic void refreshAutoTitles(Chart2 chart)
refreshAutoTitles in interface ChartPlotrefreshAutoTitles in class AbstractPlotchart - the chart
protected void saveSubProperties(java.io.PrintWriter out,
int depth)
PrintWriter without building a StringBuffer.
saveSubProperties in class AbstractPlotout - the outputdepth - the depth of XML indentprotected java.lang.StringBuffer getSubProperties(int depth)
getSubProperties in class AbstractPlotdepth - the depth of XML indent
public void readProperties(org.w3c.dom.Element element,
Chart2 chart)
readProperties in interface ChartPlotreadProperties in class AbstractPlotelement - the DOMParser Elementchart - the chart
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||