org.jvnet.substance.utils
public class SubstanceFadeUtilities extends java.lang.Object
Constructor and Description |
---|
SubstanceFadeUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
cancelFades(java.util.Set<java.lang.Long> initiatedFadeSequences)
Cancels the specified fade sequences.
|
static org.jvnet.lafwidget.animation.FadeState |
getFadeState(java.awt.Component comp,
java.lang.Comparable<?>[] comparables,
org.jvnet.lafwidget.animation.FadeKind[] fadeKinds)
Returns the first matching fade state for the specified component.
|
static org.jvnet.lafwidget.animation.FadeState |
getFadeState(java.awt.Component comp,
java.lang.Comparable<?> comparable,
org.jvnet.lafwidget.animation.FadeKind... fadeKinds)
Returns the first matching fade state for the specified component.
|
static org.jvnet.lafwidget.animation.FadeState |
getFadeState(java.awt.Component comp,
org.jvnet.lafwidget.animation.FadeKind... fadeKinds)
Returns the first matching fade state for the specified component.
|
static org.jvnet.lafwidget.animation.FadeState |
getFadeStateWithHighestFadeCycle(org.jvnet.lafwidget.animation.FadeKind fadeKind,
java.awt.Component... comps)
Returns the highest fade cycle for the specified component and the fade
kind.
|
static java.awt.Component |
getTracked(org.jvnet.lafwidget.animation.FadeKind fadeKind,
java.awt.Component... comps)
Returns the component that is being tracked by the
FadeTracker
with the highest value of the fade cycle. |
public static java.awt.Component getTracked(org.jvnet.lafwidget.animation.FadeKind fadeKind, java.awt.Component... comps)
FadeTracker
with the highest value of the fade cycle.fadeKind
- Fade kind.comps
- Components.FadeTracker
with the highest value of the fade cycle. May be
null
.public static org.jvnet.lafwidget.animation.FadeState getFadeStateWithHighestFadeCycle(org.jvnet.lafwidget.animation.FadeKind fadeKind, java.awt.Component... comps)
fadeKind
- Fade kind.comps
- Components.public static org.jvnet.lafwidget.animation.FadeState getFadeState(java.awt.Component comp, org.jvnet.lafwidget.animation.FadeKind... fadeKinds)
comp
- Component.fadeKinds
- A list of fade kinds. The list is scanned from the start. The
first fade kind that is currently "happening" on the specified
component will be used to fetch the fade state.public static org.jvnet.lafwidget.animation.FadeState getFadeState(java.awt.Component comp, java.lang.Comparable<?> comparable, org.jvnet.lafwidget.animation.FadeKind... fadeKinds)
comp
- Component.comparable
- Identifier of a sub-entity.fadeKinds
- A list of fade kinds. The list is scanned from the start. The
first fade kind that is currently "happening" on the specified
component will be used to fetch the fade state.public static org.jvnet.lafwidget.animation.FadeState getFadeState(java.awt.Component comp, java.lang.Comparable<?>[] comparables, org.jvnet.lafwidget.animation.FadeKind[] fadeKinds)
comp
- Component.comparables
- Identifiers of sub-entities.fadeKinds
- Fade kinds. The list is scanned from the start. The first fade
kind that is currently "happening" on the specified component
will be used to fetch the fade state.public static void cancelFades(java.util.Set<java.lang.Long> initiatedFadeSequences)
initiatedFadeSequences
- Fade sequence IDs to cancel.