- changed status to resolved
Additions to allow Flip panel to change direction
Issue #25
resolved
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)
-
repo owner - Log in to comment
Added the code from Patrick with latest commits