ChartTypeCharacterizer

Inheritance: java.lang.Object

public class ChartTypeCharacterizer

Helper for getting additional information about charts and series by its ChartType.

Constructors

Constructor Description
ChartTypeCharacterizer()

Methods

Method Description
isBar3DChart(int chartType) Return true if chartType is one of bar3DChart subtypes (3D columns or bars).
is2DChart(int chartType) Return true if chartType is one of 2D chart types.
is3DChart(int chartType) Return true if chartType is one of 3D chart types.
isChartTypeColumn(int chartType) Return true if chartType is one of Column subtypes.
isChartTypeLine(int chartType) Return true if chartType is one of Line subtypes.
isChartTypePie(int chartType) Return true if chartType is one of Pie subtypes.
isChartTypeBar(int chartType) Return true if chartType is one of Bar subtypes.
isChartTypeArea(int chartType) Return true if chartType is one of Area subtypes.
isChartTypeScatter(int chartType) Return true if chartType is one of Scatter subtypes.
isChartTypeStock(int chartType) Return true if chartType is one of Stock subtypes.
isChartTypeSurface(int chartType) Return true if chartType is one of Surface subtypes.
isChartTypeDoughnut(int chartType) Return true if chartType is one of Doughnut subtypes.
isChartTypeBubble(int chartType) Return true if chartType is one of Bubble subtypes.
isChartTypeRadar(int chartType) Return true if chartType is one of Radar subtypes.
isSeriesUsesXValueCoordinate(int seriesType) Returns if specified series type uses X value coordinates.
isSeriesUsesYValueCoordinate(int seriesType) Returns if specified series type uses Y value coordinates.
isSeriesUsesValueCoordinate(int seriesType) Returns if specified series type uses value coordinates.
isSeriesUsesBubbleSizeCoordinate(int seriesType) Returns if bubble size coordinates can be used for specified series type.
hasSeriesTrendLines(int seriesType) Returns if there are series trend lines for specified series type.
isErrorBarsXAllowed(int seriesType) Returns if error bars X allowed for specified series type.
isErrorBarsYAllowed(int seriesType) Returns if error bars Y allowed for specified series type.

ChartTypeCharacterizer()

public ChartTypeCharacterizer()

isBar3DChart(int chartType)

public static boolean isBar3DChart(int chartType)

Return true if chartType is one of bar3DChart subtypes (3D columns or bars).

Parameters:

Parameter Type Description
chartType int

Returns: boolean

is2DChart(int chartType)

public static boolean is2DChart(int chartType)

Return true if chartType is one of 2D chart types.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

is3DChart(int chartType)

public static boolean is3DChart(int chartType)

Return true if chartType is one of 3D chart types.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeColumn(int chartType)

public static boolean isChartTypeColumn(int chartType)

Return true if chartType is one of Column subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#ClusteredColumn, ChartType#ClusteredColumn3D, ChartType#ClusteredCone, ChartType#ClusteredCylinder, ChartType#ClusteredPyramid, ChartType#PercentsStackedColumn, ChartType#PercentsStackedColumn3D, ChartType#PercentsStackedCone, ChartType#PercentsStackedCylinder, ChartType#PercentsStackedPyramid, ChartType#StackedColumn, ChartType#StackedColumn3D, ChartType#StackedCone, ChartType#StackedCylinder, ChartType#StackedPyramid, ChartType#Column3D, ChartType#Cylinder3D, ChartType#Cone3D, ChartType#Pyramid3D.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeLine(int chartType)

public static boolean isChartTypeLine(int chartType)

Return true if chartType is one of Line subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#Line, ChartType#LineWithMarkers, ChartType#PercentsStackedLine, ChartType#PercentsStackedLineWithMarkers, ChartType#StackedLine, ChartType#StackedLineWithMarkers, ChartType#Line3D.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypePie(int chartType)

public static boolean isChartTypePie(int chartType)

Return true if chartType is one of Pie subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#BarOfPie, ChartType#ExplodedPie, ChartType#ExplodedPie3D, ChartType#Pie, ChartType#Pie3D, ChartType#PieOfPie.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeBar(int chartType)

public static boolean isChartTypeBar(int chartType)

