ilog.views.chart.hidden
Class IlvDataSeriesStyle

ilog.views.chart.hidden.IlvDataSeriesStyle

public class IlvDataSeriesStyle

A Bean-compliant class that provides information about the rendering attributes of a data set. Used as a bridge for styling data set representations through the Bean interpretation of CSS declarations.

There are four ways a CSS can influence the rendering of a data point:


CSS example:

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 : "2.0";
    marker : "CIRCLE";
    miterLimit : "2.0";
    renderingType : "BAR";
    stroke : "@#stroke";
    style : "@#ilvStyle";
    visible : "false";
}


Property Summary
 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.
 float 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.
 

Property Detail

class

public java.lang.String class

Default constructor.

CSS example:     class : "ilog.views.chart.hidden.IlvDataSeriesStyle";


annotation

public IlvDataAnnotation annotation

Sets the annotation associated with the point.

CSS example:     annotation : "@#ilvDataLabelAnnotation";

See implementing class IlvDataLabelAnnotation for an example of implementing an annotation.


color1

public Paint color1

Sets the primary color.

CSS example:     color1 : "#000000";


color2

public Paint color2

Sets the secondary color.

CSS example:     color2 : "#000000";


endCap

public int endCap

Sets the end cap.

CSS example:     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.


labeling

public int labeling

Sets the labeling mode.

CSS example:     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.


labelLayout

public int labelLayout

Sets the label layout.

CSS example:     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.


lineJoin

public int lineJoin

Sets the line join.

CSS example:     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.


lineStyle

public float[] lineStyle

Sets the line style.

CSS example:     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}


lineWidth

public float lineWidth

Sets the line width.

CSS example:     lineWidth : "2.0";


marker

public ilog.views.chart.graphic.IlvMarker marker

Sets the marker symbol for this data set.

CSS example:     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.


miterLimit

public float miterLimit

Sets the limit of miter joins.

CSS example:     miterLimit : "2.0";


renderingType

public int renderingType

Sets the rendering type.

CSS example:     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.


stroke

public Stroke stroke

Sets the stroke.

CSS example:     stroke : "@#stroke";

See implementing class BasicStroke for an example of implementing a stroke.


style

public IlvStyle style

Sets the rendering style.

CSS example:     style : "@#ilvStyle";

See implementing class IlvStyle for an example of implementing a style.


visible

public boolean visible

Sets whether the point is visible.

CSS example:     visible : "false";



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.