Class cynosurex.awt.Position
All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.awt.Position
java.lang.Object
|
+----cynosurex.awt.Position
- public class Position
- extends Object
A position representing a location in (row, col) coordinate space.
-
Position()
- Constructs and initializes a Position initialized with (0, 0).
-
Position(int, int)
- Constructs and initializes a Position from the
specified row and column coordinates.
-
Position(Position)
- Constructs and initializes a Position with the same
location as the specified Position.
-
getCol()
- Returns the column of this Position.
-
getPosition()
- Returns the location of this Position.
-
getRow()
- Returns the row of this Position.
-
setCol(int)
- Set the column of this Position.
-
setPosition(int, int)
- Set the row and column of this position.
-
setRow(int)
- Set the row of this Position.
Position
public Position()
- Constructs and initializes a Position initialized with (0, 0).
Position
public Position(int r,
int c)
- Constructs and initializes a Position from the
specified row and column coordinates.
Position
public Position(Position p)
- Constructs and initializes a Position with the same
location as the specified Position.
getRow
public int getRow()
- Returns the row of this Position.
getCol
public int getCol()
- Returns the column of this Position.
setRow
public void setRow(int r)
- Set the row of this Position.
@param r - row.
setCol
public void setCol(int c)
- Set the column of this Position.
@param c - column.
getPosition
public synchronized Position getPosition()
- Returns the location of this Position.
setPosition
public synchronized void setPosition(int r,
int c)
- Set the row and column of this position.
@param r - row.
@param c - col.
All Packages Class Hierarchy This Package Previous Next Index