de.intarsys.pdf.platform.cwt.rendering
Class CSPlatformDevice
java.lang.Object
de.intarsys.pdf.content.CSDeviceAdapter
de.intarsys.pdf.content.CSBasicDevice
de.intarsys.pdf.platform.cwt.rendering.CSPlatformDevice
- All Implemented Interfaces:
- de.intarsys.pdf.content.ICSDevice, de.intarsys.pdf.content.ICSDeviceFeatures, ICSPlatformDevice
public class CSPlatformDevice
- extends de.intarsys.pdf.content.CSBasicDevice
- implements ICSPlatformDevice
A device that bridges between the PDF device operations and a real window
toolkit graphics context. The graphics context used is abstracted itself to
IGraphicsContext to allow for easy migration between similar toolkit
implementations.
| Fields inherited from class de.intarsys.pdf.content.CSBasicDevice |
THOUSAND |
| Fields inherited from class de.intarsys.pdf.content.CSDeviceAdapter |
MAX_STACK_SIZE |
|
Constructor Summary |
CSPlatformDevice(de.intarsys.cwt.environment.IGraphicsContext graphics)
|
|
Method Summary |
void |
addTextClip(Shape shape)
|
void |
doShading(de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDShading shading)
|
de.intarsys.cwt.environment.IGraphicsContext |
getGraphicsContext()
|
void |
inlineImage(de.intarsys.pdf.pd.PDImage img)
|
void |
restoreState()
|
void |
saveState()
|
void |
setExtendedState(de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDExtGState gstate)
|
void |
setLineCap(int capStyle)
|
void |
setLineDash(float[] pattern,
float phase)
|
void |
setLineJoin(int joinStyle)
|
void |
setLineWidth(float lineWidth)
|
void |
setMiterLimit(float miterLimit)
|
void |
setNonStrokeColorValues(float[] values,
de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDPattern pattern)
|
void |
setStrokeColorValues(float[] values,
de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDPattern pattern)
|
void |
textBegin()
|
void |
textEnd()
|
void |
textLineMove(float dx,
float dy)
|
void |
textLineNew()
|
void |
textMove(float dx,
float dy)
|
void |
textSetFont(de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.font.PDFont font,
float size)
|
void |
textSetHorizontalScaling(float scaling)
|
void |
textSetRenderingMode(int renderingMode)
|
void |
textSetRise(float rise)
|
void |
textSetTransform(float a,
float b,
float c,
float d,
float e,
float f)
|
void |
textShow(byte[] bytes,
int offset,
int length)
|
void |
transform(float a,
float b,
float c,
float d,
float e,
float f)
|
| Methods inherited from class de.intarsys.pdf.content.CSBasicDevice |
open, pathClipEvenOdd, pathClipNonZero, pathClose, pathCloseFillStrokeEvenOdd, pathCloseFillStrokeNonZero, pathCloseStroke, pathEnd, pathFillEvenOdd, pathFillNonZero, pathFillStrokeEvenOdd, pathFillStrokeNonZero, pathStroke, penCurveToC, penCurveToV, penCurveToY, penLineTo, penMoveTo, penRectangle |
| Methods inherited from class de.intarsys.pdf.content.CSDeviceAdapter |
close, compatibilityBegin, compatibilityEnd, doXObject, getDeviceTransform, getGraphicsState, getInterpreter, markedContentBegin, markedContentBeginProperties, markedContentEnd, markedContentPoint, markedContentPointProperties, setDeviceTransform, setFlatnessTolerance, setNonStrokeColorCMYK, setNonStrokeColorGray, setNonStrokeColorRGB, setNonStrokeColorSpace, setNonStrokeColorValues, setRenderingIntent, setStrokeColorCMYK, setStrokeColorGray, setStrokeColorRGB, setStrokeColorSpace, setStrokeColorValues, supportsColorSpace, supportsExtendedState, supportsFont, supportsInlineImage, supportsPattern, supportsProperties, supportsShading, supportsXObject, textMoveTo, textSetCharSpacing, textSetLeading, textSetWordSpacing, textShow, textShow, textT3SetGlyphWidth, textT3SetGlyphWidthBB |
| Methods inherited from interface de.intarsys.pdf.content.ICSDevice |
close, compatibilityBegin, compatibilityEnd, doXObject, getGraphicsState, getInterpreter, markedContentBegin, markedContentBeginProperties, markedContentEnd, markedContentPoint, markedContentPointProperties, open, pathClipEvenOdd, pathClipNonZero, pathClose, pathCloseFillStrokeEvenOdd, pathCloseFillStrokeNonZero, pathCloseStroke, pathEnd, pathFillEvenOdd, pathFillNonZero, pathFillStrokeEvenOdd, pathFillStrokeNonZero, pathStroke, penCurveToC, penCurveToV, penCurveToY, penLineTo, penMoveTo, penRectangle, setFlatnessTolerance, setNonStrokeColorCMYK, setNonStrokeColorGray, setNonStrokeColorRGB, setNonStrokeColorSpace, setNonStrokeColorValues, setRenderingIntent, setStrokeColorCMYK, setStrokeColorGray, setStrokeColorRGB, setStrokeColorSpace, setStrokeColorValues, textMoveTo, textSetCharSpacing, textSetLeading, textSetWordSpacing, textShow, textShow, textT3SetGlyphWidth, textT3SetGlyphWidthBB |
CSPlatformDevice
public CSPlatformDevice(de.intarsys.cwt.environment.IGraphicsContext graphics)
addTextClip
public void addTextClip(Shape shape)
- Specified by:
addTextClip in interface ICSPlatformDevice
doShading
public void doShading(de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDShading shading)
- Specified by:
doShading in interface de.intarsys.pdf.content.ICSDevice- Overrides:
doShading in class de.intarsys.pdf.content.CSDeviceAdapter
getGraphicsContext
public de.intarsys.cwt.environment.IGraphicsContext getGraphicsContext()
- Specified by:
getGraphicsContext in interface ICSPlatformDevice
inlineImage
public void inlineImage(de.intarsys.pdf.pd.PDImage img)
- Specified by:
inlineImage in interface de.intarsys.pdf.content.ICSDevice- Overrides:
inlineImage in class de.intarsys.pdf.content.CSDeviceAdapter
restoreState
public void restoreState()
- Specified by:
restoreState in interface de.intarsys.pdf.content.ICSDevice- Overrides:
restoreState in class de.intarsys.pdf.content.CSDeviceAdapter
saveState
public void saveState()
- Specified by:
saveState in interface de.intarsys.pdf.content.ICSDevice- Overrides:
saveState in class de.intarsys.pdf.content.CSDeviceAdapter
setExtendedState
public void setExtendedState(de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDExtGState gstate)
- Specified by:
setExtendedState in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setExtendedState in class de.intarsys.pdf.content.CSDeviceAdapter
setLineCap
public void setLineCap(int capStyle)
- Specified by:
setLineCap in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setLineCap in class de.intarsys.pdf.content.CSDeviceAdapter
setLineDash
public void setLineDash(float[] pattern,
float phase)
- Specified by:
setLineDash in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setLineDash in class de.intarsys.pdf.content.CSDeviceAdapter
setLineJoin
public void setLineJoin(int joinStyle)
- Specified by:
setLineJoin in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setLineJoin in class de.intarsys.pdf.content.CSDeviceAdapter
setLineWidth
public void setLineWidth(float lineWidth)
- Specified by:
setLineWidth in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setLineWidth in class de.intarsys.pdf.content.CSDeviceAdapter
setMiterLimit
public void setMiterLimit(float miterLimit)
- Specified by:
setMiterLimit in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setMiterLimit in class de.intarsys.pdf.content.CSDeviceAdapter
setNonStrokeColorValues
public void setNonStrokeColorValues(float[] values,
de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDPattern pattern)
- Specified by:
setNonStrokeColorValues in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setNonStrokeColorValues in class de.intarsys.pdf.content.CSDeviceAdapter
setStrokeColorValues
public void setStrokeColorValues(float[] values,
de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.pd.PDPattern pattern)
- Specified by:
setStrokeColorValues in interface de.intarsys.pdf.content.ICSDevice- Overrides:
setStrokeColorValues in class de.intarsys.pdf.content.CSDeviceAdapter
textBegin
public void textBegin()
- Specified by:
textBegin in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textBegin in class de.intarsys.pdf.content.CSDeviceAdapter
textEnd
public void textEnd()
- Specified by:
textEnd in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textEnd in class de.intarsys.pdf.content.CSDeviceAdapter
textLineMove
public void textLineMove(float dx,
float dy)
- Specified by:
textLineMove in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textLineMove in class de.intarsys.pdf.content.CSDeviceAdapter
textLineNew
public void textLineNew()
- Specified by:
textLineNew in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textLineNew in class de.intarsys.pdf.content.CSDeviceAdapter
textMove
public void textMove(float dx,
float dy)
- Specified by:
textMove in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textMove in class de.intarsys.pdf.content.CSDeviceAdapter
textSetFont
public void textSetFont(de.intarsys.pdf.cos.COSName name,
de.intarsys.pdf.font.PDFont font,
float size)
- Specified by:
textSetFont in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textSetFont in class de.intarsys.pdf.content.CSDeviceAdapter
textSetHorizontalScaling
public void textSetHorizontalScaling(float scaling)
- Specified by:
textSetHorizontalScaling in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textSetHorizontalScaling in class de.intarsys.pdf.content.CSDeviceAdapter
textSetRenderingMode
public void textSetRenderingMode(int renderingMode)
- Specified by:
textSetRenderingMode in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textSetRenderingMode in class de.intarsys.pdf.content.CSDeviceAdapter
textSetRise
public void textSetRise(float rise)
- Specified by:
textSetRise in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textSetRise in class de.intarsys.pdf.content.CSDeviceAdapter
textSetTransform
public void textSetTransform(float a,
float b,
float c,
float d,
float e,
float f)
- Specified by:
textSetTransform in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textSetTransform in class de.intarsys.pdf.content.CSDeviceAdapter
textShow
public void textShow(byte[] bytes,
int offset,
int length)
- Specified by:
textShow in interface de.intarsys.pdf.content.ICSDevice- Overrides:
textShow in class de.intarsys.pdf.content.CSBasicDevice
transform
public void transform(float a,
float b,
float c,
float d,
float e,
float f)
- Specified by:
transform in interface de.intarsys.pdf.content.ICSDevice- Overrides:
transform in class de.intarsys.pdf.content.CSDeviceAdapter
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.