Package com.itextpdf.layout.renderer
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 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 com.itextpdf.layout.renderer.GridView.Pos
getX, getY
-
-
-
-
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 increasedboundaries
- grid view boundaries
-
reset
public void reset()
-
-