Class TextGrid.Cell
- java.lang.Object
-
- org.stathissideris.ascii2image.text.TextGrid.Cell
-
- Enclosing class:
- TextGrid
public class TextGrid.Cell extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Cell(int x, int y)Cell(TextGrid.Cell cell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)TextGrid.CellgetEast()TextGrid.CellgetNE()CellSetgetNeighbours4()CellSetgetNeighbours8()TextGrid.CellgetNorth()TextGrid.CellgetNW()TextGrid.CellgetSE()TextGrid.CellgetSouth()TextGrid.CellgetSW()TextGrid.CellgetWest()inthashCode()booleanisEastOf(TextGrid.Cell cell)booleanisNextTo(int x2, int y2)booleanisNextTo(TextGrid.Cell cell)booleanisNorthOf(TextGrid.Cell cell)booleanisSouthOf(TextGrid.Cell cell)booleanisWestOf(TextGrid.Cell cell)voidscale(int s)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Cell
public Cell(TextGrid.Cell cell)
-
Cell
public Cell(int x, int y)
-
-
Method Detail
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isNextTo
public boolean isNextTo(int x2, int y2)
-
isNextTo
public boolean isNextTo(TextGrid.Cell cell)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
scale
public void scale(int s)
-
-