Class TransitionLayoutManager
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.layout.TransitionLayoutManager
-
public class TransitionLayoutManager extends java.lang.Object
Transition layout manager. Contains method for installing / uninstalling transition layout effects on containers. Application code should use the methods in this class instead of using theTransitionLayout
class directly.
-
-
Field Summary
Fields Modifier and Type Field Description private static TransitionLayoutManager
instance
Singleton manager.
-
Constructor Summary
Constructors Modifier Constructor Description private
TransitionLayoutManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransitionLayoutManager
getInstance()
Returns the manager instance.void
track(java.awt.Container container, boolean doImmediateRepaint)
Starts tracking the specified container adding the transition layout effects.void
untrack(java.awt.Container container)
Removes the transition layout effects from the specified container.
-
-
-
Field Detail
-
instance
private static TransitionLayoutManager instance
Singleton manager.
-
-
Method Detail
-
getInstance
public static TransitionLayoutManager getInstance()
Returns the manager instance.- Returns:
- Manager instance.
-
track
public void track(java.awt.Container container, boolean doImmediateRepaint)
Starts tracking the specified container adding the transition layout effects. Note that providingtrue
for thedoImmediateRepaint
parameter will result in very CPU-intensive code - this is not recommended for now. This method can be called on a container that already has transition layout effects installed - in this case the call will have no effect (preserving the transition layout effects).- Parameters:
container
- Container for transition layout effects.doImmediateRepaint
- Iftrue
, every transition step will result in repainting the relevant component. Recommended value isfalse
for better performance.
-
untrack
public void untrack(java.awt.Container container)
Removes the transition layout effects from the specified container. The layout manager is reset to the original layout manager. This method can be called on a container that hadn't been tracked withtrack(Container, boolean)
.- Parameters:
container
- Container.
-
-