Class GridView.Cursor
java.lang.Object
com.itextpdf.layout.renderer.GridView.Pos
com.itextpdf.layout.renderer.GridView.Cursor
- Enclosing class:
GridView
Represents a placement cursor.
-
Field Summary
FieldsFields inherited from class GridView.Pos
x, y -
Constructor Summary
ConstructorsConstructorDescriptionCursor(boolean densePacking) Create new placement cursor with either sparse or dense placement algorithm. -
Method Summary
Modifier and TypeMethodDescriptionvoidincrement(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.voidreset()voidsetX(int x) voidsetY(int y) Methods inherited from class GridView.Pos
getX, getY
-
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
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()
-