Getlayerforimage(), Getlayerforoddfill(), Setlayerforimage(int) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 106: Setlayerforoddfill(int), Getlayerforimage, Getlayerforoddfill, Setlayerforimage, Setlayerforoddfill

Advertising
background image

(continued from last page)

Parameters:

i

- The new layer for the decorator.

See Also:

OccupiedDecorator

getLayerForImage

public int getLayerForImage()

Property: The layer index for the decorator that paints a background/foreground image in the date area.

This property affect the order in which the different layers are painted, and thus what gets painted on top of what. Lower
layer indexes will be painted first and will end up below layers with higher index. Everything that is painted in a date area
is painted in layers, and the layers are implemented with

com.miginfocom.calendar.decorators.Decorator

s.

Returns:

The current index.

See Also:

ImageDecorator

addDecorator(com.miginfocom.calendar.decorators.Decorator)

setLayerForImage

public void setLayerForImage(int i)

Property: The layer index for the decorator that paints a background/foreground image in the date area.

This property affect the order in which the different layers are painted, and thus what gets painted on top of what. Lower
layer indexes will be painted first and will end up below layers with higher index. Everything that is painted in a date area
is painted in layers, and the layers are implemented with

com.miginfocom.calendar.decorators.Decorator

s.

Parameters:

i

- The new layer for the decorator.

See Also:

ImageDecorator

getLayerForOddFill

public int getLayerForOddFill()

Property: The layer index for the decorator that paints the odd rows and/or columns. It can for instance be used to draw
every other row in a darker color.

This property affect the order in which the different layers are painted, and thus what gets painted on top of what. Lower
layer indexes will be painted first and will end up below layers with higher index. Everything that is painted in a date area
is painted in layers, and the layers are implemented with

com.miginfocom.calendar.decorators.Decorator

s.

Returns:

The current index.

See Also:

OddRowFillDecorator

addDecorator(com.miginfocom.calendar.decorators.Decorator)

setLayerForOddFill

public void setLayerForOddFill(int i)

Page 106 of 196

com.miginfocom.beans.DateAreaBean

Advertising