|
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.CSTextFilter
public class CSTextFilter
Only text related operations will reach the device.
This implementation will ignore clipping paths!
Constructor Summary | |
---|---|
CSTextFilter(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 |
pathClipEvenOdd()
Intersect the current clipping path with the current path using the even/odd rule. |
void |
pathClipNonZero()
Intersect the current clipping path with the current path using the nonzero winding rule. |
void |
pathClose()
Close the path and append a line segment from the current coordinate to the starting point of the path. |
void |
pathCloseFillStrokeEvenOdd()
Close, Fill and then stroke the path using the even/odd rule. |
void |
pathCloseFillStrokeNonZero()
Close, Fill and then stroke the path using the non zero winding rule. |
void |
pathCloseStroke()
Close and then stroke the path. |
void |
pathEnd()
End the path without filling or stroking. |
void |
pathFillEvenOdd()
Fill the path using the even/odd rule. |
void |
pathFillNonZero()
Fill the path using the non-zero winding rule. |
void |
pathFillStrokeEvenOdd()
Fill and then stroke the path using the even/odd rule. |
void |
pathFillStrokeNonZero()
Fill and then stroke the path using the non-zero winding rule. |
void |
pathStroke()
Stroke the current path. |
void |
penCurveToC(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Append a cubic bezier curve to the path. |
void |
penCurveToV(float x2,
float y2,
float x3,
float y3)
Append a cubic bezier curve to the path. |
void |
penCurveToY(float x1,
float y1,
float x3,
float y3)
Append a cubic bezier curve to the path. |
void |
penLineTo(float x,
float y)
Add a line from the current point to x , y . |
void |
penMoveTo(float x,
float y)
Move the current point to x , y . |
void |
penRectangle(float x,
float y,
float w,
float h)
Append a complete rectangle to as a subpath. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSTextFilter(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 pathClipEvenOdd()
ICSDevice
PDF graphics operator "W*"
pathClipEvenOdd
in interface ICSDevice
pathClipEvenOdd
in class CSDeviceFilter
public void pathClipNonZero()
ICSDevice
PDF graphics operator "W"
pathClipNonZero
in interface ICSDevice
pathClipNonZero
in class CSDeviceFilter
public void pathClose()
ICSDevice
PDF graphics operator "h"
pathClose
in interface ICSDevice
pathClose
in class CSDeviceFilter
public void pathCloseFillStrokeEvenOdd()
ICSDevice
PDF graphics operator "b*"
pathCloseFillStrokeEvenOdd
in interface ICSDevice
pathCloseFillStrokeEvenOdd
in class CSDeviceFilter
public void pathCloseFillStrokeNonZero()
ICSDevice
PDF graphics operator "b"
pathCloseFillStrokeNonZero
in interface ICSDevice
pathCloseFillStrokeNonZero
in class CSDeviceFilter
public void pathCloseStroke()
ICSDevice
PDF graphics operator "s"
pathCloseStroke
in interface ICSDevice
pathCloseStroke
in class CSDeviceFilter
public void pathEnd()
ICSDevice
This may for example be used to manipulate the clipping path without a painting operation.
PDF graphics operator "n"
pathEnd
in interface ICSDevice
pathEnd
in class CSDeviceFilter
public void pathFillEvenOdd()
ICSDevice
PDF graphics operator "f*"
pathFillEvenOdd
in interface ICSDevice
pathFillEvenOdd
in class CSDeviceFilter
public void pathFillNonZero()
ICSDevice
An open subpath is closed before filling.
PDF graphics operator "f"
pathFillNonZero
in interface ICSDevice
pathFillNonZero
in class CSDeviceFilter
public void pathFillStrokeEvenOdd()
ICSDevice
PDF graphics operator "B*"
pathFillStrokeEvenOdd
in interface ICSDevice
pathFillStrokeEvenOdd
in class CSDeviceFilter
public void pathFillStrokeNonZero()
ICSDevice
PDF graphics operator "B"
pathFillStrokeNonZero
in interface ICSDevice
pathFillStrokeNonZero
in class CSDeviceFilter
public void pathStroke()
ICSDevice
PDF graphics operator "S"
pathStroke
in interface ICSDevice
pathStroke
in class CSDeviceFilter
public void penCurveToC(float x1, float y1, float x2, float y2, float x3, float y3)
ICSDevice
current
+---------* x1/y1
. _
-.
. *x2/y2
.
.
.
+ x3/y3
PDF graphics operator "c"
penCurveToC
in interface ICSDevice
penCurveToC
in class CSDeviceFilter
x1
- x coordinate of first control pointy1
- y coordinate of first control pointx2
- x coordinate of second control pointy2
- y coordinate of second control pointx3
- x coordinate of endpointy3
- y coordinate of endpointpublic void penCurveToV(float x2, float y2, float x3, float y3)
ICSDevice
current
+
. _
-.
. *x2/y2
.
.
.
+ x3/y3
PDF graphics operator "v"
penCurveToV
in interface ICSDevice
penCurveToV
in class CSDeviceFilter
x2
- x coordinate of second control pointy2
- y coordinate of second control pointx3
- x coordinate of endpointy3
- y coordinate of endpointpublic void penCurveToY(float x1, float y1, float x3, float y3)
ICSDevice
The curve extends from the current point to x3, y3, where x1,y1 and x3,y3
are the bezier control points.
current
+---------* x1/y1
. _
-.
.
.
.
.
+ x3/y3
PDF graphics operator "y"
penCurveToY
in interface ICSDevice
penCurveToY
in class CSDeviceFilter
x1
- x coordinate of first control pointy1
- y coordinate of first control pointx3
- x coordinate of endpointy3
- y coordinate of endpointpublic void penLineTo(float x, float y)
ICSDevice
x
, y
.
The new current point is x
, y
.
PDF graphics operator "l"
penLineTo
in interface ICSDevice
penLineTo
in class CSDeviceFilter
x
- The new current x coordinatey
- The new current y coordinatepublic void penMoveTo(float x, float y)
ICSDevice
x
, y
. No line
is added to the path, a new subpath is started.
PDF graphics operator "m"
penMoveTo
in interface ICSDevice
penMoveTo
in class CSDeviceFilter
x
- The new current x coordinatey
- The new current y coordinatepublic void penRectangle(float x, float y, float w, float h)
ICSDevice
The lower left corner is at x
, y
, the
dimensions are width
and height
. The
numbers are defined in user space.
PDF graphics operator "re"
penRectangle
in interface ICSDevice
penRectangle
in class CSDeviceFilter
x
- The x coordinate of the lower left corner in user spacey
- The y coordinate of the lower left corner in user spacew
- The width in user spaceh
- The height in user space
|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |