public interface ContentRect extends Rect
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackgroundColor()
Obtains the background color of the area.
|
int |
getBorderCount()
Obtains the number of defined borders for the box.
|
int |
getBottomBorder()
Obtains the bottom border width.
|
Rectangular |
getBounds()
Obtains the pixel position within in the page.
|
float |
getFontSize()
Obtains an average font size in the are in pixels.
|
float |
getFontStyle()
Obtains the average font style. 0 means no text in italics, 1 means all the text in italics.
|
float |
getFontWeight()
Obtains the average font style. 0 means no text is bold, 1 means all the text is bold
|
int |
getId()
Obtains a unique ID of the area within the page.
|
int |
getLeftBorder()
Obtains the left border width.
|
float |
getLineThrough()
Obtains the amount of line-through text. 0 means no underlined text, 1 means all the text is underlined.
|
Page |
getPage()
Obtains the page this block belongs to.
|
int |
getRightBorder()
Obtains the right border width.
|
int |
getTopBorder()
Obtains the top border width.
|
float |
getUnderline()
Obtains the amount of underlined text. 0 means no underlined text, 1 means all the text is underlined.
|
boolean |
hasBottomBorder()
Checks whether the box has the bottom border defined.
|
boolean |
hasLeftBorder()
Checks whether the box has the left border defined.
|
boolean |
hasRightBorder()
Checks whether the box has right top border defined.
|
boolean |
hasTopBorder()
Checks whether the box has the top border defined.
|
boolean |
isBackgroundSeparated()
Checks whether the box is separated by background, i.e. its background color is not transparent
and it is different from the ancestor background.
|
int getId()
Page getPage()
Rectangular getBounds()
java.awt.Color getBackgroundColor()
null
for transparent backgroundfloat getUnderline()
float getLineThrough()
float getFontSize()
float getFontStyle()
float getFontWeight()
int getBorderCount()
boolean hasTopBorder()
true
if the box has a top borderint getTopBorder()
boolean hasBottomBorder()
true
if the box has a bottom borderint getBottomBorder()
boolean hasLeftBorder()
true
if the box has a left borderint getLeftBorder()
boolean hasRightBorder()
true
if the box has a right borderint getRightBorder()
boolean isBackgroundSeparated()
true
for background-separated boxes