public class FadeConfigurationManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addGlobalFadeTrackerCallback(GlobalFadeTrackerCallback callback)
Registers the specified application callback for tracking core fade
events.
|
void |
allowFades(FadeKind fadeKind)
Allows fade of the specified kind on all controls.
|
void |
allowFades(FadeKind fadeKind,
java.lang.Class<?> clazz)
Allows fade of the specified kind on all controls of specified class.
|
void |
allowFades(FadeKind fadeKind,
java.lang.Class<?>[] clazz)
Allows fade of the specified kind on all controls of specified classes.
|
void |
allowFades(FadeKind fadeKind,
java.awt.Component comp)
Allows fade of the specified kind on the specified control.
|
void |
disallowFades(FadeKind fadeKind)
Disallows fade of the specified kind on all controls.
|
void |
disallowFades(FadeKind fadeKind,
java.lang.Class<?> clazz)
Disallows fade of the specified kind on all controls of specified class.
|
void |
disallowFades(FadeKind fadeKind,
java.lang.Class<?>[] clazz)
Disallows fade of the specified kind on all controls of specified
classes.
|
void |
disallowFades(FadeKind fadeKind,
java.awt.Component comp)
Disallows fade of the specified kind on the specified control.
|
boolean |
fadeAllowed(FadeKind fadeKind,
java.awt.Component comp)
Checks whether the specified fade kind is allowed on the specified
component.
|
static FadeConfigurationManager |
getInstance()
Returns the configuration manager instance.
|
static void |
removeGlobalFadeTrackerCallback(GlobalFadeTrackerCallback callback)
Removes the specified application callback for tracking core fade events.
|
public static FadeConfigurationManager getInstance()
public void allowFades(FadeKind fadeKind)
fadeKind
- Fade kind to allow.public void allowFades(FadeKind fadeKind, java.lang.Class<?> clazz)
fadeKind
- Fade kind to allow.clazz
- Control class for allowing the fade kind.public void allowFades(FadeKind fadeKind, java.lang.Class<?>[] clazz)
fadeKind
- Fade kind to allow.clazz
- Control classes for allowing the fade kind.public void allowFades(FadeKind fadeKind, java.awt.Component comp)
fadeKind
- Fade kind to allow.comp
- Control for allowing the fade kind.public void disallowFades(FadeKind fadeKind)
fadeKind
- Fade kind to disallow.public void disallowFades(FadeKind fadeKind, java.lang.Class<?> clazz)
fadeKind
- Fade kind to disallow.clazz
- Control class for disallowing the fade kind.public void disallowFades(FadeKind fadeKind, java.lang.Class<?>[] clazz)
fadeKind
- Fade kind to disallow.clazz
- Control classes for disallowing the fade kind.public void disallowFades(FadeKind fadeKind, java.awt.Component comp)
fadeKind
- Fade kind to disallow.comp
- Control for disallowing the fade kind.public boolean fadeAllowed(FadeKind fadeKind, java.awt.Component comp)
fadeKind
- Fade kind.comp
- Component. Can be null
.true
if the specified fade kind is allowed on the
specified component, false
otherwise.public static void addGlobalFadeTrackerCallback(GlobalFadeTrackerCallback callback)
LafConstants.AnimationKind
and
LafWidget.ANIMATION_KIND
). An application that wishes to take a
frame snapshot with the final (rollover) state of the button can register
a global fade tracker callback that will take the snapshot at the end of
the fade sequence.callback
- Application callback for tracking core fade events.removeGlobalFadeTrackerCallback(GlobalFadeTrackerCallback)
public static void removeGlobalFadeTrackerCallback(GlobalFadeTrackerCallback callback)
callback
- Application callback to remove.addGlobalFadeTrackerCallback(GlobalFadeTrackerCallback)