PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.contents
Class ContentScanner.GraphicsState

java.lang.Object
  extended by it.stefanochizzolini.clown.documents.contents.ContentScanner.GraphicsState
All Implemented Interfaces:
Cloneable
Enclosing class:
ContentScanner

public static final class ContentScanner.GraphicsState
extends Object
implements Cloneable

Graphics state [PDF:1.6:4.3].


Field Summary
 double charSpace
          Current character spacing [PDF:1.6:5.2.1].
 double[] ctm
          Current transformation matrix.
 Color fillColor
          Current color for nonstroking operations [PDF:1.6:4.5.1].
 ColorSpace fillColorSpace
          Current color space for nonstroking operations [PDF:1.6:4.5.1].
 Font font
          Current font [PDF:1.6:5.2].
 double fontSize
          Current font size [PDF:1.6:5.2].
 double lead
          Current leading [PDF:1.6:5.2.4].
 LineCapEnum lineCap
          Current line cap style [PDF:1.6:4.3.2].
 LineDash lineDash
          Current line dash pattern [PDF:1.6:4.3.2].
 LineJoinEnum lineJoin
          Current line join style [PDF:1.6:4.3.2].
 double lineWidth
          Current line width [PDF:1.6:4.3.2].
 double miterLimit
          Current miter limit [PDF:1.6:4.3.2].
 TextRenderModeEnum renderMode
          Current text rendering mode [PDF:1.6:5.2.5].
 double rise
          Current text rise [PDF:1.6:5.2.6].
 double scale
          Current horizontal scaling [PDF:1.6:5.2.3].
 Color strokeColor
          Current color for stroking operations [PDF:1.6:4.5.1].
 ColorSpace strokeColorSpace
          Current color space for stroking operations [PDF:1.6:4.5.1].
 double[] tlm
          Text line matrix [PDF:1.6:5.3].
 double[] tm
          Text matrix [PDF:1.6:5.3].
 double wordSpace
          Current word spacing [PDF:1.6:5.2.2].
 
Method Summary
 ContentScanner.GraphicsState clone()
          Gets a deep copy of the graphics state object.
static double[] concat(double[] matrix1, double[] matrix2)
          Concatenates the given coordinate matrices.
 void copyTo(ContentScanner.GraphicsState state)
           
 ContentScanner getScanner()
          Gets the scanner associated to this state.
 Point2D textToDeviceSpace(Point2D point)
          Resolves the given text-space point to its equivalent device-space one [PDF:1.6:5.3.3].
 Point2D userToDeviceSpace(Point2D point)
          Resolves the given user-space point to its equivalent device-space one [PDF:1.6:4.2.3].
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charSpace

public double charSpace
Current character spacing [PDF:1.6:5.2.1].


ctm

public double[] ctm
Current transformation matrix.


fillColor

public Color fillColor
Current color for nonstroking operations [PDF:1.6:4.5.1].


fillColorSpace

public ColorSpace fillColorSpace
Current color space for nonstroking operations [PDF:1.6:4.5.1].


font

public Font font
Current font [PDF:1.6:5.2].


fontSize

public double fontSize
Current font size [PDF:1.6:5.2].


lead

public double lead
Current leading [PDF:1.6:5.2.4].


lineCap

public LineCapEnum lineCap
Current line cap style [PDF:1.6:4.3.2].


lineDash

public LineDash lineDash
Current line dash pattern [PDF:1.6:4.3.2].


lineJoin

public LineJoinEnum lineJoin
Current line join style [PDF:1.6:4.3.2].


lineWidth

public double lineWidth
Current line width [PDF:1.6:4.3.2].


miterLimit

public double miterLimit
Current miter limit [PDF:1.6:4.3.2].


renderMode

public TextRenderModeEnum renderMode
Current text rendering mode [PDF:1.6:5.2.5].


rise

public double rise
Current text rise [PDF:1.6:5.2.6].


scale

public double scale
Current horizontal scaling [PDF:1.6:5.2.3].


strokeColor

public Color strokeColor
Current color for stroking operations [PDF:1.6:4.5.1].


strokeColorSpace

public ColorSpace strokeColorSpace
Current color space for stroking operations [PDF:1.6:4.5.1].


tlm

public double[] tlm
Text line matrix [PDF:1.6:5.3].


tm

public double[] tm
Text matrix [PDF:1.6:5.3].


wordSpace

public double wordSpace
Current word spacing [PDF:1.6:5.2.2].

Method Detail

concat

public static double[] concat(double[] matrix1,
                              double[] matrix2)
Concatenates the given coordinate matrices.


clone

public ContentScanner.GraphicsState clone()
Gets a deep copy of the graphics state object.

Overrides:
clone in class Object

copyTo

public void copyTo(ContentScanner.GraphicsState state)

getScanner

public ContentScanner getScanner()
Gets the scanner associated to this state.


textToDeviceSpace

public Point2D textToDeviceSpace(Point2D point)
Resolves the given text-space point to its equivalent device-space one [PDF:1.6:5.3.3].


userToDeviceSpace

public Point2D userToDeviceSpace(Point2D point)
Resolves the given user-space point to its equivalent device-space one [PDF:1.6:4.2.3].


PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.