public class IlvDataSeriesStyle
extends java.lang.Object
There are four ways a CSS can influence the rendering of a data point:
chartRenderer { ... }This sets Bean properties of the renderer. It is implemented through class
IlvChartCSSModel
. Examples:
chartRenderer[index=0] { visible : false; } chartRenderer { stacked100Percent: true; }
series[...] { ... }This sets Bean properties of the renderer. It is implemented through
IlvChartRenderer#applyStyles(IlvDataSetStyle, IlvChartRenderer, IlvChartRenderer, IlvStylingSupport, boolean)
.
Examples:
series { markerSize : "5"; }
series[...] { ... }This sets Bean properties of this object, either graphic properties (Bean properties of
IlvDataPointStyle
) or properties leading to side
effects on the renderer (like "labeling", "labelLayout").
It is implemented through
IlvChartRenderer#applyStyles(IlvDataSetStyle, IlvChartRenderer, IlvChartRenderer, IlvStylingSupport, boolean)
.
Examples:
series[name="Y3"] { stroke : "@#stroke406ed9ec"; }
point[...] { ... }This sets Bean properties of an
IlvDataPointStyle
, that is, graphic
properties, used by the renderer. It is implemented through
IlvChartRenderer#applyStyles(IlvDataSetStyle, IlvChartRenderer, IlvChartRenderer, IlvStylingSupport, boolean)
.
Examples:
point[y<"7.0"][seriesName="Y4"] { color1 : "#6666ff"; }
series {
class : "ilog.views.chart.hidden.IlvDataSeriesStyle";
annotation : "@#ilvDataLabelAnnotation";
color1 : "#000000";
color2 : "#000000";
endCap : "CAP_BUTT";
labeling : "DataLabel";
labelLayout : "Outside";
lineJoin : "JOIN_BEVEL";
lineStyle : "";
lineWidth : "3.0";
marker : "CIRCLE";
miterLimit : "2.0";
renderingType : "BAR";
stroke : "@#stroke";
style : "@#ilvStyle";
visible : "false";
}
Modifier and Type | Property and Description |
---|---|
IlvDataAnnotation |
annotation
Sets the annotation associated with the point. |
java.lang.String |
class
Default constructor. |
Paint |
color1
Sets the primary color. |
Paint |
color2
Sets the secondary color. |
int |
endCap
Sets the end cap. |
int |
labeling
Sets the labeling mode. |
int |
labelLayout
Sets the label layout. |
int |
lineJoin
Sets the line join. |
float[] |
lineStyle
Sets the line style. |
double |
lineWidth
Sets the line width. |
ilog.views.chart.graphic.IlvMarker |
marker
Sets the marker symbol for this data set. |
float |
miterLimit
Sets the limit of miter joins. |
int |
renderingType
Sets the rendering type. |
Stroke |
stroke
Sets the stroke. |
IlvStyle |
style
Sets the rendering style. |
boolean |
visible
Sets whether the point is visible. |
public java.lang.String class
class : "ilog.views.chart.hidden.IlvDataSeriesStyle";
public IlvDataAnnotation annotation
annotation : "@#ilvDataLabelAnnotation";
IlvDataLabelAnnotation
for an example of implementing an annotation.public Paint color1
color1 : "#000000";
public Paint color2
color2 : "#000000";
public int endCap
endCap : "CAP_BUTT";
Allowed values: | ||
CAP_BUTT |
Ends unclosed subpaths and dash segments with no added decoration. | |
CAP_ROUND |
Ends unclosed subpaths and dash segments with a round decoration that has a radius equal to half of the width of the pen. | |
CAP_SQUARE |
Ends unclosed subpaths and dash segments with a square projection that extends beyond the end of the segment to a distance equal to half of the line width. |
public int labeling
labeling : "DataLabel";
Allowed values: | ||
DataLabel |
Enum constant for labeling mode: specifies that the label of the data point should be displayed. | |
Percent |
Enum constant for labeling mode: specifies that the percent contribution
of the data point should be displayed.
This mode is only available for renderers displaying percentages:
IlvPieChartRenderer |
|
XYValues |
Enum constant for labeling mode: specifies that the x- and y-values of the data point should be displayed. | |
XValues |
Enum constant for labeling mode: specifies that the x-value of the data point should be displayed. | |
YValues |
Enum constant for labeling mode: specifies that the y-value of the data point should be displayed. |
public int labelLayout
labelLayout : "Outside";
Allowed values: | ||
Outside |
Enum constant for label layout: specifies that the data label is drawn outside of the graphical representation of the data point. | |
Centered |
Enum constant for label layout: specifies that the data label is centered on the graphical representation of the data point. |
public int lineJoin
lineJoin : "JOIN_BEVEL";
Allowed values: | ||
JOIN_BEVEL |
Joins path segments by connecting the outer corners of their wide outlines with a straight segment. | |
JOIN_MITER |
Joins path segments by extending their outside edges until they meet. | |
JOIN_ROUND |
Joins path segments by rounding off the corner at a radius of half the line width. |
public float[] lineStyle
lineStyle : "";
Allowed values: | ||
|
new float[] {} | |
Dot |
new float[] {4.0f,4.0f} | |
Dash |
new float[] {8.0f,8.0f} | |
DashDot |
new float[] {8.0f,4.0f,4.0f,4.0f} | |
DashDoubleDot |
new float[] {8.0f,4.0f,4.0f,4.0f,4.0f} | |
Alternate |
new float[] {1.0f,1.0f} | |
LongDash |
new float[] {12.0f,4.0f} | |
DoubleDot |
new float[] {4.0f,4.0f,4.0f,13.0f} |
public double lineWidth
lineWidth : "3.0";
public ilog.views.chart.graphic.IlvMarker marker
marker : "CIRCLE";
Allowed values: | ||
CIRCLE |
Predefined circle marker type. | |
CROSS |
Predefined cross marker type. | |
DIAMOND |
Predefined diamond marker type. | |
PLUS |
Predefined plus marker type. | |
TRIANGLE |
Predefined triangle marker type. | |
SQUARE |
Predefined square marker type. | |
NONE |
Predefined internal marker type. |
public float miterLimit
miterLimit : "2.0";
public int renderingType
renderingType : "BAR";
Allowed values: | ||
BAR |
Superimposed bar chart renderer type. | |
CLUSTERED_BAR |
Bar chart renderer type. | |
STACKED_BAR |
Stacked bar chart renderer type. | |
STACKED100_BAR |
Stacked100 bar chart renderer type. | |
STACKED_DIVERGING_BAR |
Stacked diverging bar chart renderer type. | |
AREA |
Area chart renderer type. | |
STACKED_AREA |
Stacked area chart renderer type. | |
STACKED100_AREA |
Stacked100 area chart renderer type. | |
POLYLINE |
Polyline chart renderer type. | |
STACKED_POLYLINE |
Stacked polyline chart renderer type. | |
STACKED100_POLYLINE |
Stacked100 polyline chart renderer type. | |
SCATTER |
Scatter chart renderer type. | |
STAIR |
Stair chart renderer type. | |
STACKED_STAIR |
Stacked stair chart renderer type. | |
STACKED100_STAIR |
Stacked100 stair chart renderer type. |
public Stroke stroke
stroke : "@#stroke";
BasicStroke
for an example of implementing a stroke.public IlvStyle style
style : "@#ilvStyle";
IlvStyle
for an example of implementing a style.public boolean visible
visible : "false";
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.