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