org.xith3d.ui.hud.base
Interface PaddingSettable

All Known Subinterfaces:
MenuGroupWidget, WidgetContainer
All Known Implementing Classes:
ButtonsLeftMenusCenterMenuGroupWidget, DefaultContextMenuItem, DynamicLabel, FPIHInputBindingsSettingsMenu, FPIHMainSettingsMenu, GraphicsMainSettingsMenu, HUD, InputBindingsSettingsMenu, Label, List, MenuBase, NumberLabel, Panel, TextField, TextList, WidgetContainerBase

public interface PaddingSettable

A Widget implementing this interface can get a padding.


Method Summary
 float getPaddingBottom()
           
 float getPaddingLeft()
           
 float getPaddingRight()
           
 float getPaddingTop()
           
 boolean setPadding(float padding)
          Sets padding for this PaddingSettable Widget.
 boolean setPadding(float paddingBottom, float paddingRight, float paddingTop, float paddingLeft)
          Sets padding for this PaddingSettable Widget.
 

Method Detail

setPadding

boolean setPadding(float paddingBottom,
                   float paddingRight,
                   float paddingTop,
                   float paddingLeft)
Sets padding for this PaddingSettable Widget.
Padding translates local coordinates and shrinks the clipping area.

Parameters:
paddingBottom -
paddingRight -
paddingTop -
paddingLeft -
Returns:
true, if the padding actually has changed

setPadding

boolean setPadding(float padding)
Sets padding for this PaddingSettable Widget.
Padding translates local coordinates and shrinks the clipping area.

Parameters:
padding - padding for bottom, right, top and left
Returns:
true, if the padding actually has changed

getPaddingBottom

float getPaddingBottom()
Returns:
bottom-padding for this PaddingSettable Widget.
Padding translates local coordinates and shrinks the clipping area.

getPaddingRight

float getPaddingRight()
Returns:
right-padding for this PaddingSettable Widget.
Padding translates local coordinates and shrinks the clipping area.

getPaddingTop

float getPaddingTop()
Returns:
top-padding for this PaddingSettable Widget.
Padding translates local coordinates and shrinks the clipping area.

getPaddingLeft

float getPaddingLeft()
Returns:
left-padding for this PaddingSettable Widget.
Padding translates local coordinates and shrinks the clipping area.