public class PDFState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
PDFState.Data |
Constructor and Description |
---|
PDFState()
PDF State for storing graphics state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkClip(java.awt.Shape cl)
Check if the clip will change the current state.
|
boolean |
checkTransform(java.awt.geom.AffineTransform tf)
Check the current transform.
|
void |
concatenate(java.awt.geom.AffineTransform tf)
Concatenates the given AffineTransform to the current one.
|
java.awt.geom.AffineTransform |
getBaseTransform()
Get a copy of the base transform for the page.
|
PDFState.Data |
getData() |
PDFGState |
getGState()
Get the graphics state.
|
int |
getStackLevel()
Get the current stack level.
|
java.awt.geom.AffineTransform |
getTransform()
Get the current transform.
|
PDFState.Data |
pop()
Pop the state from the stack and set current values to popped state.
|
void |
push()
Push the current state onto the stack.
|
boolean |
setBackColor(java.awt.Color col)
Set the current background color.
|
void |
setClip(java.awt.Shape cl)
Set the current clip.
|
boolean |
setColor(java.awt.Color col)
Set the current color.
|
boolean |
setLineWidth(float width)
Set the current line width.
|
boolean |
setPaint(java.awt.Paint p)
Set the current paint.
|
void |
setTransform(java.awt.geom.AffineTransform tf)
Deprecated.
This method name is misleading. Use concatenate(AffineTransform) instead!
|
public void push()
public PDFState.Data getData()
public PDFState.Data pop()
public int getStackLevel()
public boolean setLineWidth(float width)
width
- the line width in pointspublic boolean setColor(java.awt.Color col)
col
- the color to setpublic boolean setBackColor(java.awt.Color col)
col
- the new background colorpublic boolean setPaint(java.awt.Paint p)
p
- the new paintpublic boolean checkClip(java.awt.Shape cl)
cl
- the clip shape to checkpublic void setClip(java.awt.Shape cl)
cl
- the new clip in the current statepublic boolean checkTransform(java.awt.geom.AffineTransform tf)
tf
- the transform the check againstpublic void setTransform(java.awt.geom.AffineTransform tf)
tf
- the transform to concatonate to the current level transformpublic void concatenate(java.awt.geom.AffineTransform tf)
tf
- the transform to concatenate to the current level transformpublic java.awt.geom.AffineTransform getTransform()
public java.awt.geom.AffineTransform getBaseTransform()
public PDFGState getGState()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.