|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.stefanochizzolini.clown.documents.contents.composition.BlockFilter
public final class BlockFilter
Content block filter.
It provides content positioning functionalities for page typesetting.
Constructor Summary | |
---|---|
BlockFilter(PrimitiveFilter context)
|
Method Summary | |
---|---|
void |
begin(Rectangle2D frame,
AlignmentXEnum alignmentX,
AlignmentYEnum alignmentY)
Begins a content block. |
void |
end()
Ends the content block. |
Rectangle2D |
getBoundBox()
Gets the actual area occupied by the block contents. |
PrimitiveFilter |
getContext()
Gets the context of the block filter. |
Rectangle2D |
getFrame()
Gets the available area where to render the block contents inside. |
ContentScanner |
getScanner()
Gets the content scanner. |
boolean |
isHyphenation()
Gets whether the hyphenation algorithm has to be applied. |
void |
setHyphenation(boolean value)
Sets whether the hyphenation algorithm has to be applied. |
void |
showBreak()
Ends current paragraph. |
void |
showBreak(AlignmentXEnum alignmentX)
Ends current paragraph, specifying the alignment of the next one. |
void |
showBreak(Dimension2D offset)
Ends current paragraph, specifying the offset of the next one. |
void |
showBreak(Dimension2D offset,
AlignmentXEnum alignmentX)
Ends current paragraph, specifying the offset and alignment of the next one. |
int |
showText(String text)
Shows text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockFilter(PrimitiveFilter context)
Method Detail |
---|
public void begin(Rectangle2D frame, AlignmentXEnum alignmentX, AlignmentYEnum alignmentY)
frame
- Block boundaries.alignmentX
- Horizontal alignment.alignmentY
- Vertical alignment.public void end()
public Rectangle2D getBoundBox()
public ContentScanner getScanner()
public PrimitiveFilter getContext()
public Rectangle2D getFrame()
public boolean isHyphenation()
public void setHyphenation(boolean value)
public void showBreak()
public void showBreak(Dimension2D offset)
This functionality allows higher-level features such as paragraph indentation and margin.
offset
- Relative location of the next paragraph.public void showBreak(AlignmentXEnum alignmentX)
This functionality allows higher-level features such as paragraph indentation and margin.
alignmentX
- Horizontal alignment.public void showBreak(Dimension2D offset, AlignmentXEnum alignmentX)
This functionality allows higher-level features such as paragraph indentation and margin.
offset
- Relative location of the next paragraph.alignmentX
- Horizontal alignment.public int showText(String text)
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |