Class AnimationConfigurationManager
- java.lang.Object
-
- org.pushingpixels.radiance.theming.internal.AnimationConfigurationManager
-
public class AnimationConfigurationManager extends java.lang.Object
Internal implementation of animation configuration.- See Also:
RadianceThemingCortex
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.lang.Class<?>>>
classAllowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances.private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.lang.Class<?>>>
classDisallowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances.private static Spline
DEFAULT_EASE
private java.util.Set<RadianceThemingSlices.AnimationFacet>
globalAllowed
ContainsRadianceThemingSlices.AnimationFacet
instances.private static AnimationConfigurationManager
instance
Singleton instance.private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>>
instanceAllowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances.private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>>
instanceDisallowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances.private long
timelineDuration
-
Constructor Summary
Constructors Modifier Constructor Description private
AnimationConfigurationManager()
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet)
Allows animations of the specified facet on all controls.void
allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)
Allows animations of the specified facet on the specified control.void
allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)
Allows animations of the specified facet on all controls of specified class.void
allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)
Allows animations of the specified facet on all controls of specified classes.void
disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet)
Disallows animations of the specified facet on all controls.void
disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)
Disallows animations of the specified facet on the specified control.void
disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)
Disallows animations of the specified facet on all controls of specified class.void
disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)
Disallows animations of the specified facet on all controls of specified classes.static AnimationConfigurationManager
getInstance()
Returns the configuration manager instance.long
getTimelineDuration()
boolean
isAnimationAllowed(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)
Checks whether the specified animation facet is allowed on the specified component.SwingComponentTimeline.Builder
modifiedTimelineBuilder(java.awt.Component component)
void
setTimelineDuration(long timelineDuration)
SwingComponentTimeline.Builder
timelineBuilder(java.awt.Component component)
-
-
-
Field Detail
-
DEFAULT_EASE
private static final Spline DEFAULT_EASE
-
instance
private static AnimationConfigurationManager instance
Singleton instance.
-
timelineDuration
private long timelineDuration
-
globalAllowed
private java.util.Set<RadianceThemingSlices.AnimationFacet> globalAllowed
ContainsRadianceThemingSlices.AnimationFacet
instances.
-
classAllowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.lang.Class<?>>> classAllowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances.
-
classDisallowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.lang.Class<?>>> classDisallowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances.
-
instanceAllowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>> instanceAllowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances.
-
instanceDisallowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>> instanceDisallowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances.
-
-
Method Detail
-
getInstance
public static AnimationConfigurationManager getInstance()
Returns the configuration manager instance.- Returns:
- Configuration manager instance.
-
allowAnimations
public void allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet)
Allows animations of the specified facet on all controls.- Parameters:
animationFacet
- Animation facet to allow.
-
allowAnimations
public void allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)
Allows animations of the specified facet on all controls of specified class.- Parameters:
animationFacet
- Animation facet to allow.clazz
- Control class for allowing the animation facet.
-
allowAnimations
public void allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)
Allows animations of the specified facet on all controls of specified classes.- Parameters:
animationFacet
- Animation facet to allow.clazz
- Control classes for allowing the animation facet.
-
allowAnimations
public void allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)
Allows animations of the specified facet on the specified control.- Parameters:
animationFacet
- Animation facet to allow.comp
- Control for allowing the animation facet.
-
disallowAnimations
public void disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet)
Disallows animations of the specified facet on all controls.- Parameters:
animationFacet
- Animation facet to disallow.
-
disallowAnimations
public void disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)
Disallows animations of the specified facet on all controls of specified class.- Parameters:
animationFacet
- Animation facet to disallow.clazz
- Control class for disallowing the animation facet.
-
disallowAnimations
public void disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)
Disallows animations of the specified facet on all controls of specified classes.- Parameters:
animationFacet
- Animation facet to disallow.clazz
- Control classes for disallowing the animation facet.
-
disallowAnimations
public void disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)
Disallows animations of the specified facet on the specified control.- Parameters:
animationFacet
- Animation facet to disallow.comp
- Control for disallowing the animation facet.
-
isAnimationAllowed
public boolean isAnimationAllowed(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)
Checks whether the specified animation facet is allowed on the specified component.- Parameters:
animationFacet
- Animation facet.comp
- Component. Can benull
.- Returns:
true
if the specified animation facet is allowed on the specified component,false
otherwise.
-
setTimelineDuration
public void setTimelineDuration(long timelineDuration)
-
getTimelineDuration
public long getTimelineDuration()
-
timelineBuilder
public SwingComponentTimeline.Builder timelineBuilder(java.awt.Component component)
-
modifiedTimelineBuilder
public SwingComponentTimeline.Builder modifiedTimelineBuilder(java.awt.Component component)
-
-