Class EffectGUI

java.lang.Object
org.emrick.project.effect.EffectGUI
All Implemented Interfaces:
ActionListener, EventListener

public class EffectGUI extends Object implements ActionListener
  • Field Details

  • 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

      public EffectGUI(String placeholderText)
      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

      private void setComponentSize(JComponent component, int width, int height)
    • 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

      private DocumentListener getDocumentListener()
    • calcBattery

      private double calcBattery(int R, int G, int B, double secondsDuration)
    • loadEffectToGUI

      private void loadEffectToGUI(Effect effect)
    • liveUpdateEndTime

      private void liveUpdateEndTime()
    • getEffectPanel

      public JPanel getEffectPanel()
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • applyToEffectMod

      private void applyToEffectMod()