org.stathissideris.ascii2image.text
Class AbstractionGrid
java.lang.Object
org.stathissideris.ascii2image.text.AbstractionGrid
public class AbstractionGrid
- extends Object
- Author:
- Efstathios Sideris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractionGrid
public AbstractionGrid(TextGrid textGrid,
CellSet cellSet)
- Makes an AbstractionGrid using the
cellSet
of textGrid
.
- Parameters:
textGrid
- cellSet
-
makeUsingBuffer
public static AbstractionGrid makeUsingBuffer(TextGrid internalGrid)
- Makes an AbstractionGrid using
internalGrid
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)
Copyright © 2013. All Rights Reserved.