All Packages Class Hierarchy This Package Previous Next Index
Class scrobble.Positioner
java.lang.Object
|
+----scrobble.Positioner
- public class Positioner
- extends Object
- implements Serializable
Positioner.java
positionne un objet sur le board
-
heightPosition
- Height position
-
widthPosition
- Width position
-
Positioner()
- Creates a new Positioner
-
Positioner(int, int)
- Creates a new Positioner with the given coordinates
-
comparePositions(Positioner)
- Compare the widthPosition and the heightPosition
of the Positioner with these of another positioner.
-
getHeightPosition()
- Returns the second coordinate of the Positioner, that is heightPosition
-
getWidthPosition()
- Returns the first coordinate of the Positioner, that is widthPosition
-
setHeightPosition(int)
- Modifies the second coordinate of the Positioner, that is heightPosition
-
setWidthPosition(int)
- Modifies the first coordinate of the Positioner, that is widthPosition
widthPosition
int widthPosition
- Width position
heightPosition
int heightPosition
- Height position
Positioner
public Positioner()
- Creates a new Positioner
Positioner
public Positioner(int widthPosition,
int heightPosition)
- Creates a new Positioner with the given coordinates
- Parameters:
- widthPosition - the first coordinate of the new Positioner
- heightPosition - the second coordinate of the new Positioner
setWidthPosition
public void setWidthPosition(int newW)
- Modifies the first coordinate of the Positioner, that is widthPosition
- Parameters:
- newW - the new first coordinate of the Positioner
getWidthPosition
public int getWidthPosition()
- Returns the first coordinate of the Positioner, that is widthPosition
- Returns:
- widthPosition
setHeightPosition
public void setHeightPosition(int newH)
- Modifies the second coordinate of the Positioner, that is heightPosition
- Parameters:
- newH - the new second coordinate of the Positioner
getHeightPosition
public int getHeightPosition()
- Returns the second coordinate of the Positioner, that is heightPosition
- Returns:
- heightPosition
comparePositions
public boolean comparePositions(Positioner p)
- Compare the widthPosition and the heightPosition
of the Positioner with these of another positioner.
- Returns:
-
true
if the widthPosition and the
heightPosition are the same ; false
otherwise.
All Packages Class Hierarchy This Package Previous Next Index