Class AbstractionGrid
- java.lang.Object
-
- org.stathissideris.ascii2image.text.AbstractionGrid
-
public class AbstractionGrid extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractionGrid(TextGrid textGrid, CellSet cellSet)Makes an AbstractionGrid using thecellSetoftextGrid.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillCells(CellSet cells)TextGridgetAsTextGrid()TextGridgetCopyOfInternalBuffer()java.util.ArrayListgetDistinctShapes()intgetHeight()intgetWidth()static AbstractionGridmakeUsingBuffer(TextGrid internalGrid)Makes an AbstractionGrid usinginternalGridas its internal buffervoidset(int xPos, int yPos, AbstractCell cell)
-
-
-
Method Detail
-
makeUsingBuffer
public static AbstractionGrid makeUsingBuffer(TextGrid internalGrid)
Makes an AbstractionGrid usinginternalGridas its internal buffer- Parameters:
internalGrid-- Returns:
-
getCopyOfInternalBuffer
public TextGrid getCopyOfInternalBuffer()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getAsTextGrid
public TextGrid getAsTextGrid()
-
getDistinctShapes
public java.util.ArrayList getDistinctShapes()
-
fillCells
protected void fillCells(CellSet cells)
-
set
public void set(int xPos, int yPos, AbstractCell cell)
-
-