public class IlvChart
extends java.lang.Object
ChartArea
component, instance of
IlvChart.Area
.IlvLegend
.JComponent
added
to the chart on top of the chart area.JComponent
added
to the chart at the bottom of the chart area.
CSS example:
ilvChart {
class : "ilog.views.chart.IlvChart";
3D : "false";
alignmentX : "2.0";
alignmentY : "2.0";
angleRange : "3.0";
antiAliasing : "false";
antiAliasingText : "false";
autoScaleTitleRotation : "false";
autoscrolls : "false";
background : "green";
backgroundPaint : "#000000";
baseTextDirection : "Inherited";
border : "@#emptyBorder";
chartAreaBorder : "@#emptyBorder";
debugGraphicsOptions : "2";
defaultColors[0] : "green";
defaultColors[1] : "red";
doubleBuffered : "false";
dynamicStyling : "false";
enabled : "false";
focusable : "false";
focusCycleRoot : "false";
font : "sansserif-BOLD-8";
foreground : "green";
interactors[0] : "@#ilvChart3DViewInteractor1";
interactors[1] : "@#ilvChart3DViewInteractor2";
legendPosition : "North";
legendVisible : "false";
maximumSize : "0,0";
minimumSize : "0,0";
name : "<value>";
opaque : "false";
optimizedRepaint : "false";
plotAreaBackground : "green";
preferredSize : "0,0";
project : "url(spec)";
projectorReversed : "false";
renderingType : "BAR";
requestFocusEnabled : "false";
scalingFont : "false";
scrollRatio : "3.0";
shiftScroll : "false";
startingAngle : "3.0";
styleSheet : "<value>";
toolTipText : "<value>";
type : "CARTESIAN";
verifyInputWhenFocusTarget : "false";
visible : "false";
XAxisReversed : "false";
XGridVisible : "false";
XScaleTitle : "<value>";
XScaleTitleRotation : "3.0";
XScaleVisible : "false";
YAxisReversed : "false";
YGridVisible : "false";
YScaleTitle : "<value>";
YScaleTitleRotation : "3.0";
YScaleVisible : "false";
}
Modifier and Type | Class and Description |
---|---|
class |
IlvChart.Area
The component where the graphical representation of charts and scales are
displayed.
|
Modifier and Type | Property and Description |
---|---|
boolean |
3D
Specifies whether the chart is rendered in 3-D. |
float |
alignmentX
Sets the vertical alignment. |
float |
alignmentY
Sets the horizontal alignment. |
double |
angleRange
Sets the angle range of the polar projector. |
boolean |
antiAliasing
Sets the antiAliasing property. |
boolean |
antiAliasingText
Sets the antiAliasingText property. |
boolean |
autoScaleTitleRotation
Sets whether the rotation angle of the scale titles is computed automatically depending on the type of the scale axis and depending on the projector configuration. |
boolean |
autoscrolls
Sets the autoscrolls property. |
java.awt.Color |
background
Sets the background color of this component. |
Paint |
backgroundPaint
Sets the background as a Paint. |
int |
baseTextDirection
Sets the base text direction for this chart. |
Border |
border
Sets the border of this component. |
Border |
chartAreaBorder
Sets the chart area border. |
java.lang.String |
class
Creates a Cartesian chart. |
int |
debugGraphicsOptions
Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. |
java.awt.Color[] |
defaultColors
Sets the default colors used by this chart. |
boolean |
doubleBuffered
Sets whether the this component should use a buffer to paint. |
boolean |
dynamicStyling
Specifies whether styles are dynamically applied when data change. |
boolean |
enabled
Sets whether or not this component is enabled. |
boolean |
focusable
Sets the focusable state of this Component to the specified value. |
boolean |
focusCycleRoot
Sets whether this Container is the root of a focus traversal cycle. |
java.awt.Font |
font
Sets the font for this component. |
java.awt.Color |
foreground
Sets the foreground color of this component. |
ilog.views.chart.IlvChartInteractor[] |
interactors
Sets the interactors. |
java.lang.String |
legendPosition
Sets the legend position. |
boolean |
legendVisible
Sets the legend of this chart visible. |
Dimension |
maximumSize
Sets the maximum size of this component to a constant value. |
Dimension |
minimumSize
Sets the minimum size of this component to a constant value. |
java.lang.String |
name
Sets the name of the component to the specified string. |
boolean |
opaque
If true the component paints every pixel within its bounds. |
boolean |
optimizedRepaint
Specifies whether the handling of paint requests is optimized. |
java.awt.Color |
plotAreaBackground
Sets the plot area background color. |
Dimension |
preferredSize
Sets the preferred size of this component. |
java.net.URL |
project
Sets the project file URL of this chart. |
boolean |
projectorReversed
Specifies whether the chart projector is reversed. |
int |
renderingType
Sets the renderer type for the main data source of the chart. |
boolean |
requestFocusEnabled
Provides a hint as to whether or not this JComponent should get focus. |
boolean |
scalingFont
Sets whether the fonts are scaled when the chart is resized. |
double |
scrollRatio
Sets the scroll ratio. |
boolean |
shiftScroll
Sets the shiftScroll property. |
double |
startingAngle
Sets the starting angle of the projector. |
java.lang.String |
styleSheet
Sets the value of the styleSheet property. |
java.lang.String |
toolTipText
Registers the text to display in a tool tip. |
int |
type
Sets the type of the chart. |
boolean |
verifyInputWhenFocusTarget
Sets the value to indicate whether input verifier for the current focus owner will be called before this component requests focus. |
boolean |
visible
Makes the component visible or invisible. |
boolean |
XAxisReversed
Sets the reversed property of the x-axis. |
boolean |
XGridVisible
Sets whether the major lines of the abscissa grid are visible. |
java.lang.String |
XScaleTitle
Sets the abscissa scale title. |
double |
XScaleTitleRotation
Sets the rotation of the abscissa scale title. |
boolean |
XScaleVisible
Sets whether the abscissa scale is visible. |
boolean |
YAxisReversed
Sets the reversed property of the main y-axis. |
boolean |
YGridVisible
Sets whether the major lines of the grid associated with the y-axis of index 0 is visible. |
java.lang.String |
YScaleTitle
Sets the title of the ordinate scale connected to the y-axis of index 0. |
double |
YScaleTitleRotation
Sets the title rotation of the ordinate scale connected to the y-axis of index 0. |
boolean |
YScaleVisible
Sets whether the scale connected to the y-axis of index 0 is visible. |
Note: For efficiency reasons, it is recommended to toggle off dynamic
styling if your style sheet does not contain any rule based on the
attributes of a data point, or if your data model is static.
CSS example:
dynamicStyling : "false";
public boolean enabled
enabled : "false";
public boolean focusable
focusable : "false";
public boolean focusCycleRoot
focusCycleRoot : "false";
public java.awt.Font font
font : "sansserif-BOLD-8";
public java.awt.Color foreground
foreground : "green";
public ilog.views.chart.IlvChartInteractor[] interactors
interactors[0] : "@#ilvChart3DViewInteractor1";
interactors[1] : "@#ilvChart3DViewInteractor2";
ilog.views.chart.interactor.IlvChart3DViewInteractor
for an example of implementing an interactors.public java.lang.String legendPosition
legendPosition : "North";
Allowed values: | ||
North |
The north-bottom layout constraint (top of the chart, below the north-top component). | |
North_West |
The north-west layout constraint (left side and top of the chart). | |
West |
The west layout constraint (left side of the chart). | |
South_West |
The south-west layout constraint (left side and bottom of the chart). | |
South |
The south-top layout constraint (bottom of the chart, above the south-bottom component). | |
South_East |
The south-east layout constraint (right side and bottom of the chart). | |
East |
The east layout constraint (right side of the chart). | |
North_East |
The north-east layout constraint (right side and top of the chart). |
public boolean legendVisible
true
and no legend has been set yet, this method adds a new
IlvLegend
instance to the chart at the current legend
position. If false
, the current legend (if any) is removed and
the reference is nullified.
legendVisible : "false";
public Dimension maximumSize
maximumSize : "0,0";
public Dimension minimumSize
minimumSize : "0,0";
public java.lang.String name
name : "<value>";
public boolean opaque
opaque : "false";
public boolean optimizedRepaint
If the optimizedRepaint
property is set to true
,
the chart tries to optimize repaint requests so that only a subset of the
displayed data is redrawn. If set to false
, no optimization is
performed. The default value is true
. You may need to toggle
off the optimization when using self-adapting Paint
objects on
continuous renderers such as line, area and stair.
CSS example:
optimizedRepaint : "false";
public java.awt.Color plotAreaBackground
plotAreaBackground : "green";
public Dimension preferredSize
preferredSize : "0,0";
public java.net.URL project
project : "url(spec)";
public boolean projectorReversed
#CARTESIAN
chart type.
projectorReversed : "false";
type
public int renderingType
IlvChartRenderer#PIE
type is allowed for pie
charts. The specified type is used when calling the #setDataSource
method to create the appropriate instance of IlvChartRenderer
. The
default values is IlvChartRenderer#POLYLINE
.
renderingType : "BAR";
Allowed values: | ||
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. | |
SUPERIMPOSED_BAR |
Superimposed 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. | |
SUMMED_STAIR |
Summed stair chart renderer type. | |
BUBBLE |
Bubble chart renderer type. | |
HILO |
HiLo chart renderer type. | |
HILO_ARROW |
Clustered HiLo Arrow chart renderer type. | |
HILO_STICK |
Clustered HiLo Stick chart renderer type. | |
CANDLE |
Candle chart renderer type. | |
HLOC |
HighLow-OpenClose chart renderer type. | |
PIE |
Pie chart renderer type. | |
TREEMAP |
Treemap chart renderer type. | |
COMBO |
Combo chart renderer type. |
public boolean requestFocusEnabled
requestFocusEnabled : "false";
public boolean scalingFont
scalingFont : "false";
public double scrollRatio
shiftScroll
property of the chart is set to true
.
It specifies the amount of the visible x-range that is scrolled back when
new data is added beyond this range. It must take a value between
0
and 1
. The exact scroll back is always a
multiple of visible range * scroll ratio
. A value of
0
means that the x-axis is scrolled by the exact amount
necessary to make the new data visible. The default scroll ratio is
0
.
scrollRatio : "3.0";
public boolean shiftScroll
shiftScroll
property. When this property is set to
true
, the x-axis automatically scrolls as new data come in.
The scroll ratio of the axis is specified by the #setScrollRatio
method. The default value of this property is false
.
shiftScroll : "false";
public double startingAngle
This method is only meaningful for the following chart types:
#POLAR
, #PIE
, #RADAR
.
CSS example:
startingAngle : "3.0";
public java.lang.String styleSheet
styleSheet
property. This method is
equivalent to setStyleSheets(0, styleSheet)
.
Note: The Bean property styleSheet
must not be specified
together with the Bean property symbolStyle
.
CSS example:
styleSheet : "<value>";
public java.lang.String toolTipText
toolTipText : "<value>";
public int type
type : "CARTESIAN";
Allowed values: | ||
CARTESIAN |
The type for a CARTESIAN chart. | |
POLAR |
The type for a POLAR chart. | |
RADAR |
The type for a RADAR chart. | |
PIE |
The type for a PIE chart. | |
TREEMAP |
The type for a TREEMAP chart. |
public boolean verifyInputWhenFocusTarget
verifyInputWhenFocusTarget : "false";
public boolean visible
visible : "false";
public boolean XAxisReversed
reversed
property of the x-axis.
XAxisReversed : "false";
public boolean XGridVisible
XGridVisible : "false";
public java.lang.String XScaleTitle
XScaleTitle : "<value>";
public double XScaleTitleRotation
XScaleTitleRotation : "3.0";
public boolean XScaleVisible
XScaleVisible : "false";
public boolean YAxisReversed
reversed
property of the main y-axis.
YAxisReversed : "false";
public boolean YGridVisible
YGridVisible : "false";
public java.lang.String YScaleTitle
YScaleTitle : "<value>";
public double YScaleTitleRotation
YScaleTitleRotation : "3.0";
public boolean YScaleVisible
YScaleVisible : "false";
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.