private void txtRadiusActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_txtRadiusActionPerformed effect.setRadius(new Integer(txtRadius.getText())); } // GEN-LAST:event_txtRadiusActionPerformed
/** Creates new form MosaicControl */ public TwirlControl(Twirl effect) { initComponents(); this.effect = effect; sliderAngle.setValue((int) Math.toDegrees(effect.getAngle())); txtRadius.setText((int) effect.getRadius() + ""); }
private void sliderAngleStateChanged( javax.swing.event.ChangeEvent evt) { // GEN-FIRST:event_sliderAngleStateChanged effect.setAngle((float) Math.toRadians(sliderAngle.getValue())); } // GEN-LAST:event_sliderAngleStateChanged