Class GridView.Cursor

  • Enclosing class:
    GridView

    static class GridView.Cursor
    extends GridView.Pos
    Represents a placement cursor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean densePacking  
      • Fields inherited from class com.itextpdf.layout.renderer.GridView.Pos

        x, y
    • Constructor Summary

      Constructors 
      Constructor Description
      Cursor​(boolean densePacking)
      Create new placement cursor with either sparse or dense placement algorithm.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void increment​(Grid.GridOrder flow, GridView.Pos boundaries)
      Increment cursor in specified flow axis and if it exceeds the boundary in that axis make a carriage return.
      void reset()  
      void setX​(int x)  
      void setY​(int y)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • densePacking

        private final boolean densePacking
    • Constructor Detail

      • Cursor

        public Cursor​(boolean densePacking)
        Create new placement cursor with either sparse or dense placement algorithm.
        Parameters:
        densePacking - true to use "dense", false to use "sparse" placement algorithm
    • Method Detail

      • setX

        public void setX​(int x)
      • setY

        public void setY​(int y)
      • increment

        public void increment​(Grid.GridOrder flow,
                              GridView.Pos boundaries)
        Increment cursor in specified flow axis and if it exceeds the boundary in that axis make a carriage return.
        Parameters:
        flow - flow which determines in which axis cursor will be increased
        boundaries - grid view boundaries
      • reset

        public void reset()