/** Creates new form MosaicControl */ public TwirlControl(Twirl effect) { initComponents(); this.effect = effect; sliderAngle.setValue((int) Math.toDegrees(effect.getAngle())); txtRadius.setText((int) effect.getRadius() + ""); }