public class RowLayout extends HandLayout
Constructor and Description |
---|
RowLayout(Location handLocation,
int rowWidth)
Same as RoyLayout(handLocation, rowWidth, rotationAngle) with rotationAngle = 0.
|
RowLayout(Location handLocation,
int rowWidth,
double rotationAngle)
Creates a RowLayout instance with given hand location , maximum row width
and rotation angle.
|
Modifier and Type | Method and Description |
---|---|
RowLayout |
clone()
Creates a new RowLayout instance with same options.
|
Hand.CardAlignment |
getCardAlignment()
Returns the current card alignment
|
double |
getRotationAngle()
Returns the current rotation angle.
|
int |
getRowWidth()
Returns the current row width.
|
int |
getStepDelay()
Returns the current step delay.
|
void |
setCardAlignment(Hand.CardAlignment cardAlignment)
Sets the current card alignment to the given alignment.
|
void |
setRotationAngle(double rotationAngle)
Sets the current rotation angle to the given angle.
|
void |
setRowWidth(int rowWidth)
Sets the current row width to the given width.
|
void |
setStepDelay(int stepDelay)
Sets the current step delay to the given delay (in ms).
|
getHandLocation, getScaleFactor, setHandLocation, setScaleFactor
public RowLayout(Location handLocation, int rowWidth)
handLocation
- the location of the first, last or middle card, depending
on the card alignment.rowWidth
- the width of the rowpublic RowLayout(Location handLocation, int rowWidth, double rotationAngle)
handLocation
- the location of the first, last or middle card, depending
on the card alignment.rowWidth
- the width of the rowrotationAngle
- the rotion angle (in degrees, clockwise, zero to east)public RowLayout clone()
clone
in class java.lang.Object
public int getRowWidth()
public double getRotationAngle()
public int getStepDelay()
public Hand.CardAlignment getCardAlignment()
public void setRowWidth(int rowWidth)
rowWidth
- the new current row widthpublic void setRotationAngle(double rotationAngle)
rotationAngle
- the new current rotation angle (in degrees, clockwise)public void setStepDelay(int stepDelay)
stepDelay
- the new current step delaypublic void setCardAlignment(Hand.CardAlignment cardAlignment)
cardAlignment
- the new current card alignment