Package heronarts.glx.ui.component
Interface UIInputBox.ProgressIndicator
- Enclosing class:
UIInputBox
public static interface UIInputBox.ProgressIndicator
Interface that provides progress meter metadata to input boxes that can indicate
progress of some operation.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleAmount of progress from 0-1booleanWhether to render a progress indicatorstatic UIInputBox.ProgressIndicatornewModulatorIndicator(LXPeriodicModulator modulator) Creates a standard indicator for a periodic modulator, displaying progress of the modulator basis when the modulator is running
-
Method Details
-
hasProgress
boolean hasProgress()Whether to render a progress indicator- Returns:
- true if an indicator should be rendered
-
getProgress
double getProgress()Amount of progress from 0-1- Returns:
- Value in 0-1 representing progress
-
newModulatorIndicator
Creates a standard indicator for a periodic modulator, displaying progress of the modulator basis when the modulator is running- Parameters:
modulator- Periodic modulator- Returns:
- A progress indicator instance for this modulator
-