Gethorizontalgridlineexceptions(), Getverticalgridlineexceptions(), Setsubrowgridlinepaint(paint) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 130: Gethorizontalgridlineexceptions, Getverticalgridlineexceptions, Sethorizontalgridlineexceptions, Gridlineexception, Setsubrowgridlinepaint, Java.awt.paint

Advertising
background image

(continued from last page)

Property: The paint used to draw sub row divider grid lines. This will only be in the secondary dimension since sub rows
can only exist in the secondary dimension.

Returns:

The current paint. May be

null

.

setSubRowGridLinePaint

public void setSubRowGridLinePaint(java.awt.Paint paint)

Property: The paint used to draw sub row divider grid lines. This will only be in the secondary dimension since sub rows
can only exist in the secondary dimension.

Parameters:

paint

- The new paint. may be

null

.

getHorizontalGridLineExceptions

public GridLineException[] getHorizontalGridLineExceptions()

Property: Grid line exceptions makes it very fleible to override the gridline size and color in a structured way. Examples of
exceptions is:

Every fourth grid line.

Every grid line that is on a day boundary (any date range type).

Every grid line on an hour boundary but only for hours 8 to 16.

You can have several exceptions (as this property is an array) each capable of the above list and if the first exception is not
a "hit" then the next one will be evaluated and so on until the array is finnished and the grid line used will be the default
one.

To really understand how flexible and powerful this feature is see the "Repetitions" section in the FAQ document.

Returns:

The exceptions or zero length if no exteptions to the grid lines exist (default). Never

null

.

setHorizontalGridLineExceptions

public void setHorizontalGridLineExceptions(GridLineException[] exceptions)

Property: Grid line exceptions makes it very fleible to override the gridline size and color in a structured way. Examples of
exceptions is:

Every fourth grid line.

Every grid line that is on a day boundary (any date range type).

Every grid line on an hour boundary but only for hours 8 to 16.

You can have several exceptions (as this property is an array) each capable of the above list and if the first exception is not
a "hit" then the next one will be evaluated and so on until the array is finnished and the grid line used will be the default
one.

To really understand how flexible and powerful this feature is see the "Repetitions" section in the FAQ document.

Parameters:

exceptions

- The exceptions or zero length if no exteptions to the grid lines exist (default). Never

null

.

getVerticalGridLineExceptions

public GridLineException[] getVerticalGridLineExceptions()

Page 130 of 196

com.miginfocom.beans.DateAreaBean

Advertising