|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | PROPERTY | DETAIL: PROPERTY | |||||||
ilog.views.chart.IlvChart
public class IlvChart
The chart component uses internally several subcomponents for specific operations. These child components are either automatically (for key-components) or manually (for optional components) added to the chart. These embedded components are:
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:
chart {
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";
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";
}
| Nested Class Summary | |
|---|---|
class |
IlvChart.Area
The component where the graphical representation of charts and scales are displayed. |
| Property Summary | |
|---|---|
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. |
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. |
| Property Detail |
|---|
public java.lang.String class
class : "ilog.views.chart.IlvChart";
public boolean 3D
Note: Only Cartesian and Pie charts can be displayed in 3-D.
CSS example:
3D : "false";
public float alignmentX
alignmentX : "2.0";
public float alignmentY
alignmentY : "2.0";
public double angleRange
This method is only meaningful for the following chart types:
POLAR, PIE.
CSS example:
angleRange : "3.0";
public boolean antiAliasing
antiAliasing property.
When this property is set
to true, all the drawings in the chart component are
antialiased. This property does not affect text. To toggle the
antialiasing of text, use the setAntiAliasingText method.
The default value of this property is false.
antiAliasing : "false";
public boolean antiAliasingText
antiAliasingText property.
When this property is set to true, all the text drawings in the chart
component are antialiased.
This property only affects text. To toggle the antialiasing of other
drawings, use the setAntiAliasing method.
The default value of this property is false.
antiAliasingText : "false";
public boolean autoScaleTitleRotation
false.
autoScaleTitleRotation : "false";
public boolean autoscrolls
autoscrolls : "false";
public java.awt.Color background
background : "green";
public Paint backgroundPaint
backgroundPaint : "#000000";
public Border border
border : "@#emptyBorder";EmptyBorder for an example of implementing a border.
public Border chartAreaBorder
chartAreaBorder : "@#emptyBorder";EmptyBorder for an example of implementing a chartAreaBorder.
public int debugGraphicsOptions
debugGraphicsOptions : "2";
public java.awt.Color[] defaultColors
defaultColors[0] : "green";defaultColors[1] : "red";
public boolean doubleBuffered
doubleBuffered : "false";
public boolean dynamicStyling
true.
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";
typepublic 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).
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";
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | PROPERTY | DETAIL: PROPERTY | |||||||