示例#1
0
  /**
   * Activate/Deactivate Rotate-Button
   *
   * @param b
   */
  public void activateRotation(boolean b) {

    if (showRotate && b) {
      rotatePanel.setVisible(b);
      rotateSlider.setValue(((ShapeItem) board.getSelectedItems()[0]).getRotation());

    } else {
      rotatePanel.setVisible(false);
    }
    rotate.setEnabled(b);
  }
示例#2
0
 /**
  * Sets the value of the rotate Slider
  *
  * @param degree as int
  */
 public void setRotateValue(int degree) {
   rotateSlider.setValue(degree);
 }