public final class GraphicsState extends Object implements de.intarsys.tools.attribute.IAttributeSupport
| Modifier and Type | Field and Description |
|---|---|
int |
capStyle
A code defining the shape of a lines endpoint
initial value: 0 (square butt)
|
Shape |
clip
all graphics operations are clipped at this boundary
initial value: entire page
|
float[] |
dashPattern
The dash pattern used for stroking
initial value: solid line
|
float |
dashPhase
The phase of the dash pattern
initial value: 0
|
PDExtGState |
extState |
int |
joinStyle
A code defining the shape of line joins
initial value: 0 (miter)
|
float |
lineWidth
The thickness of stroked lines
initial value: 1
|
float |
miterLimit
The maximum length of mitered line joins
initial value: 10
|
float |
nonStrokeAlphaValue
The alpha (transparency) value for non stroking operations.
|
PDColorSpace |
nonStrokeColorSpace |
float[] |
nonStrokeColorValues |
float |
strokeAlphaValue
The alpha (transparency) value for stroking operations
This is contained in the ExtGState but is cached as it is heavily uesd.
|
PDColorSpace |
strokeColorSpace |
float[] |
strokeColorValues |
TextState |
textState
The parameters used for rendering text operations.
|
AffineTransform |
transform |
| Constructor and Description |
|---|
GraphicsState()
Create a new graphic state for the renderer
|
| Modifier and Type | Method and Description |
|---|---|
GraphicsState |
copy() |
Object |
getAttribute(Object key)
Get a generic attribute value.
|
Object |
removeAttribute(Object key)
Clear a generic attribute value.
|
Object |
setAttribute(Object key,
Object value)
Set a generic attribute value.
|
public int capStyle
initial value: 0 (square butt)
public Shape clip
initial value: entire page
public float[] dashPattern
initial value: solid line
public float dashPhase
initial value: 0
public int joinStyle
initial value: 0 (miter)
public float lineWidth
initial value: 1
public float miterLimit
initial value: 10
public float nonStrokeAlphaValue
This is contained in the ExtGState but is cached as it is heavily uesd.
public PDColorSpace nonStrokeColorSpace
public float[] nonStrokeColorValues
public float strokeAlphaValue
This is contained in the ExtGState but is cached as it is heavily uesd.
public PDColorSpace strokeColorSpace
public PDExtGState extState
public float[] strokeColorValues
public TextState textState
public AffineTransform transform
public GraphicsState copy()
public final Object getAttribute(Object key)
ATTENTION: to speed up a little, an IdentityHashMap is used for
implementing IAttributeSupport. Be sure to use appropriate keys
(for example Attribute), not String.
getAttribute in interface de.intarsys.tools.attribute.IAttributeSupportIAttributeSupport.getAttribute(java.lang.Object)public final Object removeAttribute(Object key)
ATTENTION: to speed up a little, an IdentityHashMap is used for
implementing IAttributeSupport. Be sure to use appropriate keys
(for example Attribute), not String.
removeAttribute in interface de.intarsys.tools.attribute.IAttributeSupportIAttributeSupport.removeAttribute(java.lang.Object)public final Object setAttribute(Object key, Object value)
ATTENTION: to speed up a little, an IdentityHashMap is used for
implementing IAttributeSupport. Be sure to use appropriate keys
(for example Attribute), not String.
setAttribute in interface de.intarsys.tools.attribute.IAttributeSupportIAttributeSupport.setAttribute(java.lang.Object,
java.lang.Object)Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.