public class GlyphText extends AbstractText
bounds, hasHighlight, hasSelected, highlight, selected, textExtractionBounds| Constructor and Description |
|---|
GlyphText(float x,
float y,
java.awt.geom.Rectangle2D.Float bounds,
java.lang.String cid,
java.lang.String unicode) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the bounds of the respective text object normalized to page
space.
|
java.lang.String |
getCid() |
java.lang.String |
getUnicode() |
float |
getX() |
float |
getY() |
void |
normalizeToUserSpace(java.awt.geom.AffineTransform af,
java.awt.geom.AffineTransform af1)
Maps the glyph bounds to user space
|
clearBounds, getTextExtractionBounds, hasHighligh, hasSelected, intersects, isHighlighted, isSelected, setHasHighlight, setHasSelected, setHighlighted, setSelectedpublic GlyphText(float x,
float y,
java.awt.geom.Rectangle2D.Float bounds,
java.lang.String cid,
java.lang.String unicode)
public void normalizeToUserSpace(java.awt.geom.AffineTransform af,
java.awt.geom.AffineTransform af1)
af - transform from glyph space to user spaceaf1 - transform from glyph space, if shear is detected the
extracted bounds are rotated back to the portrait layout.public java.lang.String getCid()
public java.lang.String getUnicode()
public float getX()
public float getY()
public java.awt.geom.Rectangle2D.Float getBounds()
AbstractTextgetBounds in interface TextgetBounds in class AbstractText