org.apache.fop.render.txt
Class TXTState
java.lang.Object
org.apache.fop.render.txt.TXTState
public class TXTState
extends java.lang.Object
This keeps information about the current state when writing to txt, i.e.
manages coordinate transformation matrices for getting absolute coordinates.
TXTState() - Constructs a newly allocated
TXTState object.
|
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(Point p, CTM ctm) - Transforms
point using ctm .
|
Point | transformPoint(int x, int y) - Transforms point (x, y) using
resultCTM .
|
TXTState
public TXTState()
Constructs a newly allocated TXTState
object.
getResultCTM
public CTM getResultCTM()
- current result coordinate transformation matrix
pop
public void pop()
Pop the coordinate transformation matrix from the stack and reevaluate
resultCTM
.
push
public void push(CTM ctm)
Push the current coordinate transformation matrix onto the stack and
reevaluate resultCTM
.
refineCTM
public CTM refineCTM(CTM ctm)
Modifies coordinate transformation matrix in such a way, so
x-shift and y-shift will be transformed in text positions.
transformPoint
public Point transformPoint(Point p,
CTM ctm)
Transforms point
using ctm
.
transformPoint
public Point transformPoint(int x,
int y)
Transforms point (x, y) using resultCTM
.
x
- x-coordinatey
- y-coordinate
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.