Drawable.DrawableHint| Modifier and Type | Field and Description |
|---|---|
protected int |
autoNbrIdx |
protected DrawTextFragment |
bullet |
protected boolean |
firstParagraph |
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 List<DrawTextFragment> |
lines |
protected TextParagraph<?,?,?> |
paragraph |
protected String |
rawText |
BUFFERED_IMAGE, CACHE_IMAGE_SOURCE, CURRENT_SLIDE, DEFAULT_CHARSET, DRAW_FACTORY, EMF_FORCE_HEADER_BOUNDS, 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 and Description |
|---|
DrawTextParagraph(TextParagraph<?,?,?> paragraph) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTransform(Graphics2D graphics)
Apply 2-D transforms before drawing this shape.
|
protected void |
breakText(Graphics2D graphics)
break text into lines, each representing a line of text that fits in the wrapping width
|
void |
draw(Graphics2D graphics)
Draw this shape into the supplied canvas
|
void |
drawContent(Graphics2D graphics)
draw any content within this shape (image, text, etc.).
|
protected List<org.apache.poi.sl.draw.DrawTextParagraph.AttributedStringData> |
getAttributedString(Graphics2D graphics,
StringBuilder text) |
protected DrawTextFragment |
getBullet(Graphics2D graphics,
AttributedCharacterIterator firstLineAttr) |
float |
getFirstLineHeight() |
float |
getFirstLineLeading() |
float |
getLastLineHeight() |
protected String |
getRenderableText(Graphics2D graphics,
TextRun tr) |
String |
getRenderableText(TextRun tr) |
protected double |
getWrappingWidth(boolean firstLine,
Graphics2D graphics)
Returns wrapping width to break lines in this paragraph
|
double |
getY() |
boolean |
isEmptyParagraph() |
protected boolean |
isFirstParagraph() |
protected boolean |
isHSLF() |
void |
setAutoNumberingIdx(int index)
Sets the auto numbering index of the handled paragraph
|
protected void |
setFirstParagraph(boolean firstParagraph) |
void |
setPosition(double x,
double y) |
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 List<DrawTextFragment> lines
protected String rawText
protected DrawTextFragment bullet
protected int autoNbrIdx
protected boolean firstParagraph
public DrawTextParagraph(TextParagraph<?,?,?> paragraph)
public void setPosition(double x,
double y)
public double getY()
public void setAutoNumberingIdx(int index)
index - the auto numbering indexpublic void draw(Graphics2D graphics)
Drawablepublic float getFirstLineLeading()
public float getFirstLineHeight()
public float getLastLineHeight()
public boolean isEmptyParagraph()
public void applyTransform(Graphics2D graphics)
DrawableapplyTransform in interface Drawablegraphics - the graphics whose transform matrix will be modifiedpublic void drawContent(Graphics2D graphics)
DrawabledrawContent in interface Drawablegraphics - the graphics to draw intoprotected void breakText(Graphics2D graphics)
graphics - The drawing context for computing text-lengths.protected DrawTextFragment getBullet(Graphics2D graphics, AttributedCharacterIterator firstLineAttr)
protected String getRenderableText(Graphics2D graphics, TextRun tr)
protected double getWrappingWidth(boolean firstLine,
Graphics2D graphics)
firstLine - whether the first line is breakingprotected List<org.apache.poi.sl.draw.DrawTextParagraph.AttributedStringData> getAttributedString(Graphics2D graphics, StringBuilder text)
protected boolean isHSLF()
true if the HSLF implementation is usedprotected boolean isFirstParagraph()
protected void setFirstParagraph(boolean firstParagraph)