Package org.emrick.project.effect
Class EffectGUI
java.lang.Object
org.emrick.project.effect.EffectGUI
- All Implemented Interfaces:
ActionListener
,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) JButton
(package private) JLabel
(package private) JTextField
(package private) JLabel
(package private) JButton
(package private) JLabel
(package private) JLabel
(package private) JLabel
(package private) JTextField
(package private) JTextField
(package private) JLabel
(package private) JButton
(package private) String[]
(package private) JTextField
(package private) JLabel
(package private) String
(package private) String[]
(package private) Effect
(package private) EffectListener
(package private) Effect
(package private) JPanel
private static List<EffectsGroup>
private EffectList
(package private) JButton
(package private) JLabel
(package private) JLabel
(package private) JCheckBox
(package private) JTextField
(package private) boolean
(package private) JTextField
(package private) JTextField
(package private) JTextField
(package private) JTextField
static String
static String
static String
static String
(package private) ArrayList<JComponent[]>
private JLabel
(package private) JLabel
(package private) String[]
(package private) int
(package private) JTextField
(package private) JLabel
(package private) JButton
(package private) JLabel
(package private) JLabel
(package private) JLabel
(package private) JTextField
(package private) JLabel
(package private) JCheckBox
(package private) JCheckBox
(package private) JCheckBox
(package private) JTextField
(package private) JLabel
(package private) JCheckBox
-
Constructor Summary
ConstructorsConstructorDescriptionThis alternative constructor can deliver a placeholder panel with instructions about working with effects.EffectGUI
(Effect effect, long startTime, EffectListener effectListener, EffectList effectType, boolean isNew, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
private double
calcBattery
(int R, int G, int B, double secondsDuration) private DocumentListener
private void
private void
loadEffectToGUI
(Effect effect) private void
setComponentSize
(JComponent component, int width, int height) private void
private void
private void
private void
private void
private void
setupGUI()
private void
private void
private void
private void
-
Field Details
-
EFFECTS_GROUPS
-
noProjectSyncMsg
-
noPerformerMsg
-
noCommonEffectMsg
-
noEffectGroupMsg
-
effectPanel
JPanel effectPanel -
effect
Effect effect -
effectMod
Effect effectMod -
effectListener
EffectListener effectListener -
isNewEffect
boolean isNewEffect -
startTimeLabel
JLabel startTimeLabel -
endTimeLabel
JLabel endTimeLabel -
startColorLabel
JLabel startColorLabel -
endColorLabel
JLabel endColorLabel -
delayLabel
JLabel delayLabel -
durationLabel
JLabel durationLabel -
timeoutLabel
JLabel timeoutLabel -
staticColorLabel
JLabel staticColorLabel -
waveColorLabel
JLabel waveColorLabel -
color1Label
JLabel color1Label -
color2Label
JLabel color2Label -
rateLabel
JLabel rateLabel -
speedLabel
JLabel speedLabel -
angleLabel
JLabel angleLabel -
startColorBtn
JButton startColorBtn -
endColorBtn
JButton endColorBtn -
delayField
JTextField delayField -
durationField
JTextField durationField -
timeoutField
JTextField timeoutField -
speedField
JTextField speedField -
angleField
JTextField angleField -
applyBtn
JButton applyBtn -
deleteBtn
JButton deleteBtn -
batteryEstLabel
JLabel batteryEstLabel -
colorButtons
-
durationTypeOptions
String[] durationTypeOptions -
durationTypeSelect
-
durationType
String durationType -
panelComponents
ArrayList<JComponent[]> panelComponents -
addShapeLabel
JLabel addShapeLabel -
addShapeBtn
JButton addShapeBtn -
showGridIndex
int showGridIndex -
hMovementField
JTextField hMovementField -
vMovementField
JTextField vMovementField -
wholePerformer
JCheckBox wholePerformer -
rotationOptions
String[] rotationOptions -
rotationSelect
-
directionOptions
String[] directionOptions -
directionSelect
-
varyBrightnessBox
JCheckBox varyBrightnessBox -
varyColorBox
JCheckBox varyColorBox -
varyTimeBox
JCheckBox varyTimeBox -
fadeBox
JCheckBox fadeBox -
colorVarianceField
JTextField colorVarianceField -
minBrightnessField
JTextField minBrightnessField -
maxBrightnessField
JTextField maxBrightnessField -
maxTimeField
JTextField maxTimeField -
minTimeField
JTextField minTimeField -
placeholderLabel
-
effectType
-
-
Constructor Details
-
EffectGUI
public EffectGUI(Effect effect, long startTime, EffectListener effectListener, EffectList effectType, boolean isNew, int index) - Parameters:
effect
- The current effect, as it exists. Passed in null if it doesn't exist.startTime
- In the case that no effect exists for the performer at the given time, we still need the current time for gui display.
-
EffectGUI
This alternative constructor can deliver a placeholder panel with instructions about working with effects. You can call this when the program is first started and the project isn't loaded or synced.
-
-
Method Details
-
setupGUI
private void setupGUI() -
setComponentSize
-
setupNoiseGUI
private void setupNoiseGUI() -
setupGridGUI
private void setupGridGUI() -
setupChaseGUI
private void setupChaseGUI() -
setupWaveGUI
private void setupWaveGUI() -
setupCircleChaseGUI
private void setupCircleChaseGUI() -
setupRippleGUI
private void setupRippleGUI() -
setupStaticColorGUI
private void setupStaticColorGUI() -
setupFadeGUI
private void setupFadeGUI() -
setupAlternatingColorGUI
private void setupAlternatingColorGUI() -
getDocumentListener
-
calcBattery
private double calcBattery(int R, int G, int B, double secondsDuration) -
loadEffectToGUI
-
liveUpdateEndTime
private void liveUpdateEndTime() -
getEffectPanel
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
applyToEffectMod
private void applyToEffectMod()
-