Class AbstractionGrid
- java.lang.Object
-
- org.stathissideris.ascii2image.text.AbstractionGrid
-
public class AbstractionGrid extends Object
- Author:
- Efstathios Sideris
-
-
Constructor Summary
Constructors Constructor Description AbstractionGrid(TextGrid textGrid, CellSet cellSet)
Makes an AbstractionGrid using thecellSet
oftextGrid
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillCells(CellSet cells)
TextGrid
getAsTextGrid()
TextGrid
getCopyOfInternalBuffer()
ArrayList
getDistinctShapes()
int
getHeight()
int
getWidth()
static AbstractionGrid
makeUsingBuffer(TextGrid internalGrid)
Makes an AbstractionGrid usinginternalGrid
as its internal buffervoid
set(int xPos, int yPos, AbstractCell cell)
-
-
-
Method Detail
-
makeUsingBuffer
public static AbstractionGrid makeUsingBuffer(TextGrid internalGrid)
Makes an AbstractionGrid usinginternalGrid
as its internal buffer- Parameters:
internalGrid
-- Returns:
-
getCopyOfInternalBuffer
public TextGrid getCopyOfInternalBuffer()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getAsTextGrid
public TextGrid getAsTextGrid()
-
getDistinctShapes
public ArrayList getDistinctShapes()
-
fillCells
protected void fillCells(CellSet cells)
-
set
public void set(int xPos, int yPos, AbstractCell cell)
-
-