Class AbstractionGrid


  • public class AbstractionGrid
    extends Object
    Author:
    Efstathios Sideris
    • 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)