Getlabelalignx(), Getlabelplacerect(), Setlabelalignx(atrefrangenumber) – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 123: Setlabelplacerect(placerect), Getlabelalignx, Getlabelplacerect, Setlabelalignx, Atrefrangenumber, Setlabelplacerect, Placerect
(continued from last page)
c
- The color that is used to draw the label. May be
null
.
See Also:
getLabelPlaceRect
public PlaceRect getLabelPlaceRect()
Property: Denotes the bounds that the label should get. The
PlaceRect
will be given the bounds of the cell and
return/convert that to the bounds that the label should have.
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 specifivation
See Also:
setLabelPlaceRect(com.miginfocom.util.gfx.geometry.PlaceRect)
setLabelPlaceRect
public void setLabelPlaceRect(PlaceRect placeRect)
Property: Denotes the bounds that the label should get. The
PlaceRect
object will be given the bounds of the cell and
return/convert that to the bounds that the label should have.
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:
placeRect
- The new bounds spec. May be
null
.
See Also:
getLabelAlignX
public AtRefRangeNumber getLabelAlignX()
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.
Returns:
The current alignment. Not
null
.
See Also:
setLabelAlignX(com.miginfocom.util.gfx.geometry.numbers.AtRefRangeNumber)
setLabelAlignX
public void setLabelAlignX(AtRefRangeNumber x)
Page 123 of 196
com.miginfocom.beans.DateAreaBean