Package com.snowtide.pdf.layout
Interface Region
- 
- All Superinterfaces:
 Bounded
- All Known Implementing Classes:
 Rectangle
public interface Region extends Bounded
Instances ofRegionrepresent a rectangluar space.All of the functions provided by Region are in units 1/72" apiece. So, an 8.5" x 11" page will have a width and height of 612 and 792, respectively, with the origin of a graphical context positioned in the bottom-left corner.
The point described by the values returned by the
lx()andby()function is guaranteed to be the bottom-left point of the rectangle. The values returned by therx()andty()functions form the top-right point of the rectangle.A Region rooted at the point (100, 100) with width of 200 units and height of 300 units will return the following values:
lx() = 100 rx() = 300 by() = 100 ty() = 400 height() = 300 width() = 200
- Version:
 - ©2004-2025 Snowtide
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description floatarea()The total area of this region.Regionbounds()Instances ofRegionwill always return themselves from theirboundsimplementations.floatby()The bottom edge of this region.floatendxpos()Deprecated.Legacy naming, same asrx()floatendypos()Deprecated.Legacy naming, same asty()floatheight()The total height of this region.floatlx()The left edge of this region.floatrx()The right edge of this region.floatty()The top edge of this region.floatwidth()The width of this region.floatxpos()Deprecated.Legacy naming, same aslx()floatypos()Deprecated.Legacy naming, same asby() 
 - 
 
- 
- 
Method Detail
- 
bounds
Region bounds()
Instances ofRegionwill always return themselves from theirboundsimplementations. 
- 
lx
float lx()
The left edge of this region. 
- 
rx
float rx()
The right edge of this region. 
- 
by
float by()
The bottom edge of this region. 
- 
ty
float ty()
The top edge of this region. 
- 
height
float height()
The total height of this region. 
- 
width
float width()
The width of this region. 
- 
area
float area()
The total area of this region. 
- 
xpos
@Deprecated float xpos()
Deprecated.Legacy naming, same aslx() 
- 
endxpos
@Deprecated float endxpos()
Deprecated.Legacy naming, same asrx() 
- 
ypos
@Deprecated float ypos()
Deprecated.Legacy naming, same asby() 
- 
endypos
@Deprecated float endypos()
Deprecated.Legacy naming, same asty() 
 - 
 
 -