public class GraphUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BUBBLE_GROUP |
static int |
DEFAULT_GROUP |
static int |
POLAR_GROUP |
static int |
SCATTER_GROUP |
static int |
STOCK_GROUP |
Constructor and Description |
---|
GraphUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDataLabelString(CommonGraph graph)
returning the string that represents type of the current graph
|
static int |
getGraphTypeGroup(int type) |
static int |
getSeriesCount(CommonGraph graph) |
static boolean |
hasGradient(CommonGraph graph) |
static boolean |
is3DDisabled(Graph graph) |
static boolean |
is3DDisabled(GraphTypeConverter converter,
UIGraphType graph) |
static boolean |
is3DGraph(int graphType) |
static boolean |
isAllSeriesSupported(int graphType) |
static boolean |
isAreaGraph(int graphType) |
static boolean |
isAssignedToY2Supported(int graphType) |
static boolean |
isBarGraph(int graphType) |
static boolean |
isBubbleGraph(int graphType) |
static boolean |
isCandleOrVolume(int graphType) |
static boolean |
isDataLabelInTheCenterSupported(int graphType)
If current graph type supports displaying the data labels
in the center then return true
|
static boolean |
isDotType(int graphType) |
static boolean |
isFitlineSupported(int graphType) |
static boolean |
isGradientDisabled(Graph graph) |
static boolean |
isGradientDisabled(int graphType) |
static boolean |
isGridlineSupported(int graphType) |
static boolean |
isHorizontalBarGraph(int graphType) |
static boolean |
isLegendEnabled(int graphType) |
static boolean |
isLineGraph(int graphType) |
static boolean |
isLineSupported(CommonGraph graph) |
static boolean |
isMarkerShapeSupported(int graphType) |
static boolean |
isMarkerTypeSupported(int graphType) |
static boolean |
isO1AxisSupported(int graphType) |
static boolean |
isPercentGraph(int graphType) |
static boolean |
isPieGraph(int graphType) |
static boolean |
isPolarGraph(int graphType) |
static boolean |
isRadarGraph(int graphType) |
static boolean |
isReferenceLineSupported(int graphType) |
static boolean |
isScatterGraph(int graphType) |
static boolean |
isStockGraph(int graphType) |
static void |
verifyGraphMeasureLayout(CommonGraph graph) |
public static final int DEFAULT_GROUP
public static final int STOCK_GROUP
public static final int BUBBLE_GROUP
public static final int SCATTER_GROUP
public static final int POLAR_GROUP
public static int getGraphTypeGroup(int type)
public static void verifyGraphMeasureLayout(CommonGraph graph) throws DataException
DataException
public static boolean is3DDisabled(GraphTypeConverter converter, UIGraphType graph)
public static boolean isGradientDisabled(int graphType)
public static boolean is3DDisabled(Graph graph)
public static boolean isGradientDisabled(Graph graph)
public static boolean isBubbleGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a bubble graph,
false
if it is not.public static boolean isLineGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a line graph,
false
if it is not.public static boolean isPieGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a pie graph,
false
if it is not.public static boolean isPolarGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a polar graph,
false
if it is not.public static boolean isRadarGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a radar graph,
false
if it is not.public static boolean isScatterGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a scatter graph,
false
if it is not.public static boolean isStockGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a stock graph,
false
if it is not.public static boolean isPercentGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a percent graph,
false
if it is not.public static boolean is3DGraph(int graphType)
graphType
- A constant that indicates the graph type to check.
Valid constants are the valid contants for
Graph.setGraphType(int)
.true
if the specified graph type is a three-dimensional graph,
false
if it is not.public static boolean isDotType(int graphType)
public static boolean isLegendEnabled(int graphType)
public static boolean isCandleOrVolume(int graphType)
public static int getSeriesCount(CommonGraph graph)
public static boolean isAllSeriesSupported(int graphType)
public static boolean isMarkerTypeSupported(int graphType)
public static boolean isLineSupported(CommonGraph graph)
public static boolean isMarkerShapeSupported(int graphType)
public static boolean isFitlineSupported(int graphType)
public static boolean isAssignedToY2Supported(int graphType)
public static boolean isReferenceLineSupported(int graphType)
public static boolean isDataLabelInTheCenterSupported(int graphType)
public static java.lang.String getDataLabelString(CommonGraph graph)
public static boolean isGridlineSupported(int graphType)
public static boolean isO1AxisSupported(int graphType)
public static boolean hasGradient(CommonGraph graph)
public static boolean isBarGraph(int graphType)
public static boolean isHorizontalBarGraph(int graphType)
public static boolean isAreaGraph(int graphType)