Package games.stendhal.client.gui.layout
Class AnimatedLayout
java.lang.Object
games.stendhal.client.gui.layout.AnimatedLayout
- All Implemented Interfaces:
LayoutManager
,LayoutManager2
A forwarding layout manager that uses smooth animations for layout changes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent(Component comp, Object constraints)
void
addLayoutComponent(String name, Component comp)
float
getLayoutAlignmentX(Container target)
float
getLayoutAlignmentY(Container target)
void
invalidateLayout(Container target)
void
layoutContainer(Container parent)
maximumLayoutSize(Container target)
minimumLayoutSize(Container parent)
preferredLayoutSize(Container parent)
void
removeLayoutComponent(Component comp)
void
setAnimated(boolean animate)
Turn animations on or off.
-
Constructor Details
-
AnimatedLayout
Create a new AnimatedLayout.- Parameters:
proxy
- layout manager to be used for determining the desired layout
-
-
Method Details
-
setAnimated
public void setAnimated(boolean animate)Turn animations on or off.- Parameters:
animate
-true
if subsequent layout changes are animated, otherwisefalse
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager2
-
maximumLayoutSize
- Specified by:
maximumLayoutSize
in interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentX
in interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentY
in interfaceLayoutManager2
-
invalidateLayout
- Specified by:
invalidateLayout
in interfaceLayoutManager2
-