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 java.util.List<DrawTextFragment> |
lines |
protected TextParagraph<?,?,?> |
paragraph |
protected java.lang.String |
rawText |
BUFFERED_IMAGE, 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(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.util.List<org.apache.poi.sl.draw.DrawTextParagraph.AttributedStringData> |
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) |
java.lang.String |
getRenderableText(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 |
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 java.util.List<DrawTextFragment> lines
protected java.lang.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 index
(index - 自动编号索引)
public void draw(java.awt.Graphics2D graphics)
Drawable
public float getFirstLineLeading()
public float getFirstLineHeight()
public float getLastLineHeight()
public boolean isEmptyParagraph()
public void applyTransform(java.awt.Graphics2D graphics)
Drawable
applyTransform
in interface
Drawable
(接口 Drawable 中的 applyTransform)
graphics
- the graphics whos transform matrix will be modified
(graphics - 将修改变换矩阵的图形)
public void drawContent(java.awt.Graphics2D graphics)
Drawable
drawContent
in interface
Drawable
(接口Drawable中的drawContent)
graphics
- the graphics to draw into
(graphics - 要绘制的图形)
protected void breakText(java.awt.Graphics2D graphics)
graphics
- The drawing context for computing text-lengths.
(graphics - 计算文本长度的绘图上下文。)
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
(firstLine - 第一行是否中断)
protected java.util.List<org.apache.poi.sl.draw.DrawTextParagraph.AttributedStringData> getAttributedString(java.awt.Graphics2D graphics, java.lang.StringBuilder text)
protected boolean isHSLF()
true
if the HSLF implementation is used
(如果使用 HSLF 实现,则为 true)
protected boolean isFirstParagraph()
protected void setFirstParagraph(boolean firstParagraph)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.