Package com.inet.report.chart.plot
Class Chart3DPlot
java.lang.Object
com.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.StandardPlot
com.inet.report.chart.plot.Chart3DPlot
- All Implemented Interfaces:
ChartPlot,Serializable
Class to create 3D chart plots.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot
AbstractPlot.GradientSetting -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default base color.static final Chart3DStyleDefault chart style with this plot.static final intThe default color of both walls.Fields inherited from class com.inet.report.chart.plot.StandardPlot
ITEM_LABEL_POSITION_BASE, ITEM_LABEL_POSITION_CENTER, ITEM_LABEL_POSITION_INSIDE_OF_MAX, ITEM_LABEL_POSITION_OUTSIDE_OF_MAXFields 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
ConstructorsConstructorDescriptionCreates a 3D plot with default properties.Chart3DPlot(Chart3DStyle style) Creates a 3D plot with defined chart style. -
Method Summary
Modifier and TypeMethodDescriptionReturns the series axis.getStyle()Returns the style of this chart, ie. the general category this plot belongs to.protected StringBuildergetSubProperties(int depth) Returns the serialized simple properties of subclasses.com.inet.chart3d.geom.ViewParamsReturns the 3D viewing parameters for this chart.intReturns the ABGR value representing the wall background color.voidreadProperties(Element element, Chart2 chart) Reads the chart properties from the DOMParser Element.voidrefreshAutoTitles(Chart2 chart) Reads out the data column names from dataset and refreshes the chart labels.protected voidsaveSubProperties(PrintWriter out, int depth) Writes the intern properties to output.voidsetSeriesAxis(BaseAxis seriesAxis) Sets the series axis.voidsetStyle(Chart3DStyle style) Sets the chart style of this plot.voidsetViewParams(com.inet.chart3d.geom.ViewParams viewParams) Sets the 3D viewing parameters for this chart.voidsetWallBackColor(int wallBackgroundColor) Sets the ABGR components of the walls background paint.Methods inherited from class com.inet.report.chart.plot.StandardPlot
getCategoryAxis, getDataAxis, getDataset, getItemLabelPosition, getReferencedObject, isShowCumulativeValues, setCategoryAxis, setDataAxis, setDataset, setItemLabelPosition, setShowCumulativeValuesMethods inherited from class com.inet.report.chart.plot.AbstractPlot
getBackColor, getColorFormula, getColorSequence, getForegroundAlpha, getGradientSetting, getItemLabelColor, getItemLabelFont, getItemLabelFormat, getItemLabelFormatFormula, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, setItemLabelFormatFormula, setItemShape, setOutlineColor, setOutlineStyle, setOutlineWidth, setSameColorsForSameGroups, setShowLabel, setShowValue
-
Field Details
-
DEFAULT_STYLE
Default chart style with this plot. -
DEFAULT_WALL_COLOR
public static final int DEFAULT_WALL_COLORThe default color of both walls. -
DEFAULT_BASE_COLOR
public static final int DEFAULT_BASE_COLORThe default base color.
-
-
Constructor Details
-
Chart3DPlot
public Chart3DPlot()Creates a 3D plot with default properties.- Since:
- 8.0
-
Chart3DPlot
Creates a 3D plot with defined chart style. Initializes all properties with default values.- Parameters:
style- the chart style (nullnot permitted)- Since:
- 8.0
- See Also:
-
-
Method Details
-
getWallBackColor
public int getWallBackColor()Returns the ABGR value representing the wall background color.- Returns:
- the color.
- Since:
- 8.0
- See Also:
-
setWallBackColor(int)ColorUtils.toJavaColor(int)
-
setWallBackColor
public void setWallBackColor(int wallBackgroundColor) Sets the ABGR components of the walls background paint.- Parameters:
wallBackgroundColor- the color- Since:
- 8.0
- See Also:
-
getWallBackColor()ColorUtils.toCcColor(Color)
-
getSeriesAxis
Returns the series axis. The series axis is the left axis on bottom of chart.- Returns:
- the seriesAxis
- Since:
- 8.0
- See Also:
-
setSeriesAxis
Sets the series axis. The series axis is the left axis on bottom of chart.- Parameters:
seriesAxis- the series axis (nullnot permitted)- Since:
- 8.0
- See Also:
-
getStyle
Returns the style of this chart, ie. the general category this plot belongs to.- Specified by:
getStylein classStandardPlot- Returns:
- the style
- See Also:
-
setStyle
Sets the chart style of this plot.- Parameters:
style- the style (nullnot permitted)- Since:
- 8.0
- See Also:
-
getViewParams
public com.inet.chart3d.geom.ViewParams getViewParams()Returns the 3D viewing parameters for this chart.- Returns:
- the view parameters.
- Since:
- 8.0
- See Also:
-
setViewParams(ViewParams)ViewParams
-
setViewParams
public void setViewParams(com.inet.chart3d.geom.ViewParams viewParams) Sets the 3D viewing parameters for this chart.- Parameters:
viewParams- the viewing parameters (nullnot permitted)- Since:
- 8.0
- See Also:
-
getViewParams()ViewParams
-
refreshAutoTitles
Reads out the data column names from dataset and refreshes the chart labels. Please use this function to refresh the chart labels if the data was be changed.- Specified by:
refreshAutoTitlesin interfaceChartPlot- Overrides:
refreshAutoTitlesin classStandardPlot- Parameters:
chart- the chart
-
getSubProperties
Returns the serialized simple properties of subclasses.- Overrides:
getSubPropertiesin classStandardPlot- Parameters:
depth- the depth of XML indent- Returns:
- the properties.
-
saveSubProperties
Writes the intern properties to output. Overwrites this to save intern properties direct toPrintWriterwithout building aStringBuilder.- Overrides:
saveSubPropertiesin classStandardPlot- Parameters:
out- the outputdepth- the depth of XML indent
-
readProperties
Reads the chart properties from the DOMParser Element.- Specified by:
readPropertiesin interfaceChartPlot- Overrides:
readPropertiesin classStandardPlot- Parameters:
element- the DOMParser Elementchart- the chart
-