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 String
Client property for storing the current bounds of a component.private WeakHashMap
<Component, Timeline> private Container
The associated container.private LayoutManager
The original layout manager.private boolean
private List
<TransitionLayoutListener> private boolean
private int
private static final String
Client property to store the current visibility of components. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(String name, Component comp) void
private void
private void
private void
private int
private boolean
void
layoutContainer
(Container parent) private void
minimumLayoutSize
(Container parent) preferredLayoutSize
(Container parent) void
void
protected void
private void
(package private) void
setDoImmediateRepaint
(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:
addLayoutComponent
in interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in 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
-