beautypg.com

Getlabelaligny(), Setlabelaligny(atrefrangenumber), Getlabelaligny – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 124: Setlabelaligny, Atrefrangenumber

background image

(continued from last page)

Property: The horizontal alignment the label should have within the bounds denoted by the

PlaceRact

(

setLabelPlaceRect(com.miginfocom.util.gfx.geometry.PlaceRect)

). It can be a fixed number of pixels

from either end or relative (say 50% in, which means centered). There are a number of subclasses to this interface such as

com.miginfocom.util.gfx.geometry.numbers.AtStart

,

com.miginfocom.util.gfx.geometry.numbers.AtEnd

and

com.miginfocom.util.gfx.geometry.numbers.AtFraction

.

E.g.

new AtFraction(0.5f)

or

new AtStart(10f)

.

This is a property that affects the visual representation of the label in the cells. Setting the value to

null

will normally

make this label not appear at all.

Parameters:

x

- The new horizontal alignment. Not

null

.

See Also:

getLabelAlignX()

getLabelAlignY

public AtRefRangeNumber getLabelAlignY()

Property: The vertical alignment the label should have within the bounds denoted by the

PlaceRact

(

setLabelPlaceRect(com.miginfocom.util.gfx.geometry.PlaceRect)

). It can be a fixed number of pixels

from either end or relative (say 50% in, which means centered). There are a number of subclasses to this interface such as

com.miginfocom.util.gfx.geometry.numbers.AtStart

,

com.miginfocom.util.gfx.geometry.numbers.AtEnd

and

com.miginfocom.util.gfx.geometry.numbers.AtFraction

.

E.g.

new AtFraction(0.5f)

or

new AtStart(10f)

.

This is a property that affects the visual representation of the label in the cells. Setting the value to

null

will normally

make this label not appear at all.

Returns:

The current alignment. Not

null

.

See Also:

setLabelAlignY(com.miginfocom.util.gfx.geometry.numbers.AtRefRangeNumber)

setLabelAlignY

public void setLabelAlignY(AtRefRangeNumber y)

Property: The vertical alignment the label should have within the bounds denoted by the

PlaceRact

(

setLabelPlaceRect(com.miginfocom.util.gfx.geometry.PlaceRect)

). It can be a fixed number of pixels

from either end or relative (say 50% in, which means centered). There are a number of subclasses to this interface such as

com.miginfocom.util.gfx.geometry.numbers.AtStart

,

com.miginfocom.util.gfx.geometry.numbers.AtEnd

and

com.miginfocom.util.gfx.geometry.numbers.AtFraction

.

E.g.

new AtFraction(0.5f)

or

new AtStart(10f)

.

This is a property that affects the visual representation of the label in the cells. Setting the value to

null

will normally

make this label not appear at all.

Parameters:

y

- The new vertical alignment. Not

null

.

See Also:

getLabelAlignY()

Page 124 of 196

com.miginfocom.beans.DateAreaBean