org.xith3d.ui.hud.base
Interface PaddingSettable

All Known Implementing Classes:
AbstractList, ButtonsLeftMenusCenterMenuGroupWidget, ComboBox, DefaultContextMenuItem, FPIHInputBindingsSettingsMenu, FPIHMainSettingsMenu, FPSCounter, GraphicsMainSettingsMenu, InputBindingsSettingsMenu, Label, List, MenuBase, MenuGroupWidget, Panel, ScrollPanel, TextField, WidgetContainer, WindowHeaderWidget

public interface PaddingSettable

A Widget implementing this interface can get a padding.


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

Method Detail

setPadding

boolean setPadding(int paddingBottom,
                   int paddingRight,
                   int paddingTop,
                   int 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(int 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

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

getPaddingRight

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

getPaddingTop

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

getPaddingLeft

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