Additions to allow Flip panel to change direction

Create issue
Issue #25 resolved
Patrick Kutch created an issue

If you add the following lines to FlipPanel.java, you can change the direction of the flips.

public void setOrientation(Orientation newOrientation)
{
    if (newOrientation != getOrientation()) // no need to do unless !=
    {
        flipDirection = newOrientation;
        backRotate = new Rotate(180, Orientation.HORIZONTAL == newOrientation ? Rotate.Y_AXIS : Rotate.X_AXIS);
        adjustRotationAxis();
    }
}
public Orientation getOrientation()
{
    return flipDirection;
}

Comments (1)

  1. Log in to comment