|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.aplu.jcardgame.HandLayout
ch.aplu.jcardgame.StackLayout
public class StackLayout
Class to store the stacked layout options for a hand. Displays the cards in a stacked pile (only the top card is visible).
| Constructor Summary | |
|---|---|
StackLayout(Location handLocation)
Same as StackLayout(handLocation, rotationAngle) with rotationAngle = 0. |
|
StackLayout(Location handLocation,
double rotationAngle)
Creates a StackLayout instance with given hand location and rotationAngle. |
|
| Method Summary | |
|---|---|
StackLayout |
clone()
Creates a new StackLayout instance with same options. |
double |
getRotationAngle()
Returns the current rotation angle. |
void |
setRotationAngle(double rotationAngle)
Sets the current rotation angle to the given angle. |
| Methods inherited from class ch.aplu.jcardgame.HandLayout |
|---|
getHandLocation, getScaleFactor, setHandLocation, setScaleFactor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackLayout(Location handLocation)
handLocation - the location of the visible card
public StackLayout(Location handLocation,
double rotationAngle)
handLocation - the location of the visible cardrotationAngle - the rotion angle (in degrees, clockwise, zero to east)| Method Detail |
|---|
public double getRotationAngle()
public void setRotationAngle(double rotationAngle)
rotationAngle - the new current rotation angle (in degrees, clockwise)public StackLayout clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||