public class IlvDataObjectsStyle
extends java.lang.Object
Also this class contains a collection of IlvDataObjectStyle
instances for the objects contained in a data model.
There are four ways a CSS can influence the rendering of a data object:
chartRenderer { ... }
This sets Bean properties of the renderer. It is implemented through
class IlvChartCSSModel. Examples:
chartRenderer[index=0] { visible : false; }
chartRenderer { packing : ALTERNATING; }
objects { ... }
This sets Bean properties of the renderer.
It is implemented through
ilog.views.chart.renderer.IlvTreemapChartRenderer#applyStyles(boolean).
Examples:
objects { packing : ALTERNATING; }
objects { ... }
This sets Bean properties of this object, mostly graphic properties
(Bean properties of IlvDataObjectStyle).
It is implemented through
ilog.views.chart.renderer.IlvTreemapChartRenderer#applyStyles(boolean).
Examples:
objects { stroke : "@#stroke406ed9ec"; }
object[...] { ... }
This sets Bean properties of an IlvDataObjectStyle, that is, graphic
properties, used by the renderer. It is implemented here, through
ilog.views.chart.renderer.IlvTreemapChartRenderer#applyObjectStyles and
ilog.views.chart.renderer.IlvTreemapChartRenderer#recomputeObjectStyles.
Examples:
object[income>100000][tax<10000] { color1 : "#6666ff"; }
objects {
class : "ilog.views.chart.hidden.IlvDataObjectsStyle";
annotation : "@#ilvDataLabelAnnotation";
color1 : "#000000";
color2 : "#000000";
endCap : "CAP_BUTT";
lineJoin : "JOIN_BEVEL";
lineStyle : "";
lineWidth : "3.0";
marker : "CIRCLE";
miterLimit : "2.0";
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 |
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. |
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.IlvDataObjectsStyle";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 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 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.