org.icepdf.core.pobjects.graphics.text
Class GlyphText
java.lang.Object
org.icepdf.core.pobjects.graphics.text.AbstractText
org.icepdf.core.pobjects.graphics.text.GlyphText
- All Implemented Interfaces:
- Text
public class GlyphText
- extends AbstractText
Glyph Sprite contains glyph bound and textual information for drawing
and text extraction. The Object is used as a child of TextSprite
for painting and as a child of TextWord for text extaction and selection.
- Since:
- 4.0
|
Constructor Summary |
GlyphText(float x,
float y,
java.awt.geom.Rectangle2D.Float bounds,
java.lang.String cid,
java.lang.String unicode)
|
|
Method Summary |
java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the bounds of the respective text object. |
java.lang.String |
getCid()
|
java.lang.String |
getUnicode()
|
float |
getX()
|
float |
getY()
|
void |
normalizeToUserSpace(java.awt.geom.AffineTransform af)
Maps the glyph bounds to user space |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlyphText
public GlyphText(float x,
float y,
java.awt.geom.Rectangle2D.Float bounds,
java.lang.String cid,
java.lang.String unicode)
normalizeToUserSpace
public void normalizeToUserSpace(java.awt.geom.AffineTransform af)
- Maps the glyph bounds to user space
- Parameters:
af - tranform from glyph space to user space
getCid
public java.lang.String getCid()
getUnicode
public java.lang.String getUnicode()
getX
public float getX()
getY
public float getY()
getBounds
public java.awt.geom.Rectangle2D.Float getBounds()
- Description copied from class:
AbstractText
- Gets the bounds of the respective text object.
- Specified by:
getBounds in interface Text- Specified by:
getBounds in class AbstractText
- Returns:
- bounds of text object.