public interface IGraphicsEnvironmentAdapter
The IGraphicsEnvironment abstracts from the windowing toolkit, for
example AWT or SWT. For each such execution environment an
IGraphicsEnvironmentAdapter can be registered, that knows how to
render the PDF primitives in that environment.
For every operation requested upon a complex PDF implementation object such
as a PDImage, the implementation is delegated to an instance of
IGraphicsEnvironmentAdapter that knows both about the PDF semantics
and the concrete window toolkit active.
While one could design IGraphicsContext in a way that the PDF
semantics are already supported, we feel that this would create a hard
dependency on CWT, rendering it unusable in non PDF contexts to act as a
platform independent environment.
| Modifier and Type | Method and Description |
|---|---|
void |
drawImage(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
de.intarsys.pdf.pd.PDImage image,
float x,
float y) |
de.intarsys.cwt.environment.IGraphicsEnvironment |
getGraphicsEnvironment() |
void |
setBackgroundColorPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ColorPaint paint) |
void |
setBackgroundPatternPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
PatternPaint paint) |
void |
setBackgroundShadingPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ShadingPaint paint) |
void |
setForegroundColorPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ColorPaint paint) |
void |
setForegroundPatternPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
PatternPaint paint) |
void |
setForegroundShadingPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ShadingPaint paint) |
void drawImage(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
de.intarsys.pdf.pd.PDImage image,
float x,
float y)
de.intarsys.cwt.environment.IGraphicsEnvironment getGraphicsEnvironment()
void setBackgroundColorPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ColorPaint paint)
void setBackgroundPatternPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
PatternPaint paint)
void setBackgroundShadingPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ShadingPaint paint)
void setForegroundColorPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ColorPaint paint)
void setForegroundPatternPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
PatternPaint paint)
void setForegroundShadingPaint(de.intarsys.cwt.environment.IGraphicsContext graphicsContext,
ShadingPaint paint)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.