Return true if chartType is one of Bar subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#ClusteredBar, ChartType#ClusteredBar3D, ChartType#PercentsStackedBar, ChartType#PercentsStackedBar3D, ChartType#StackedBar, ChartType#StackedBar3D, ChartType#ClusteredHorizontalCone, ChartType#ClusteredHorizontalCylinder, ChartType#ClusteredHorizontalPyramid, ChartType#StackedHorizontalCone, ChartType#StackedHorizontalCylinder, ChartType#StackedHorizontalPyramid, ChartType#PercentsStackedHorizontalCone, ChartType#PercentsStackedHorizontalCylinder, ChartType#PercentsStackedHorizontalPyramid.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeArea(int chartType)

public static boolean isChartTypeArea(int chartType)

Return true if chartType is one of Area subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#Area, ChartType#PercentsStackedArea, ChartType#PercentsStackedArea3D, ChartType#StackedArea, ChartType#StackedArea3D, ChartType#Area3D.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeScatter(int chartType)

public static boolean isChartTypeScatter(int chartType)

Return true if chartType is one of Scatter subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#ScatterWithMarkers, ChartType#ScatterWithSmoothLines, ChartType#ScatterWithSmoothLinesAndMarkers, ChartType#ScatterWithStraightLines, ChartType#ScatterWithStraightLinesAndMarkers.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeStock(int chartType)

public static boolean isChartTypeStock(int chartType)

Return true if chartType is one of Stock subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#HighLowClose, ChartType#OpenHighLowClose, ChartType#VolumeHighLowClose, ChartType#VolumeOpenHighLowClose.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeSurface(int chartType)

public static boolean isChartTypeSurface(int chartType)

Return true if chartType is one of Surface subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#Surface3D, ChartType#WireframeSurface3D, ChartType#Contour, ChartType#WireframeContour.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeDoughnut(int chartType)

public static boolean isChartTypeDoughnut(int chartType)

Return true if chartType is one of Doughnut subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#Doughnut, ChartType#ExplodedDoughnut.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeBubble(int chartType)

public static boolean isChartTypeBubble(int chartType)

Return true if chartType is one of Bubble subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#Bubble, ChartType#BubbleWith3D.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isChartTypeRadar(int chartType)

public static boolean isChartTypeRadar(int chartType)

Return true if chartType is one of Radar subtypes. Subtypes set corresponds to the appropriate set in PowerPoint (see “Change Chart Type” dialog in PowerPoint): ChartType#FilledRadar, ChartType#Radar, ChartType#RadarWithMarkers.

Parameters:

Parameter Type Description
chartType int

Returns: boolean

isSeriesUsesXValueCoordinate(int seriesType)

public static boolean isSeriesUsesXValueCoordinate(int seriesType)

Returns if specified series type uses X value coordinates.

Parameters:

Parameter Type Description
seriesType int Series type.

Returns: boolean - True if uses otherwise false.

isSeriesUsesYValueCoordinate(int seriesType)

public static boolean isSeriesUsesYValueCoordinate(int seriesType)

Returns if specified series type uses Y value coordinates.

Parameters:

Parameter Type Description
seriesType int Series type.

Returns: boolean - True if uses otherwise false.

isSeriesUsesValueCoordinate(int seriesType)

public static boolean isSeriesUsesValueCoordinate(int seriesType)

Returns if specified series type uses value coordinates.

Parameters:

Parameter Type Description
seriesType int Series type.

Returns: boolean - True if uses otherwise false.

isSeriesUsesBubbleSizeCoordinate(int seriesType)

public static boolean isSeriesUsesBubbleSizeCoordinate(int seriesType)

Returns if bubble size coordinates can be used for specified series type.

Parameters:

Parameter Type Description
seriesType int Series type.

Returns: boolean - True if can be used, otherwise false.

hasSeriesTrendLines(int seriesType)

public static boolean hasSeriesTrendLines(int seriesType)

Returns if there are series trend lines for specified series type.

Parameters:

Parameter Type Description
seriesType int Series type.

Returns: boolean - True if present otherwise false.

isErrorBarsXAllowed(int seriesType)

public static boolean isErrorBarsXAllowed(int seriesType)

Returns if error bars X allowed for specified series type.

Parameters:

Parameter Type Description
seriesType int Series type.

Returns: boolean - True if allowed, otherwise false.

isErrorBarsYAllowed(int seriesType)

public static boolean isErrorBarsYAllowed(int seriesType)

Returns if error bars Y allowed for specified series type.

Parameters:

Parameter Type Description
seriesType int Series type.

Returns: boolean - True if allowed, otherwise false.