org.stathissideris.ascii2image.text
Class TextGrid.Cell

java.lang.Object
  extended by org.stathissideris.ascii2image.text.TextGrid.Cell
Enclosing class:
TextGrid

public class TextGrid.Cell
extends java.lang.Object


Field Summary
 int x
           
 int y
           
 
Constructor Summary
TextGrid.Cell(int x, int y)
           
TextGrid.Cell(TextGrid.Cell cell)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 TextGrid.Cell getEast()
           
 TextGrid.Cell getNE()
           
 CellSet getNeighbours4()
           
 CellSet getNeighbours8()
           
 TextGrid.Cell getNorth()
           
 TextGrid.Cell getNW()
           
 TextGrid.Cell getSE()
           
 TextGrid.Cell getSouth()
           
 TextGrid.Cell getSW()
           
 TextGrid.Cell getWest()
           
 int hashCode()
           
 boolean isEastOf(TextGrid.Cell cell)
           
 boolean isNextTo(int x2, int y2)
           
 boolean isNextTo(TextGrid.Cell cell)
           
 boolean isNorthOf(TextGrid.Cell cell)
           
 boolean isSouthOf(TextGrid.Cell cell)
           
 boolean isWestOf(TextGrid.Cell cell)
           
 void scale(int s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x

y

public int y
Constructor Detail

TextGrid.Cell

public TextGrid.Cell(TextGrid.Cell cell)

TextGrid.Cell

public TextGrid.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:
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.