PDF Clown
0.0.8

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

java.lang.Object
  extended by it.stefanochizzolini.clown.documents.contents.objects.ContentObject
      extended by it.stefanochizzolini.clown.documents.contents.objects.Operation
          extended by it.stefanochizzolini.clown.documents.contents.objects.TranslateTextRelative

public final class TranslateTextRelative
extends Operation

'Move to the start of the next line, offset from the start of the current line' operation [PDF:1.6:5.2].

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

Field Summary
static String LeadOperator
          Lead parameter setting.
static String SimpleOperator
          No side effect.
 
Fields inherited from class it.stefanochizzolini.clown.documents.contents.objects.Operation
operands, operator
 
Constructor Summary
TranslateTextRelative(double offsetX, double offsetY)
           
TranslateTextRelative(double offsetX, double offsetY, boolean leadSet)
           
TranslateTextRelative(String operator, List<PdfDirectObject> operands)
           
 
Method Summary
 void applyTo(ContentScanner.GraphicsState state)
          Applies the object's state to the specified graphics state.
 double getOffsetX()
           
 double getOffsetY()
           
 boolean isLeadSet()
          Gets whether this operation, as a side effect, sets the leading parameter in the text state.
 void setLeadSet(boolean value)
           
 void setOffsetX(double value)
           
 void setOffsetY(double value)
           
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.objects.Operation
get, getOperands, getOperator, toString, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SimpleOperator

public static final String SimpleOperator
No side effect.

See Also:
Constant Field Values

LeadOperator

public static final String LeadOperator
Lead parameter setting.

See Also:
Constant Field Values
Constructor Detail

TranslateTextRelative

public TranslateTextRelative(double offsetX,
                             double offsetY)

TranslateTextRelative

public TranslateTextRelative(double offsetX,
                             double offsetY,
                             boolean leadSet)

TranslateTextRelative

public TranslateTextRelative(String operator,
                             List<PdfDirectObject> operands)
Method Detail

applyTo

public void applyTo(ContentScanner.GraphicsState state)
Description copied from class: ContentObject
Applies the object's state to the specified graphics state.

Overrides:
applyTo in class ContentObject
Parameters:
state - Content scanner graphics state.

getOffsetX

public double getOffsetX()

getOffsetY

public double getOffsetY()

isLeadSet

public boolean isLeadSet()
Gets whether this operation, as a side effect, sets the leading parameter in the text state.

Since:
0.0.8

setLeadSet

public void setLeadSet(boolean value)
Since:
0.0.8
See Also:
isLeadSet()

setOffsetX

public void setOffsetX(double value)
Since:
0.0.6

setOffsetY

public void setOffsetY(double value)
Since:
0.0.6

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.