Package org.apache.poi.sl.draw
Class DrawTextParagraph
- java.lang.Object
-
- org.apache.poi.sl.draw.DrawTextParagraph
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable
Drawable.DrawableHint
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute
HYPERLINK_HREF
Keys for passing hyperlinks to the graphics contextstatic org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute
HYPERLINK_LABEL
-
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
Constructors Constructor Description DrawTextParagraph(TextParagraph<?,?,?> paragraph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTransform(Graphics2D graphics)
Apply 2-D transforms before drawing this shape.void
draw(Graphics2D graphics)
Draw this shape into the supplied canvasvoid
drawContent(Graphics2D graphics)
draw any content within this shape (image, text, etc.).float
getFirstLineHeight()
float
getFirstLineLeading()
float
getLastLineHeight()
String
getRenderableText(TextRun tr)
double
getY()
boolean
isEmptyParagraph()
void
setAutoNumberingIdx(int index)
Sets the auto numbering index of the handled paragraphvoid
setPosition(double x, double y)
-
-
-
Constructor Detail
-
DrawTextParagraph
public DrawTextParagraph(TextParagraph<?,?,?> paragraph)
-
-
Method Detail
-
setPosition
public void setPosition(double x, double y)
-
getY
public double getY()
-
setAutoNumberingIdx
public void setAutoNumberingIdx(int index)
Sets the auto numbering index of the handled paragraph- Parameters:
index
- the auto numbering index
-
draw
public void draw(Graphics2D graphics)
Description copied from interface:Drawable
Draw this shape into the supplied canvas
-
getFirstLineLeading
public float getFirstLineLeading()
-
getFirstLineHeight
public float getFirstLineHeight()
-
getLastLineHeight
public float getLastLineHeight()
-
isEmptyParagraph
public boolean isEmptyParagraph()
-
applyTransform
public void applyTransform(Graphics2D graphics)
Description copied from interface:Drawable
Apply 2-D transforms before drawing this shape. This includes rotation and flipping.- Specified by:
applyTransform
in interfaceDrawable
- Parameters:
graphics
- the graphics whos transform matrix will be modified
-
drawContent
public void drawContent(Graphics2D graphics)
Description copied from interface:Drawable
draw any content within this shape (image, text, etc.).- Specified by:
drawContent
in interfaceDrawable
- Parameters:
graphics
- the graphics to draw into
-
-