|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.sl.draw.DrawTextParagraph
public class DrawTextParagraph
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable |
---|
Drawable.DrawableHint |
Field Summary | |
---|---|
protected int |
autoNbrIdx
|
protected DrawTextFragment |
bullet
|
static org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute |
HYPERLINK_HREF
Keys for passing hyperlinks to the graphics context |
static org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute |
HYPERLINK_LABEL
|
protected java.util.List<DrawTextFragment> |
lines
|
protected double |
maxLineHeight
the highest line in this paragraph. |
protected TextParagraph<?,?,?> |
paragraph
|
protected java.lang.String |
rawText
|
Fields inherited from interface org.apache.poi.sl.draw.Drawable |
---|
CURRENT_SLIDE, DRAW_FACTORY, FONT_FALLBACK, FONT_HANDLER, FONT_MAP, GRADIENT_SHAPE, GRESTORE, GROUP_TRANSFORM, GSAVE, IMAGE_RENDERER, PRESET_GEOMETRY_CACHE, TEXT_AS_CHARACTERS, TEXT_AS_SHAPES, TEXT_RENDERING_MODE |
Constructor Summary | |
---|---|
DrawTextParagraph(TextParagraph<?,?,?> paragraph)
|
Method Summary | |
---|---|
void |
applyTransform(java.awt.Graphics2D graphics)
Apply 2-D transforms before drawing this shape. |
protected void |
breakText(java.awt.Graphics2D graphics)
break text into lines, each representing a line of text that fits in the wrapping width |
void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas |
void |
drawContent(java.awt.Graphics2D graphics)
draw any content within this shape (image, text, etc.). |
protected java.text.AttributedString |
getAttributedString(java.awt.Graphics2D graphics,
java.lang.StringBuilder text)
|
protected DrawTextFragment |
getBullet(java.awt.Graphics2D graphics,
java.text.AttributedCharacterIterator firstLineAttr)
|
float |
getFirstLineHeight()
|
float |
getFirstLineLeading()
|
float |
getLastLineHeight()
|
protected java.lang.String |
getRenderableText(java.awt.Graphics2D graphics,
TextRun tr)
|
protected double |
getWrappingWidth(boolean firstLine,
java.awt.Graphics2D graphics)
Returns wrapping width to break lines in this paragraph |
double |
getY()
|
boolean |
isEmptyParagraph()
|
protected boolean |
isHSLF()
|
void |
setAutoNumberingIdx(int index)
Sets the auto numbering index of the handled paragraph |
void |
setPosition(double x,
double y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute HYPERLINK_HREF
public static final org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute HYPERLINK_LABEL
protected TextParagraph<?,?,?> paragraph
protected java.util.List<DrawTextFragment> lines
protected java.lang.String rawText
protected DrawTextFragment bullet
protected int autoNbrIdx
protected double maxLineHeight
Constructor Detail |
---|
public DrawTextParagraph(TextParagraph<?,?,?> paragraph)
Method Detail |
---|
public void setPosition(double x, double y)
public double getY()
public void setAutoNumberingIdx(int index)
index
- the auto numbering indexpublic void draw(java.awt.Graphics2D graphics)
Drawable
draw
in interface Drawable
graphics
- the graphics to draw intopublic float getFirstLineLeading()
public float getFirstLineHeight()
public float getLastLineHeight()
public boolean isEmptyParagraph()
public void applyTransform(java.awt.Graphics2D graphics)
Drawable
applyTransform
in interface Drawable
graphics
- the graphics whos transform matrix will be modifiedpublic void drawContent(java.awt.Graphics2D graphics)
Drawable
drawContent
in interface Drawable
graphics
- the graphics to draw intoprotected void breakText(java.awt.Graphics2D graphics)
graphics
- The drawing context for computing text-lengths.protected DrawTextFragment getBullet(java.awt.Graphics2D graphics, java.text.AttributedCharacterIterator firstLineAttr)
protected java.lang.String getRenderableText(java.awt.Graphics2D graphics, TextRun tr)
protected double getWrappingWidth(boolean firstLine, java.awt.Graphics2D graphics)
firstLine
- whether the first line is breaking
protected java.text.AttributedString getAttributedString(java.awt.Graphics2D graphics, java.lang.StringBuilder text)
protected boolean isHSLF()
true
if the HSLF implementation is used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |