Class AnimationConfigurationManager
java.lang.Object
org.pushingpixels.radiance.theming.internal.AnimationConfigurationManager
Internal implementation of animation configuration.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map
<RadianceThemingSlices.AnimationFacet, Set<Class<?>>> Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances.private Map
<RadianceThemingSlices.AnimationFacet, Set<Class<?>>> Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances.private static final Spline
private Set
<RadianceThemingSlices.AnimationFacet> ContainsRadianceThemingSlices.AnimationFacet
instances.private static AnimationConfigurationManager
Singleton instance.private Map
<RadianceThemingSlices.AnimationFacet, Set<Component>> Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances.private Map
<RadianceThemingSlices.AnimationFacet, Set<Component>> Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances.private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
allowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet) Allows animations of the specified facet on all controls.void
allowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, Component comp) Allows animations of the specified facet on the specified control.void
allowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Allows animations of the specified facet on all controls of specified class.void
allowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, 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, Component comp) Disallows animations of the specified facet on the specified control.void
disallowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Disallows animations of the specified facet on all controls of specified class.void
disallowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, Class<?>[] clazz) Disallows animations of the specified facet on all controls of specified classes.Returns the configuration manager instance.long
boolean
isAnimationAllowed
(RadianceThemingSlices.AnimationFacet animationFacet, Component comp) Checks whether the specified animation facet is allowed on the specified component.modifiedTimelineBuilder
(Component component) void
setTimelineDuration
(long timelineDuration) timelineBuilder
(Component component)
-
Field Details
-
DEFAULT_EASE
-
instance
Singleton instance. -
timelineDuration
private long timelineDuration -
globalAllowed
ContainsRadianceThemingSlices.AnimationFacet
instances. -
classAllowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances. -
classDisallowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofClass
instances. -
instanceAllowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances. -
instanceDisallowed
Key -RadianceThemingSlices.AnimationFacet
, value - set ofComponent
instances.
-
-
Constructor Details
-
AnimationConfigurationManager
private AnimationConfigurationManager()Creates a new instance.
-
-
Method Details
-
getInstance
Returns the configuration manager instance.- Returns:
- Configuration manager instance.
-
allowAnimations
Allows animations of the specified facet on all controls.- Parameters:
animationFacet
- Animation facet to allow.
-
allowAnimations
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
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
Allows animations of the specified facet on the specified control.- Parameters:
animationFacet
- Animation facet to allow.comp
- Control for allowing the animation facet.
-
disallowAnimations
Disallows animations of the specified facet on all controls.- Parameters:
animationFacet
- Animation facet to disallow.
-
disallowAnimations
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, 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
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, 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
-
modifiedTimelineBuilder
-