| java.lang.Object org.jvnet.substance.utils.SubstanceFadeUtilities
SubstanceFadeUtilities | public class SubstanceFadeUtilities (Code) | | Fade-related utilities.
author: Kirill Grouchnikov. |
Method Summary | |
public static void | cancelFades(Set<Long> initiatedFadeSequences) Cancels the specified fade sequences. | public static FadeState | getFadeState(Component comp, FadeKind... fadeKinds) Returns the first matching fade state for the specified component.
Parameters: comp - Component. Parameters: fadeKinds - A list of fade kinds. | public static FadeState | getFadeState(Component comp, Comparable> comparable, FadeKind... fadeKinds) Returns the first matching fade state for the specified component.
Parameters: comp - Component. Parameters: comparable - Identifier of a sub-entity. Parameters: fadeKinds - A list of fade kinds. | public static FadeState | getFadeStateWithHighestFadeCycle(FadeKind fadeKind, Component... comps) Returns the highest fade cycle for the specified component and the fade
kind.
Parameters: fadeKind - Fade kind. Parameters: comps - Components. | public static Component | getTracked(FadeKind fadeKind, Component... comps) Returns the component that is being tracked by the
FadeTracker with the highest value of the fade cycle.
Parameters: fadeKind - Fade kind. Parameters: comps - Components. |
cancelFades | public static void cancelFades(Set<Long> initiatedFadeSequences)(Code) | | Cancels the specified fade sequences.
Parameters: initiatedFadeSequences - Fade sequence IDs to cancel. |
getFadeState | public static FadeState getFadeState(Component comp, FadeKind... fadeKinds)(Code) | | Returns the first matching fade state for the specified component.
Parameters: comp - Component. Parameters: fadeKinds - A list of fade kinds. The list is scanned from the start. Thefirst fade kind that is currently "happening" on the specifiedcomponent will be used to fetch the fade state. The first matching fade state for the specified component. |
getFadeState | public static FadeState getFadeState(Component comp, Comparable> comparable, FadeKind... fadeKinds)(Code) | | Returns the first matching fade state for the specified component.
Parameters: comp - Component. Parameters: comparable - Identifier of a sub-entity. Parameters: fadeKinds - A list of fade kinds. The list is scanned from the start. Thefirst fade kind that is currently "happening" on the specifiedcomponent will be used to fetch the fade state. The first matching fade state for the specified component. |
getFadeStateWithHighestFadeCycle | public static FadeState getFadeStateWithHighestFadeCycle(FadeKind fadeKind, Component... comps)(Code) | | Returns the highest fade cycle for the specified component and the fade
kind.
Parameters: fadeKind - Fade kind. Parameters: comps - Components. The highest fade cycle for the specified component and the fadekind. |
getTracked | public static Component getTracked(FadeKind fadeKind, Component... comps)(Code) | | Returns the component that is being tracked by the
FadeTracker with the highest value of the fade cycle.
Parameters: fadeKind - Fade kind. Parameters: comps - Components. The component that is being tracked by the FadeTrackerwith the highest value of the fade cycle. May benull . |
|
|