public class FanLayout extends HandLayout
Constructor and Description |
---|
FanLayout(Location center,
double radius,
double startDir,
double endDir)
Creates a FanLayout instance with given center, radius, start direction and
end direction.
|
Modifier and Type | Method and Description |
---|---|
FanLayout |
clone()
Creates a new FanLayout instance with same options.
|
Hand.CardAlignment |
getCardAlignment()
Returns the current card alignment
|
Location |
getCenter()
Returns the current center.
|
double |
getEndDir()
Returns the current end direction.
|
double |
getRadius()
Returns the current radius.
|
double |
getStartDir()
Returns the current start direction.
|
int |
getStepDelay()
Returns the current step delay.
|
void |
setCardAlignment(Hand.CardAlignment cardAlignment)
Sets the current card alignment to the given alignment.
|
void |
setCenter(Location center)
Sets the current center to the given center
|
void |
setEndDir(double endDir)
Sets the current end direction to the given end direction
For negative endDir, the angle distance between cards is fixed to
the absolute value of this parameter.
|
void |
setRadius(double radius)
Sets the current radius to the given radius
|
void |
setStartDir(double startDir)
Sets the current start direction to the given start direction
|
void |
setStepDelay(int stepDelay)
Sets the current step delay to the given delay (in ms).
|
getHandLocation, getScaleFactor, setHandLocation, setScaleFactor
public FanLayout(Location center, double radius, double startDir, double endDir)
center
- the center location of the arcradius
- the radius of the arcstartDir
- the direction to the center of the first card
(in degrees clockwise, zero to east)endDir
- the maximal direction of the last card
(in degrees clockwise, zero to east)public FanLayout clone()
clone
in class java.lang.Object
public Location getCenter()
public double getRadius()
public double getStartDir()
public double getEndDir()
public int getStepDelay()
public Hand.CardAlignment getCardAlignment()
public void setCenter(Location center)
center
- the new current center.public void setRadius(double radius)
radius
- the new current radius.public void setStartDir(double startDir)
startDir
- the new current start direction (in degrees, clockwise, zero to east)public void setEndDir(double endDir)
endDir
- the new current end direction (in degrees, clockwise, zero to east)public void setStepDelay(int stepDelay)
stepDelay
- the new current step delaypublic void setCardAlignment(Hand.CardAlignment cardAlignment)
cardAlignment
- the new current card alignment