|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.txt.TXTState
public class TXTState
This keeps information about the current state when writing to txt, i.e. manages coordinate transformation matrices for getting absolute coordinates.
Constructor Summary | |
---|---|
TXTState()
Constructs a newly allocated TXTState object. |
Method Summary | |
---|---|
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. |
java.awt.Point |
transformPoint(int x,
int y)
Transforms point (x, y) using resultCTM . |
java.awt.Point |
transformPoint(java.awt.Point p,
CTM ctm)
Transforms point using ctm . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TXTState()
TXTState
object.
Method Detail |
---|
public void push(CTM ctm)
resultCTM
.
ctm
- instance of CTMpublic void pop()
resultCTM
.
public CTM refineCTM(CTM ctm)
ctm
- CTM to modify
public java.awt.Point transformPoint(java.awt.Point p, CTM ctm)
point
using ctm
.
p
- Pointctm
- CTM
public java.awt.Point transformPoint(int x, int y)
resultCTM
.
x
- x-coordinatey
- y-coordinate
public CTM getResultCTM()
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |