Class AnimationConfigurationManager
- java.lang.Object
-
- org.pushingpixels.radiance.theming.internal.AnimationConfigurationManager
-
public class AnimationConfigurationManager extends java.lang.ObjectInternal 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<?>>>classAllowedKey -RadianceThemingSlices.AnimationFacet, value - set ofClassinstances.private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.lang.Class<?>>>classDisallowedKey -RadianceThemingSlices.AnimationFacet, value - set ofClassinstances.private static SplineDEFAULT_EASEprivate java.util.Set<RadianceThemingSlices.AnimationFacet>globalAllowedContainsRadianceThemingSlices.AnimationFacetinstances.private static AnimationConfigurationManagerinstanceSingleton instance.private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>>instanceAllowedKey -RadianceThemingSlices.AnimationFacet, value - set ofComponentinstances.private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>>instanceDisallowedKey -RadianceThemingSlices.AnimationFacet, value - set ofComponentinstances.private longtimelineDuration
-
Constructor Summary
Constructors Modifier Constructor Description privateAnimationConfigurationManager()Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet)Allows animations of the specified facet on all controls.voidallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)Allows animations of the specified facet on the specified control.voidallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)Allows animations of the specified facet on all controls of specified class.voidallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)Allows animations of the specified facet on all controls of specified classes.voiddisallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet)Disallows animations of the specified facet on all controls.voiddisallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)Disallows animations of the specified facet on the specified control.voiddisallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)Disallows animations of the specified facet on all controls of specified class.voiddisallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)Disallows animations of the specified facet on all controls of specified classes.static AnimationConfigurationManagergetInstance()Returns the configuration manager instance.longgetTimelineDuration()booleanisAnimationAllowed(RadianceThemingSlices.AnimationFacet animationFacet, java.awt.Component comp)Checks whether the specified animation facet is allowed on the specified component.SwingComponentTimeline.BuildermodifiedTimelineBuilder(java.awt.Component component)voidsetTimelineDuration(long timelineDuration)SwingComponentTimeline.BuildertimelineBuilder(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.AnimationFacetinstances.
-
classAllowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.lang.Class<?>>> classAllowed
Key -RadianceThemingSlices.AnimationFacet, value - set ofClassinstances.
-
classDisallowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.lang.Class<?>>> classDisallowed
Key -RadianceThemingSlices.AnimationFacet, value - set ofClassinstances.
-
instanceAllowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>> instanceAllowed
Key -RadianceThemingSlices.AnimationFacet, value - set ofComponentinstances.
-
instanceDisallowed
private java.util.Map<RadianceThemingSlices.AnimationFacet,java.util.Set<java.awt.Component>> instanceDisallowed
Key -RadianceThemingSlices.AnimationFacet, value - set ofComponentinstances.
-
-
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:
trueif the specified animation facet is allowed on the specified component,falseotherwise.
-
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)
-
-