Package org.apache.poi.sl.draw
Class DrawTextParagraph
java.lang.Object
org.apache.poi.sl.draw.DrawTextParagraph
- All Implemented Interfaces:
Drawable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable
Drawable.DrawableHint -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttributeKeys for passing hyperlinks to the graphics contextstatic final org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttributeFields inherited from interface org.apache.poi.sl.draw.Drawable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTransform(Graphics2D graphics) Apply 2-D transforms before drawing this shape.voiddraw(Graphics2D graphics) Draw this shape into the supplied canvasvoiddrawContent(Graphics2D graphics) draw any content within this shape (image, text, etc.).floatfloatfloatdoublegetY()booleanvoidsetAutoNumberingIdx(int index) Sets the auto numbering index of the handled paragraphvoidsetPosition(double x, double y)
-
Field Details
-
HYPERLINK_HREF
public static final org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute HYPERLINK_HREFKeys for passing hyperlinks to the graphics context -
HYPERLINK_LABEL
public static final org.apache.poi.sl.draw.DrawTextParagraph.XlinkAttribute HYPERLINK_LABEL
-
-
Constructor Details
-
DrawTextParagraph
-
-
Method Details
-
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
Description copied from interface:DrawableDraw this shape into the supplied canvas -
getFirstLineLeading
public float getFirstLineLeading() -
getFirstLineHeight
public float getFirstLineHeight() -
getLastLineHeight
public float getLastLineHeight() -
isEmptyParagraph
public boolean isEmptyParagraph() -
applyTransform
Description copied from interface:DrawableApply 2-D transforms before drawing this shape. This includes rotation and flipping.- Specified by:
applyTransformin interfaceDrawable- Parameters:
graphics- the graphics whos transform matrix will be modified
-
drawContent
Description copied from interface:Drawabledraw any content within this shape (image, text, etc.).- Specified by:
drawContentin interfaceDrawable- Parameters:
graphics- the graphics to draw into
-
getRenderableText
-