ilog.views.chart
Class IlvGrid

ilog.views.chart.IlvGrid

public class IlvGrid

Represents a grid that can be associated with a chart axis. The default implementation of this class draws gridlines that are positioned at the major and minor steps of the scale connected to the same axis. You can control the drawing order of the grid with the setDrawOrder method, which lets you specify whether the grid must be drawn above or below the chart representations.

CSS example:

chartGrid {
    class : "ilog.views.chart.IlvGrid";
    drawOrder : "2";
    majorLineVisible : "false";
    majorPaint : "#000000";
    majorStroke : "@#stroke";
    minorLineVisible : "false";
    minorPaint : "#000000";
    minorStroke : "@#stroke";
    visible : "false";
}


Property Summary
 java.lang.String class
          
Creates a new grid that displays only major gridlines, with the default color.
 int drawOrder
          
Sets the drawing order of this grid.
 boolean majorLineVisible
          
Toggles the visibility of major gridlines.
 Paint majorPaint
          
Sets the paint used to draw major gridlines.
 Stroke majorStroke
          
Sets the stroke used to draw major gridlines.
 boolean minorLineVisible
          
Toggles the visibility of minor gridlines.
 Paint minorPaint
          
Sets the paint used to draw minor gridlines.
 Stroke minorStroke
          
Sets the stroke used to draw minor gridlines.
 boolean visible
          
Toggles the visibility of both major an minor gridlines.
 

Property Detail

class

public java.lang.String class

Creates a new grid that displays only major gridlines, with the default color. The draw order is set to IlvChart.DRAW_BELOW.

CSS example:     class : "ilog.views.chart.IlvGrid";


drawOrder

public int drawOrder

Sets the drawing order of this grid. The default drawing order is IlvChart.DRAW_BELOW.

CSS example:     drawOrder : "2";


majorLineVisible

public boolean majorLineVisible

Toggles the visibility of major gridlines.

CSS example:     majorLineVisible : "false";


majorPaint

public Paint majorPaint

Sets the paint used to draw major gridlines.

CSS example:     majorPaint : "#000000";


majorStroke

public Stroke majorStroke

Sets the stroke used to draw major gridlines.

CSS example:     majorStroke : "@#stroke";

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


minorLineVisible

public boolean minorLineVisible

Toggles the visibility of minor gridlines.

CSS example:     minorLineVisible : "false";


minorPaint

public Paint minorPaint

Sets the paint used to draw minor gridlines.

CSS example:     minorPaint : "#000000";


minorStroke

public Stroke minorStroke

Sets the stroke used to draw minor gridlines.

CSS example:     minorStroke : "@#stroke";

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


visible

public boolean visible

Toggles the visibility of both major an minor gridlines.

CSS example:     visible : "false";



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