Class AbstractionGrid
java.lang.Object
org.stathissideris.ascii2image.text.AbstractionGrid
-
Constructor Summary
ConstructorDescriptionAbstractionGrid
(TextGrid textGrid, CellSet cellSet) Makes an AbstractionGrid using thecellSet
oftextGrid
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
int
int
getWidth()
static AbstractionGrid
makeUsingBuffer
(TextGrid internalGrid) Makes an AbstractionGrid usinginternalGrid
as its internal buffervoid
set
(int xPos, int yPos, AbstractCell cell)
-
Constructor Details
-
AbstractionGrid
Makes an AbstractionGrid using thecellSet
oftextGrid
.- Parameters:
textGrid
-cellSet
-
-
-
Method Details
-
makeUsingBuffer
Makes an AbstractionGrid usinginternalGrid
as its internal buffer- Parameters:
internalGrid
-- Returns:
-
getCopyOfInternalBuffer
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getAsTextGrid
-
getDistinctShapes
-
fillCells
-
set
-