|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.documents.contents.composition.BlockComposer
public final class BlockComposer
Content block composer.
It provides content positioning functionalities for page typesetting.
| Constructor Summary | |
|---|---|
BlockComposer(PrimitiveComposer baseComposer)
|
|
| Method Summary | |
|---|---|
void |
begin(Rectangle2D frame,
XAlignmentEnum xAlignment,
YAlignmentEnum yAlignment)
Begins a content block. |
void |
end()
Ends the content block. |
PrimitiveComposer |
getBaseComposer()
Gets the base composer. |
Rectangle2D |
getBoundBox()
Gets the area occupied by the already-placed block contents. |
Rectangle2D |
getFrame()
Gets the area where to place the block contents. |
char |
getHyphenationCharacter()
Gets the character shown at the end of the line before a hyphenation break. |
LineAlignmentEnum |
getLineAlignment()
Gets the default line alignment. |
Length |
getLineSpace()
Gets the text interline spacing. |
ContentScanner |
getScanner()
Gets the content scanner. |
XAlignmentEnum |
getXAlignment()
Gets the horizontal alignment applied to the current content block. |
YAlignmentEnum |
getYAlignment()
Gets the vertical alignment applied to the current content block. |
boolean |
isHyphenation()
Gets whether the hyphenation algorithm has to be applied. |
void |
setHyphenation(boolean value)
|
void |
setHyphenationCharacter(char value)
|
void |
setLineAlignment(LineAlignmentEnum value)
|
void |
setLineSpace(Length value)
|
void |
showBreak()
Ends current paragraph. |
void |
showBreak(Dimension2D offset)
Ends current paragraph, specifying the offset of the next one. |
void |
showBreak(Dimension2D offset,
XAlignmentEnum xAlignment)
Ends current paragraph, specifying the offset and alignment of the next one. |
void |
showBreak(XAlignmentEnum xAlignment)
Ends current paragraph, specifying the alignment of the next one. |
int |
showText(String text)
Shows text. |
int |
showText(String text,
Object lineAlignment)
Shows text. |
boolean |
showXObject(XObject xObject,
Dimension2D size)
Shows the specified external object. |
boolean |
showXObject(XObject xObject,
Dimension2D size,
Object lineAlignment)
Shows the specified external object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockComposer(PrimitiveComposer baseComposer)
| Method Detail |
|---|
public void begin(Rectangle2D frame,
XAlignmentEnum xAlignment,
YAlignmentEnum yAlignment)
frame - Block boundaries.xAlignment - Horizontal alignment.yAlignment - Vertical alignment.public void end()
public PrimitiveComposer getBaseComposer()
public Rectangle2D getBoundBox()
public Rectangle2D getFrame()
public char getHyphenationCharacter()
public LineAlignmentEnum getLineAlignment()
LineAlignmentEnum.BaseLine.
public Length getLineSpace()
public ContentScanner getScanner()
public XAlignmentEnum getXAlignment()
public YAlignmentEnum getYAlignment()
public boolean isHyphenation()
false.
public void setHyphenation(boolean value)
isHyphenation()public void setHyphenationCharacter(char value)
public void setLineAlignment(LineAlignmentEnum value)
getLineAlignment()public void setLineSpace(Length value)
getLineSpace()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(XAlignmentEnum xAlignment)
This functionality allows higher-level features such as paragraph indentation and margin.
xAlignment - Horizontal alignment.
public void showBreak(Dimension2D offset,
XAlignmentEnum xAlignment)
This functionality allows higher-level features such as paragraph indentation and margin.
offset - Relative location of the next paragraph.xAlignment - Horizontal alignment.public int showText(String text)
Default line alignment is applied.
text - Text to show.
public int showText(String text,
Object lineAlignment)
text - Text to show.lineAlignment - Line alignment. It can be:
LineAlignmentEnumLength: arbitrary super-/sub-script, depending on whether the value is positive or
not.
public boolean showXObject(XObject xObject,
Dimension2D size)
Default line alignment is applied.
xObject - External object.size - Size of the external object.
public boolean showXObject(XObject xObject,
Dimension2D size,
Object lineAlignment)
xObject - External object.size - Size of the external object.lineAlignment - Line alignment. It can be:
LineAlignmentEnumLength: arbitrary super-/sub-script, depending on whether the value is positive or
not.
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||