jPod PDF library

de.intarsys.pdf.content
Class GraphicsState

java.lang.Object
  extended by de.intarsys.pdf.content.GraphicsState
All Implemented Interfaces:
de.intarsys.tools.attribute.IAttributeSupport

public final class GraphicsState
extends Object
implements de.intarsys.tools.attribute.IAttributeSupport

The state information for performing graphic operations.


Field Summary
 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 Summary
GraphicsState()
          Create a new graphic state for the renderer
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

capStyle

public int capStyle
A code defining the shape of a lines endpoint

initial value: 0 (square butt)


clip

public Shape clip
all graphics operations are clipped at this boundary

initial value: entire page


dashPattern

public float[] dashPattern
The dash pattern used for stroking

initial value: solid line


dashPhase

public float dashPhase
The phase of the dash pattern

initial value: 0


joinStyle

public int joinStyle
A code defining the shape of line joins

initial value: 0 (miter)


lineWidth

public float lineWidth
The thickness of stroked lines

initial value: 1


miterLimit

public float miterLimit
The maximum length of mitered line joins

initial value: 10


nonStrokeAlphaValue

public float nonStrokeAlphaValue
The alpha (transparency) value for non stroking operations.

This is contained in the ExtGState but is cached as it is heavily uesd.


nonStrokeColorSpace

public PDColorSpace nonStrokeColorSpace

nonStrokeColorValues

public float[] nonStrokeColorValues

strokeAlphaValue

public float strokeAlphaValue
The alpha (transparency) value for stroking operations

This is contained in the ExtGState but is cached as it is heavily uesd.


strokeColorSpace

public PDColorSpace strokeColorSpace

extState

public PDExtGState extState

strokeColorValues

public float[] strokeColorValues

textState

public TextState textState
The parameters used for rendering text operations.


transform

public AffineTransform transform
Constructor Detail

GraphicsState

public GraphicsState()
Create a new graphic state for the renderer

Method Detail

copy

public GraphicsState copy()

getAttribute

public final Object getAttribute(Object key)
Get a generic attribute 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.

Specified by:
getAttribute in interface de.intarsys.tools.attribute.IAttributeSupport
See Also:
IAttributeSupport.getAttribute(java.lang.Object)

removeAttribute

public final Object removeAttribute(Object key)
Clear a generic attribute 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.

Specified by:
removeAttribute in interface de.intarsys.tools.attribute.IAttributeSupport
See Also:
IAttributeSupport.removeAttribute(java.lang.Object)

setAttribute

public final Object setAttribute(Object key,
                                 Object value)
Set a generic attribute 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.

Specified by:
setAttribute in interface de.intarsys.tools.attribute.IAttributeSupport
See Also:
IAttributeSupport.setAttribute(java.lang.Object, java.lang.Object)

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.