Class AbstractionGrid

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

public class AbstractionGrid extends Object
  • Constructor Details

    • AbstractionGrid

      public AbstractionGrid(TextGrid textGrid, CellSet cellSet)
      Makes an AbstractionGrid using the cellSet of textGrid.
      Parameters:
      textGrid -
      cellSet -
  • Method Details

    • 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)