Class TransitionLayout
java.lang.Object
org.pushingpixels.radiance.component.api.layout.TransitionLayout
- All Implemented Interfaces:
LayoutManager
Transition layout.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringClient property for storing the current bounds of a component.private WeakHashMap<Component, Timeline> private ContainerThe associated container.private LayoutManagerThe original layout manager.private booleanprivate List<TransitionLayoutListener> private booleanprivate intprivate static final StringClient property to store the current visibility of components. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) voidprivate voidprivate voidprivate voidprivate intprivate booleanvoidlayoutContainer(Container parent) private voidminimumLayoutSize(Container parent) preferredLayoutSize(Container parent) voidvoidprotected voidprivate void(package private) voidsetDoImmediateRepaint(boolean doImmediateRepaint)
-
Field Details
-
delegate
The original layout manager. Handles the layout-related tasks. -
eventListeners
-
SHOWING
Client property to store the current visibility of components. Since we are playing with calls toComponent.setVisible(boolean), this property tracks the "real" visibility.- See Also:
-
BOUNDS
Client property for storing the current bounds of a component. This is used to perform animations on components that stay visible but change location.- See Also:
-
boundsMap
-
container
The associated container. -
doImmediateRepaint
private boolean doImmediateRepaint -
hasPendingLayoutRequests
private boolean hasPendingLayoutRequests -
pendingAnimationCount
private int pendingAnimationCount
-
-
Constructor Details
-
TransitionLayout
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
requestLayout
private void requestLayout() -
layoutFinished
private void layoutFinished() -
hasPendingLayoutRequests
private boolean hasPendingLayoutRequests() -
getPendingAnimationCount
private int getPendingAnimationCount() -
animationStarted
private void animationStarted() -
animationEnded
private void animationEnded() -
getDelegate
-
setDoImmediateRepaint
void setDoImmediateRepaint(boolean doImmediateRepaint) -
repaint
-
addTransitionLayoutListener
-
removeTransitionLayoutListener
-
fireEvent
-