skip to main content
Gantt > Programmer's documentation > Developing with the JViews Charts SDK > Displaying and Writing a Grid > General Properties
 
General Properties
The following table shows the properties defined for displaying a grid.
Property
Methods
Default Value
Grid visibility
isVisible
setVisible
true
Major lines visibility
isMajorLineVisible
setMajorLineVisible
true
Minor lines visibility
isMinorLineVisible
setMinorLineVisible
false
Drawing order relative to the drawing of the graphical representation of data
getDrawOrder
setDrawOrder
IlvChart.DRAW_BELOW
Major lines rendering style
getMajorStroke
setMajorStroke
getMajorPaint
setMajorPaint
defaultGridColor
Minor lines rendering style
getMinorStroke
setMinorStroke
getMinorPaint
setMinorPaint
defaultGridColor
Default grid lines color
setDefaultGridColor
getDefaultGridColor
Color.lightGray
Grid visibility
The visible property defines the global grid visibility: a grid is visible when either minor or major grid lines are visible. The visibility of the major and minor grid lines is described by the majorLineVisible and minorLineVisible properties, respectively. By default, only major grid lines are visible.
Drawing order
As for all the decorations, you can control the drawing order of the grids with respect to the charts representation and to other decorations. This drawing order is defined by the drawOrder property. For more information on ordering decorations see Decorations.
Default grid line color
The grid lines are drawn by default according to the value of the defaultGridColor property. This is a property of the IlvGrid class (static) and can be easily changed to set the default grid lines rendering styles.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.