ch.aplu.jcardgame
Class HandLayout

java.lang.Object
  extended by ch.aplu.jcardgame.HandLayout
Direct Known Subclasses:
ColumnLayout, FanLayout, RowLayout, StackLayout

public abstract class HandLayout
extends java.lang.Object

Base class of hand layouts.


Constructor Summary
HandLayout()
           
 
Method Summary
 Location getHandLocation()
          Returns the current hand location.
 double getScaleFactor()
          Returns the current scale factor.
 void setHandLocation(Location handLocation)
          Sets the current hand location to the given location.
 void setScaleFactor(double scaleFactor)
          Sets the current scale factor to the given factor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandLayout

public HandLayout()
Method Detail

getHandLocation

public Location getHandLocation()
Returns the current hand location.

Returns:
the hand location

getScaleFactor

public double getScaleFactor()
Returns the current scale factor.

Returns:
the scale factor

setHandLocation

public void setHandLocation(Location handLocation)
Sets the current hand location to the given location.

Parameters:
handLocation - the new current hand location

setScaleFactor

public void setScaleFactor(double scaleFactor)
Sets the current scale factor to the given factor.

Parameters:
scaleFactor - the new current scale factor