|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.content.CSDeviceFilter
de.intarsys.pdf.content.CSPathFilter
public class CSPathFilter
Only path related operations will reach the device.
Constructor Summary | |
---|---|
CSPathFilter(ICSDevice device)
|
Method Summary | |
---|---|
void |
doShading(COSName resourceName,
PDShading shading)
Paint shape and color shading according to shading dictionary. |
void |
inlineImage(PDImage img)
Stroke an inlined image. |
void |
markedContentBegin(COSName tag)
Begin a marked content sequence. |
void |
markedContentBeginProperties(COSName tag,
COSName resourceName,
COSDictionary properties)
Begin a marked content sequence with a property list. |
void |
markedContentEnd()
End marked content sequence started with "BMC" or "BDC". |
void |
markedContentPoint(COSName tag)
Set a marked point. |
void |
markedContentPointProperties(COSName tag,
COSName resourceName,
COSDictionary properties)
Define a marked content point with a property list. |
void |
textBegin()
Begin text mode. |
void |
textEnd()
End text mode. |
void |
textLineMove(float dx,
float dy)
Move the current text line by dx , dy . |
void |
textLineNew()
Move the current position to a new line. |
void |
textMove(float dx,
float dy)
Move the current text cursor represented by the current text state transform by dx , dy . |
void |
textMoveTo(float x,
float y)
Move the current text cursor represented by the current text state transform to x , y . |
void |
textSetCharSpacing(float charSpacing)
Set the character spacing. |
void |
textSetFont(COSName resourceName,
PDFont font,
float size)
Set the current font and size. |
void |
textSetHorizontalScaling(float scale)
Set the horizontal scling factor. |
void |
textSetLeading(float leading)
Set the text leading. |
void |
textSetRenderingMode(int renderingMode)
Set the text rendering mode. |
void |
textSetRise(float rise)
Set the text rise. |
void |
textSetTransform(float a,
float b,
float c,
float d,
float e,
float f)
Set the text transformation matrix. |
void |
textSetWordSpacing(float wordSpacing)
Set the word spacing. |
void |
textShow(byte[] text,
int offset,
int length)
Show a sequence of bytes as text. |
void |
textShow(char[] chars,
int offset,
int length)
Show a sequence of characters as text, using the current font encoding. |
void |
textShow(String text)
Show a string value as text, using the current font encoding. |
void |
textT3SetGlyphWidth(float x,
float y)
Set the glyph width for a type 3 font. |
void |
textT3SetGlyphWidthBB(float x,
float y,
float llx,
float lly,
float urx,
float ury)
Set the glyph width and bounding box for a type 3 font. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSPathFilter(ICSDevice device)
Method Detail |
---|
public void doShading(COSName resourceName, PDShading shading)
ICSDevice
PDF graphics operator "sh"
doShading
in interface ICSDevice
doShading
in class CSDeviceFilter
resourceName
- The logical name of the resource in the PDResources
shading
- The PDShading
to be painted.public void inlineImage(PDImage img)
ICSDevice
PDF graphics operators "BI", "ID", "EI"
inlineImage
in interface ICSDevice
inlineImage
in class CSDeviceFilter
img
- The inlined image. The image may use some special keys instead
of the standard PDImage
dictionary keys.public void markedContentBegin(COSName tag)
ICSDevice
PDF graphics operator "BMC"
markedContentBegin
in interface ICSDevice
markedContentBegin
in class CSDeviceFilter
tag
- The tag indicating the role or significance.public void markedContentBeginProperties(COSName tag, COSName resourceName, COSDictionary properties)
ICSDevice
PDF graphics operator "BDC"
markedContentBeginProperties
in interface ICSDevice
markedContentBeginProperties
in class CSDeviceFilter
tag
- The tag indicating the role or significance.resourceName
- The logical name of the resource in the PDResources
properties
- The properties for the marked content sequence.public void markedContentEnd()
ICSDevice
PDF graphics operator "EMC"
markedContentEnd
in interface ICSDevice
markedContentEnd
in class CSDeviceFilter
public void markedContentPoint(COSName tag)
ICSDevice
PDF graphics operator "MP"
markedContentPoint
in interface ICSDevice
markedContentPoint
in class CSDeviceFilter
tag
- The tag indicating the role or significance.public void markedContentPointProperties(COSName tag, COSName resourceName, COSDictionary properties)
ICSDevice
PDF graphics operator "DP"
markedContentPointProperties
in interface ICSDevice
markedContentPointProperties
in class CSDeviceFilter
tag
- The tag indicating the role or significance.resourceName
- The logical name of the resource in the PDResources
properties
- The properties for the marked content point.public void textBegin()
ICSDevice
PDF graphics operator "BT"
textBegin
in interface ICSDevice
textBegin
in class CSDeviceFilter
public void textEnd()
ICSDevice
PDF graphics operator "ET"
textEnd
in interface ICSDevice
textEnd
in class CSDeviceFilter
public void textLineMove(float dx, float dy)
ICSDevice
dx
, dy
.
PDF graphics operator "Td"
textLineMove
in interface ICSDevice
textLineMove
in class CSDeviceFilter
dx
- The x offset for the new glyph starting point from the last
text line starting point.dy
- The y offset for the new glyph starting point from the last
text line starting point.public void textLineNew()
ICSDevice
y
.
PDF graphics operator "T*"
textLineNew
in interface ICSDevice
textLineNew
in class CSDeviceFilter
public void textMove(float dx, float dy)
ICSDevice
dx
, dy
.
There is no graphics operator for this. It is implemented as a tool for the ease of creating a content stream.
textMove
in interface ICSDevice
textMove
in class CSDeviceFilter
dx
- The x offset for the new glyph starting point from the current
text cursor position.dy
- The x offset for the new glyph starting point from the current
text cursor position.public void textMoveTo(float x, float y)
ICSDevice
x
, y
.
There is no graphics operator for this. It is implemented as a tool for the ease of creating a content stream.
textMoveTo
in interface ICSDevice
textMoveTo
in class CSDeviceFilter
x
- The x coordinate for the next glyph starting point .y
- The y coordinate for the next glyph starting point .public void textSetCharSpacing(float charSpacing)
ICSDevice
PDF graphics operator "Tc"
textSetCharSpacing
in interface ICSDevice
textSetCharSpacing
in class CSDeviceFilter
charSpacing
- The character spacingpublic void textSetFont(COSName resourceName, PDFont font, float size)
ICSDevice
PDF graphics operator "Tf"
textSetFont
in interface ICSDevice
textSetFont
in class CSDeviceFilter
resourceName
- The logical name of the resource in the PDResources
font
- The new PDFont
size
- The new font size (scaling)public void textSetHorizontalScaling(float scale)
ICSDevice
PDF graphics operator "Tz"
textSetHorizontalScaling
in interface ICSDevice
textSetHorizontalScaling
in class CSDeviceFilter
scale
- The new horizontal scaling factor.public void textSetLeading(float leading)
ICSDevice
PDF graphics operator "TL"
textSetLeading
in interface ICSDevice
textSetLeading
in class CSDeviceFilter
leading
- The new leadingpublic void textSetRenderingMode(int renderingMode)
ICSDevice
PDF graphics operator "Tr"
textSetRenderingMode
in interface ICSDevice
textSetRenderingMode
in class CSDeviceFilter
renderingMode
- The new rendering mode.public void textSetRise(float rise)
ICSDevice
PDF graphics operator "Ts"
textSetRise
in interface ICSDevice
textSetRise
in class CSDeviceFilter
rise
- The new text rise (super/subscript) amountpublic void textSetTransform(float a, float b, float c, float d, float e, float f)
ICSDevice
PDF graphics operator "Tm"
textSetTransform
in interface ICSDevice
textSetTransform
in class CSDeviceFilter
a
- operand 1,1 in the matrixb
- operand 1,2 in the matrixc
- operand 2,1 in the matrixd
- operand 2,2 in the matrixe
- operand 3,1 in the matrixf
- operand 3,2 in the matrixpublic void textSetWordSpacing(float wordSpacing)
ICSDevice
PDF graphics operator "Tw"
textSetWordSpacing
in interface ICSDevice
textSetWordSpacing
in class CSDeviceFilter
wordSpacing
- The new word spacing.public void textShow(byte[] text, int offset, int length)
ICSDevice
PDF graphics operator "Tj"
textShow
in interface ICSDevice
textShow
in class CSDeviceFilter
text
- The bytes to be shown.public void textShow(char[] chars, int offset, int length)
ICSDevice
This is an optional operation from the viewpoint of an
ICSInterpreter
. It is called only "manually" in content creation
devices. This method may throw an UnsupportedOperationException
.
PDF graphics operator "Tj"
textShow
in interface ICSDevice
textShow
in class CSDeviceFilter
chars
- The chars to be shown.public void textShow(String text)
ICSDevice
This is an optional operation from the viewpoint of an
ICSInterpreter
. It is called only "manually" in content creation
devices. This method may throw an UnsupportedOperationException
.
PDF graphics operator "Tj"
textShow
in interface ICSDevice
textShow
in class CSDeviceFilter
text
- The text value to be shown using the current fonts encoding.public void textT3SetGlyphWidth(float x, float y)
ICSDevice
PDF graphics operator "d0"
textT3SetGlyphWidth
in interface ICSDevice
textT3SetGlyphWidth
in class CSDeviceFilter
x
- The glyph widthy
- must be 0public void textT3SetGlyphWidthBB(float x, float y, float llx, float lly, float urx, float ury)
ICSDevice
PDF graphics operator "d1"
textT3SetGlyphWidthBB
in interface ICSDevice
textT3SetGlyphWidthBB
in class CSDeviceFilter
x
- The glyph width.y
- must be 0llx
- lower left x of bounding boxlly
- lower left y of bounding boxurx
- upper right x of bounding boxury
- upper right y of bounding box
|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |