Class GridView.Cursor

java.lang.Object
com.itextpdf.layout.renderer.GridView.Pos
com.itextpdf.layout.renderer.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 final boolean
     

    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

    Modifier and Type
    Method
    Description
    void
    Increment cursor in specified flow axis and if it exceeds the boundary in that axis make a carriage return.
    void
     
    void
    setX(int x)
     
    void
    setY(int y)
     

    Methods inherited from class com.itextpdf.layout.renderer.GridView.Pos

    getX, getY

    Methods inherited from class java.lang.Object

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

    • densePacking

      private final boolean densePacking
  • Constructor Details

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

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