org.stathissideris.ascii2image.text
Class AbstractionGrid

java.lang.Object
  extended by org.stathissideris.ascii2image.text.AbstractionGrid

public class AbstractionGrid
extends Object

Author:
Efstathios Sideris

Constructor Summary
AbstractionGrid(TextGrid textGrid, CellSet cellSet)
          Makes an AbstractionGrid using the cellSet of textGrid.
 
Method Summary
protected  void fillCells(CellSet cells)
           
 TextGrid getAsTextGrid()
           
 TextGrid getCopyOfInternalBuffer()
           
 ArrayList getDistinctShapes()
           
 int getHeight()
           
 int getWidth()
           
static AbstractionGrid makeUsingBuffer(TextGrid internalGrid)
          Makes an AbstractionGrid using internalGrid as its internal buffer
 void set(int xPos, int yPos, AbstractCell cell)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractionGrid

public AbstractionGrid(TextGrid textGrid,
                       CellSet cellSet)
Makes an AbstractionGrid using the cellSet of textGrid.

Parameters:
textGrid -
cellSet -
Method Detail

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.