WIP : Brad_GraphPiece #25

Closed
BrokenBrad wants to merge 13 commits from Brad_GraphPiece into master
Showing only changes of commit 5bfb2aba9b - Show all commits

View File

@ -23,7 +23,6 @@ public class Piece extends Application{
double y;
public void start(Stage primaryStage) throws Exception {
Polygon piece1 = new Polygon();
@ -144,6 +143,7 @@ public class Piece extends Application{
}
//double click delayed bug to fix
//ftm just the last piece implemented can be rotated
public static void rotaterght (Node node) {
RotateTransition rotaterght = new RotateTransition();
//setting attributes for the RotateTransition
@ -155,9 +155,9 @@ public class Piece extends Application{
rotaterght.play();}
public static void rotatelft (Node node) {
//Instantiating RotateTransition class to create the animation (rotation to the left)
RotateTransition rotatelft = new RotateTransition();
//setting attributes for the RotateTransition
rotatelft.setByAngle(-90);// minus to rotate to the left
rotatelft.autoReverseProperty();
rotatelft.setDuration(Duration.millis(1000));