public class TXTState extends Object
| Constructor and Description |
|---|
TXTState()
Constructs a newly allocated
TXTState object. |
| Modifier and Type | Method and Description |
|---|---|
CTM |
getResultCTM() |
void |
pop()
Pop the coordinate transformation matrix from the stack and reevaluate
resultCTM. |
void |
push(CTM ctm)
Push the current coordinate transformation matrix onto the stack and
reevaluate
resultCTM. |
CTM |
refineCTM(CTM ctm)
Modifies coordinate transformation matrix in such a way, so
x-shift and y-shift will be transformed in text positions.
|
Point |
transformPoint(int x,
int y)
Transforms point (x, y) using
resultCTM. |
Point |
transformPoint(Point p,
CTM ctm)
Transforms
point using ctm. |
public void push(CTM ctm)
resultCTM.ctm - instance of CTMpublic void pop()
resultCTM.public CTM refineCTM(CTM ctm)
ctm - CTM to modifypublic Point transformPoint(Point p, CTM ctm)
point using ctm.p - Pointctm - CTMpublic Point transformPoint(int x, int y)
resultCTM.x - x-coordinatey - y-coordinatepublic CTM getResultCTM()
Copyright © 2025 Apache Software Foundation. All rights reserved.