Package cranks.undo

Examples of cranks.undo.ConstructionStep


  private void copyAndMoveTriangle() {
    Triangle tri = (Triangle)(cTriangle.getSelectedItem());
    Line selectedSide = (Line)(cPickSide.getSelectedItem());
    Line newSide = (Line)(cNewSide.getSelectedItem());
    boolean orientation = (cSelectOrientation.getSelectedIndex() == 0);
    ConstructionStep step = new ConstructionStep(this, new Object[] {tri,
              selectedSide, newSide, new Boolean(orientation)}, COPY_MOVE);
    doConstruction(step);
  }
View Full Code Here


                                      "Try Again", JOptionPane.ERROR_MESSAGE);
        return;
      }
    }
    GeometricalObject o = (GeometricalObject)cSelectObject.getSelectedItem();
    ConstructionStep step = new ConstructionStep(this, new Object[] {o,
              new Double(translationX), new Double(translationY),
              new Double(rotation), fixedPoint}, MOVE);
    doConstruction(step);
  }
View Full Code Here

TOP

Related Classes of cranks.undo.ConstructionStep

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.