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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component comp, Object constraints) voidaddLayoutComponent(String name, Component comp) floatgetLayoutAlignmentX(Container target) floatgetLayoutAlignmentY(Container target) voidinvalidateLayout(Container target) voidlayoutContainer(Container parent) maximumLayoutSize(Container target) minimumLayoutSize(Container parent) preferredLayoutSize(Container parent) voidvoidsetAnimated(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-trueif subsequent layout changes are animated, otherwisefalse
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
maximumLayoutSize
- Specified by:
maximumLayoutSizein interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
invalidateLayout
- Specified by:
invalidateLayoutin interfaceLayoutManager2
-