|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.matthiasmann.twl.Widget
de.matthiasmann.twl.PositionAnimatedPanel
public class PositionAnimatedPanel
A widget that slides in/out a selected edge of the screen.
| Nested Class Summary | |
|---|---|
static class |
PositionAnimatedPanel.Direction
|
| Nested classes/interfaces inherited from class de.matthiasmann.twl.Widget |
|---|
Widget.OffscreenMouseAdjustments, Widget.RenderOffscreen |
| Field Summary |
|---|
| Fields inherited from class de.matthiasmann.twl.Widget |
|---|
STATE_DISABLED, STATE_HAS_FOCUSED_CHILD, STATE_HAS_OPEN_POPUPS, STATE_KEYBOARD_FOCUS |
| Constructor Summary | |
|---|---|
PositionAnimatedPanel(Widget animatedWidget)
|
|
| Method Summary | |
|---|---|
protected void |
afterAddToGUI(GUI gui)
Called after this widget has been added to a GUI tree. |
protected void |
applyTheme(ThemeInfo themeInfo)
Apply the given theme. |
protected void |
beforeRemoveFromGUI(GUI gui)
Called when this widget is removed from the GUI tree. |
int |
getAuraSizeX()
|
int |
getAuraSizeY()
|
BooleanModel |
getForceVisibleModel()
|
PositionAnimatedPanel.Direction |
getHideDirection()
|
int |
getMinHeight()
Returns the minimum height of the widget. |
int |
getMinWidth()
Returns the minimum width of the widget. |
int |
getMoveSpeedIn()
|
int |
getMoveSpeedOut()
|
int |
getPreferredInnerHeight()
Computes the preferred inner height (the size of the widget without the border) The default implementation uses the current position of the children. |
int |
getPreferredInnerWidth()
Computes the preferred inner width (the size of the widget without the border) The default implementation uses the current position of the children. |
boolean |
isForceVisible()
|
boolean |
isForceVisibleJumps()
|
boolean |
isHidden()
|
protected void |
layout()
Called when the layoutInvalid flag is set. |
protected void |
paint(GUI gui)
Paints this widget and it's children. |
protected void |
positionChanged()
Called when the position of this widget was changed. |
void |
setAuraSizeX(int auraSizeX)
|
void |
setAuraSizeY(int auraSizeY)
|
void |
setForceVisible(boolean forceVisible)
|
void |
setForceVisibleJumps(boolean forceJumps)
|
void |
setForceVisibleModel(BooleanModel forceVisibleModel)
|
void |
setHideDirection(PositionAnimatedPanel.Direction direction)
|
void |
setMoveSpeedIn(int moveSpeedIn)
|
void |
setMoveSpeedOut(int moveSpeedOut)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositionAnimatedPanel(Widget animatedWidget)
| Method Detail |
|---|
public PositionAnimatedPanel.Direction getHideDirection()
public void setHideDirection(PositionAnimatedPanel.Direction direction)
public int getMoveSpeedIn()
public void setMoveSpeedIn(int moveSpeedIn)
public int getMoveSpeedOut()
public void setMoveSpeedOut(int moveSpeedOut)
public int getAuraSizeX()
public void setAuraSizeX(int auraSizeX)
public int getAuraSizeY()
public void setAuraSizeY(int auraSizeY)
public boolean isForceVisible()
public void setForceVisible(boolean forceVisible)
public boolean isForceVisibleJumps()
public void setForceVisibleJumps(boolean forceJumps)
public BooleanModel getForceVisibleModel()
public void setForceVisibleModel(BooleanModel forceVisibleModel)
public boolean isHidden()
public int getMinWidth()
Widget
getMinWidth in class Widgetpublic int getMinHeight()
Widget
getMinHeight in class Widgetpublic int getPreferredInnerWidth()
Widget
getPreferredInnerWidth in class Widgetpublic int getPreferredInnerHeight()
Widget
getPreferredInnerHeight in class Widgetprotected void applyTheme(ThemeInfo themeInfo)
Widget
applyTheme in class WidgetthemeInfo - The theme info for this widgetprotected void afterAddToGUI(GUI gui)
Widget
afterAddToGUI in class Widgetgui - the GUI object - same as getGUI()Widget.getGUI()protected void beforeRemoveFromGUI(GUI gui)
Widget
beforeRemoveFromGUI in class Widgetgui - the GUI object - same as getGUI()Widget.getGUI()protected void layout()
Widget
layout in class Widgetprotected void positionChanged()
Widget
positionChanged in class Widgetprotected void paint(GUI gui)
WidgetA subclass should overwrite paintWidget() instead of this function.
The default implementation calls the following method in order:
Widget.paintBackground(de.matthiasmann.twl.GUI)Widget.paintWidget(de.matthiasmann.twl.GUI)Widget.paintChildren(de.matthiasmann.twl.GUI)Widget.paintOverlay(de.matthiasmann.twl.GUI)
paint in class Widgetgui - the GUI object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||