org.xith3d.ui.hud.base
Interface AutoSizable

All Known Implementing Classes:
Checkbox, DefaultContextMenuItem, FPSCounter, Label, LabeledStateButton, RadioButton, TextField, WindowHeaderWidget

public interface AutoSizable

An auto-sizable Widget


Method Summary
 float getMinimalHeight()
          Gets the state-button's minimum height.
<Dim2f_ extends org.openmali.types.twodee.Dim2f>
Dim2f_
getMinimalSize(Dim2f_ buffer)
          Gets the state-button's minimum size.
 float getMinimalWidth()
          Gets the state-button's minimum width.
 boolean isAutoSizeEnabled()
           
 void setAutoSizeEnabled(boolean enabled)
          Enables or disables auto-sizing.
 void setMinimalSize()
          Resizes this LabeledStateButton to the minimum Size needed to contain the whole caption.
 

Method Detail

setAutoSizeEnabled

void setAutoSizeEnabled(boolean enabled)
Enables or disables auto-sizing.
If enabled, the Label's size will always be the minimal size to wrap the whole text content.

Parameters:
enabled -

isAutoSizeEnabled

boolean isAutoSizeEnabled()
Returns:
if auto-sizing is enabled.
If enabled, the Label's size will always be the minimal size to wrap the whole text content.

getMinimalSize

<Dim2f_ extends org.openmali.types.twodee.Dim2f> Dim2f_ getMinimalSize(Dim2f_ buffer)
Gets the state-button's minimum size.

Parameters:
buffer -
Returns:
the buffer back again.

setMinimalSize

void setMinimalSize()
Resizes this LabeledStateButton to the minimum Size needed to contain the whole caption.


getMinimalWidth

float getMinimalWidth()
Gets the state-button's minimum width.

Returns:
the minimum width.

getMinimalHeight

float getMinimalHeight()
Gets the state-button's minimum height.

Returns:
the minimum height.