org.stathissideris.ascii2image.text
Class TextGrid.Cell
java.lang.Object
org.stathissideris.ascii2image.text.TextGrid.Cell
- Enclosing class:
- TextGrid
public class TextGrid.Cell
- extends java.lang.Object
Field Summary |
int |
x
|
int |
y
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
x
public int x
y
public int y
TextGrid.Cell
public TextGrid.Cell(TextGrid.Cell cell)
TextGrid.Cell
public TextGrid.Cell(int x,
int y)
getNorth
public TextGrid.Cell getNorth()
getSouth
public TextGrid.Cell getSouth()
getEast
public TextGrid.Cell getEast()
getWest
public TextGrid.Cell getWest()
getNW
public TextGrid.Cell getNW()
getNE
public TextGrid.Cell getNE()
getSW
public TextGrid.Cell getSW()
getSE
public TextGrid.Cell getSE()
getNeighbours4
public CellSet getNeighbours4()
getNeighbours8
public CellSet getNeighbours8()
isNorthOf
public boolean isNorthOf(TextGrid.Cell cell)
isSouthOf
public boolean isSouthOf(TextGrid.Cell cell)
isWestOf
public boolean isWestOf(TextGrid.Cell cell)
isEastOf
public boolean isEastOf(TextGrid.Cell cell)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
isNextTo
public boolean isNextTo(int x2,
int y2)
isNextTo
public boolean isNextTo(TextGrid.Cell cell)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
scale
public void scale(int s)
Copyright © 2011. All Rights Reserved.