Drawable.DrawableHint
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 |
---|
DrawTextFragment(java.awt.font.TextLayout layout,
java.text.AttributedString str) |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(java.awt.Graphics2D graphics)
Apply 2-D transforms before drawing this shape.
|
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.).
|
java.text.AttributedString |
getAttributedString() |
float |
getHeight() |
java.awt.font.TextLayout |
getLayout() |
float |
getLeading() |
java.lang.String |
getString() |
float |
getWidth() |
void |
setPosition(double x,
double y) |
java.lang.String |
toString() |
public DrawTextFragment(java.awt.font.TextLayout layout, java.text.AttributedString str)
public void setPosition(double x, double y)
public void draw(java.awt.Graphics2D graphics)
Drawable
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 intopublic java.awt.font.TextLayout getLayout()
public java.text.AttributedString getAttributedString()
public float getHeight()
public float getLeading()
public float getWidth()
public java.lang.String getString()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.