|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcynosurex.awt.Position
public class Position
A position representing a location in (row, col) coordinate space.
Field Summary |
---|
Fields inherited from interface cynosurex.internal.CommonInterface |
---|
copyright, copyrightYears, notice, program, version |
Fields inherited from interface cynosurex.internal.AuthorCommon |
---|
author, copyrightSymbol, noticeMsg, rights |
Fields inherited from interface cynosurex.internal.CompanyCommon |
---|
company, email, website |
Constructor Summary | |
---|---|
Position()
Constructs and initializes a Position initialized with (0, 0). |
|
Position(int r,
int c)
Constructs and initializes a Position from the specified row and column coordinates. |
|
Position(Position p)
Constructs and initializes a Position with the same location as the specified Position. |
Method Summary | |
---|---|
int |
getCol()
Returns the column of this Position. |
Position |
getPosition()
Returns the location of this Position. |
int |
getRow()
Returns the row of this Position. |
void |
setCol(int c)
Set the column of this Position. |
void |
setPosition(int r,
int c)
Set the row and column of this position. |
void |
setRow(int r)
Set the row of this Position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Position()
public Position(int r, int c)
public Position(Position p)
Method Detail |
---|
public int getRow()
public int getCol()
public void setRow(int r)
r
- - row.public void setCol(int c)
c
- - column.public Position getPosition()
public void setPosition(int r, int c)
r
- - row.c
- - col.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |