rateBox.setSelected(TestRenParticleGUI.manager.getControlFlow()); rateSlider.setValue(TestRenParticleGUI.manager.getReleaseRate()); rateSlider.setMaximum(TestRenParticleGUI.manager.getParticlesNumber() * 5); rateVarSlider.setValue( (int) (TestRenParticleGUI.manager. getReleaseVariance() * 100)); updateRateLabels(); spawnBox.setSelected(TestRenParticleGUI.manager.getRespawnsParticles());
  public void updateFromManager() {    startColorPanel.setBackground(makeColor(TestRenParticleGUI.manager.                                            getStartColor(), false));    endColorPanel.setBackground(makeColor(TestRenParticleGUI.manager.                                          getEndColor(), false));    startAlphaSpinner.setValue(new Integer(makeColor(TestRenParticleGUI.manager.        getStartColor(), true).getAlpha()));    endAlphaSpinner.setValue(new Integer(makeColor(TestRenParticleGUI.manager.        getEndColor(), true).getAlpha()));    updateColorLabels();    startSizeSlider.setValue( (int) (TestRenParticleGUI.manager.getStartSize() *                                     10));    endSizeSlider.setValue( (int) (TestRenParticleGUI.manager.getEndSize() * 10));    updateSizeLabels();    minAgeSlider.setValue( (int) (TestRenParticleGUI.manager.                                  getParticlesMinimumLifeTime()));    updateAgeLabels();    speedSlider.setValue( (int) (TestRenParticleGUI.manager.getParticlesSpeed() *                                 10));    updateSpeedLabels();    gravXSlider.setValue( (int) (TestRenParticleGUI.manager.getGravityForce().x *                                 1000));    gravYSlider.setValue( (int) (TestRenParticleGUI.manager.getGravityForce().y *                                 1000));    gravZSlider.setValue( (int) (TestRenParticleGUI.manager.getGravityForce().z *                                 1000));    emitXSlider.setValue( (int) (TestRenParticleGUI.manager.                                 getEmissionDirection().x * 10));    emitYSlider.setValue( (int) (TestRenParticleGUI.manager.                                 getEmissionDirection().y * 10));    emitZSlider.setValue( (int) (TestRenParticleGUI.manager.                                 getEmissionDirection().z * 10));    angleSlider.setValue( (int) (TestRenParticleGUI.manager.                                 getEmissionMaximumAngle() *                                 FastMath.RAD_TO_DEG));    updateAngleLabels();    randomSlider.setValue( (int) (TestRenParticleGUI.manager.getRandomMod() *                                  10));    updateRandomLabels();    regenCode();    validate();  }