org.pdfclown.documents.contents.objects.PaintPath Class Reference

Path-painting operation [PDF:1.6:4.4.2]. More...

Inheritance diagram for org.pdfclown.documents.contents.objects.PaintPath:
org.pdfclown.documents.contents.objects.Operation org.pdfclown.documents.contents.objects.ContentObject

List of all members.

Public Member Functions

override void Scan (ContentScanner.GraphicsState state)
 Applies this object to the specified graphics context, updating the specified graphics state.
override string ToString ()
override void WriteTo (IOutputStream stream, Document context)
 Serializes this object to the specified stream.

Static Public Member Functions

static Operation Get (string operator_, IList< PdfDirectObject > operands)
 Gets an operation.

Public Attributes

const string CloseFillStrokeEvenOddOperatorKeyword = "b*"
const string CloseFillStrokeOperatorKeyword = "b"
const string CloseStrokeOperatorKeyword = "s"
const string EndPathNoOpOperatorKeyword = "n"
const string FillEvenOddOperatorKeyword = "f*"
const string FillObsoleteOperatorKeyword = "F"
const string FillOperatorKeyword = "f"
const string FillStrokeEvenOddOperatorKeyword = "B*"
const string FillStrokeOperatorKeyword = "B"
const string StrokeOperatorKeyword = "S"

Static Public Attributes

static readonly PaintPath CloseFillStroke = new PaintPath(CloseFillStrokeOperatorKeyword, true, true, true, WindModeEnum.NonZero)
 'Close, fill, and then stroke the path, using the nonzero winding number rule to determine the region to fill' operation.
static readonly PaintPath CloseFillStrokeEvenOdd = new PaintPath(CloseFillStrokeEvenOddOperatorKeyword, true, true, true, WindModeEnum.EvenOdd)
 'Close, fill, and then stroke the path, using the even-odd rule to determine the region to fill' operation.
static readonly PaintPath CloseStroke = new PaintPath(CloseStrokeOperatorKeyword, true, true, false, null)
 'Close and stroke the path' operation.
static readonly PaintPath EndPathNoOp = new PaintPath(EndPathNoOpOperatorKeyword, false, false, false, null)
 'End the path object without filling or stroking it' operation.
static readonly PaintPath Fill = new PaintPath(FillOperatorKeyword, false, false, true, WindModeEnum.NonZero)
 'Fill the path, using the nonzero winding number rule to determine the region to fill' operation.
static readonly PaintPath FillEvenOdd = new PaintPath(FillEvenOddOperatorKeyword, false, false, true, WindModeEnum.EvenOdd)
 'Fill the path, using the even-odd rule to determine the region to fill' operation.
static readonly PaintPath FillStroke = new PaintPath(FillStrokeOperatorKeyword, false, true, true, WindModeEnum.NonZero)
 'Fill and then stroke the path, using the nonzero winding number rule to determine the region to fill' operation.
static readonly PaintPath FillStrokeEvenOdd = new PaintPath(FillStrokeEvenOddOperatorKeyword, false, true, true, WindModeEnum.EvenOdd)
 'Fill and then stroke the path, using the even-odd rule to determine the region to fill' operation.
static readonly PaintPath Stroke = new PaintPath(StrokeOperatorKeyword, false, true, false, null)
 'Stroke the path' operation.

Protected Attributes

IList< PdfDirectObjectoperands
string operator_

Properties

bool Closed [get]
 Gets whether the current path has to be closed.
bool Filled [get]
 Gets whether the current path has to be filled.
WindModeEnum FillMode [get]
 Gets the filling rule.
IList< PdfDirectObjectOperands [get]
string Operator [get]
bool Stroked [get]
 Gets whether the current path has to be stroked.

Path-painting operation [PDF:1.6:4.4.2].


Member Function Documentation

static Operation org.pdfclown.documents.contents.objects.Operation.Get ( string  operator_,
IList< PdfDirectObject operands 
) [static, inherited]

Gets an operation.

Parameters:
operator_ Operator.
operands List of operands.
override void org.pdfclown.documents.contents.objects.PaintPath.Scan ( ContentScanner.GraphicsState  state  )  [virtual]

Applies this object to the specified graphics context, updating the specified graphics state.

Parameters:
state Graphics state.

Reimplemented from org.pdfclown.documents.contents.objects.ContentObject.

References org.pdfclown.documents.contents.ContentScanner.RenderContext, and org.pdfclown.documents.contents.ContentScanner.RenderObject.

override string org.pdfclown.documents.contents.objects.Operation.ToString (  )  [inherited]
override void org.pdfclown.documents.contents.objects.Operation.WriteTo ( IOutputStream  stream,
Document  context 
) [virtual, inherited]

Member Data Documentation

'Close, fill, and then stroke the path, using the nonzero winding number rule to determine the region to fill' operation.

'Close, fill, and then stroke the path, using the even-odd rule to determine the region to fill' operation.

'Close and stroke the path' operation.

'End the path object without filling or stroking it' operation.

readonly PaintPath org.pdfclown.documents.contents.objects.PaintPath.Fill = new PaintPath(FillOperatorKeyword, false, false, true, WindModeEnum.NonZero) [static]

'Fill the path, using the nonzero winding number rule to determine the region to fill' operation.

readonly PaintPath org.pdfclown.documents.contents.objects.PaintPath.FillEvenOdd = new PaintPath(FillEvenOddOperatorKeyword, false, false, true, WindModeEnum.EvenOdd) [static]

'Fill the path, using the even-odd rule to determine the region to fill' operation.

readonly PaintPath org.pdfclown.documents.contents.objects.PaintPath.FillStroke = new PaintPath(FillStrokeOperatorKeyword, false, true, true, WindModeEnum.NonZero) [static]

'Fill and then stroke the path, using the nonzero winding number rule to determine the region to fill' operation.

'Fill and then stroke the path, using the even-odd rule to determine the region to fill' operation.

'Stroke the path' operation.


Property Documentation

bool org.pdfclown.documents.contents.objects.PaintPath.Closed [get]

Gets whether the current path has to be closed.

bool org.pdfclown.documents.contents.objects.PaintPath.Filled [get]

Gets whether the current path has to be filled.

WindModeEnum org.pdfclown.documents.contents.objects.PaintPath.FillMode [get]

Gets the filling rule.

IList<PdfDirectObject> org.pdfclown.documents.contents.objects.Operation.Operands [get, inherited]
string org.pdfclown.documents.contents.objects.Operation.Operator [get, inherited]
bool org.pdfclown.documents.contents.objects.PaintPath.Stroked [get]

Gets whether the current path has to be stroked.

Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.

Generated on Sat Feb 9 21:08:34 2013 for PDF Clown 0.1.2 by  doxygen 1.6.3