PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.contents.objects
Class Operation

java.lang.Object
  extended by it.stefanochizzolini.clown.documents.contents.objects.ContentObject
      extended by it.stefanochizzolini.clown.documents.contents.objects.Operation
Direct Known Subclasses:
BeginInlineImage, BeginMarkedContent, BeginSubpath, BeginText, CloseSubpath, DrawCurve, DrawLine, DrawRectangle, EndInlineImage, EndMarkedContent, EndText, GenericOperation, InlineImageBody, InlineImageHeader, ModifyClipPath, ModifyClipPathEvenOdd, ModifyCTM, PaintPath, PaintShading, PaintXObject, RestoreGraphicsState, SaveGraphicsState, SetCharSpace, SetExtGState, SetFillColor, SetFillColorSpace, SetFont, SetLineCap, SetLineDash, SetLineJoin, SetLineWidth, SetMiterLimit, SetStrokeColor, SetStrokeColorSpace, SetTextLead, SetTextMatrix, SetTextRenderMode, SetTextRise, SetTextScale, SetWordSpace, ShowText, TranslateTextRelative, TranslateTextToNextLine

public abstract class Operation
extends ContentObject

Content stream instruction [PDF:1.6:3.7.1].

Since:
0.0.2
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Field Summary
protected  List<PdfDirectObject> operands
           
protected  String operator
           
 
Constructor Summary
protected Operation(String operator)
           
protected Operation(String operator, List<PdfDirectObject> operands)
           
protected Operation(String operator, PdfDirectObject... operands)
           
protected Operation(String operator, PdfDirectObject operand)
           
 
Method Summary
static Operation get(String operator, List<PdfDirectObject> operands)
          Gets a specific operation.
 List<PdfDirectObject> getOperands()
           
 String getOperator()
           
 String toString()
           
 void writeTo(IOutputStream stream)
          Writes PDF representation of the object to the target buffer.
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.objects.ContentObject
applyTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

operator

protected String operator

operands

protected List<PdfDirectObject> operands
Constructor Detail

Operation

protected Operation(String operator)

Operation

protected Operation(String operator,
                    PdfDirectObject operand)

Operation

protected Operation(String operator,
                    PdfDirectObject... operands)

Operation

protected Operation(String operator,
                    List<PdfDirectObject> operands)
Method Detail

get

public static Operation get(String operator,
                            List<PdfDirectObject> operands)
Gets a specific operation.

Parameters:
operator - Operator.
operands - List of operands.
Returns:
Operation associated to the operator.
Since:
0.0.4

getOperator

public String getOperator()

getOperands

public List<PdfDirectObject> getOperands()

toString

public String toString()
Overrides:
toString in class Object

writeTo

public void writeTo(IOutputStream stream)
Description copied from class: ContentObject
Writes PDF representation of the object to the target buffer.

Specified by:
writeTo in class ContentObject

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.