public interface IGraphicsContext
The primary goal of this one is derived from the requirements enforced by processing a PDF context stream.
Modifier and Type | Method and Description |
---|---|
void |
clip(java.awt.Shape shape)
Clip the subsequent drawing operations to the shape.
|
void |
dispose()
Dispose the current context and all its resources.
|
void |
draw(java.awt.Shape s)
Draw
s using the current graphics context state. |
void |
drawImage(IImage image,
float x,
float y)
Draw image
image at coordinates x ,
y . |
void |
drawString(java.lang.String text,
float x,
float y)
Draw a plain text string in the graphics.
|
void |
fill(java.awt.Shape s)
Fill
s using the current graphics context state. |
java.awt.Color |
getBackgroundColor()
The current background color.
|
java.awt.Shape |
getClip()
The current clip.
|
java.awt.Color |
getForegroundColor()
The current foregroumd color.
|
IGraphicsEnvironment |
getGraphicsEnvironment()
The associated
IGraphicsEnvironment |
java.awt.RenderingHints |
getRenderingHints()
The current
RenderingHints |
java.awt.geom.AffineTransform |
getTransform()
The transformatiom currentlz active.
|
void |
rotate(float theta)
Rotate the currently active transformation by
theta . |
void |
scale(float x,
float y)
Scale the currently active transformation by
x ,
y |
void |
setBackgroundColor(java.awt.Color color)
Assign a new background color.
|
void |
setBackgroundPaint(IPaint paint)
Assign a new background
IPaint . |
void |
setClip(java.awt.Shape shape)
Assign the new
shape as the clipping shape. |
void |
setFont(java.awt.Font font)
Set the current font for writing plain text in the graphics.
|
void |
setForegroundColor(java.awt.Color c)
Assign a new foreground color.
|
void |
setForegroundPaint(IPaint paint)
Assign a new foreground
IPaint |
void |
setRenderingHint(java.awt.RenderingHints.Key hintKey,
java.lang.Object hintValue)
Set a specific rendering hint.
|
void |
setRenderingHints(java.util.Map hints)
Assign the currently active rendering hints.
|
void |
setStroke(java.awt.Stroke s)
Assign the currently active
Stroke |
void |
setTransform(java.awt.geom.AffineTransform Tx)
Set the currently active
AffineTransform |
void |
transform(java.awt.geom.AffineTransform transform)
Transform the
IGraphicsEnvironment by transform |
void |
translate(float x,
float y)
translate the currently active transformation by
x ,
y |
void clip(java.awt.Shape shape)
shape
- void dispose()
void draw(java.awt.Shape s)
s
using the current graphics context state.s
- void drawImage(IImage image, float x, float y)
image
at coordinates x
,
y
.image
- x
- y
- void drawString(java.lang.String text, float x, float y)
text
- x
- y
- void fill(java.awt.Shape s)
s
using the current graphics context state.s
- java.awt.Color getBackgroundColor()
java.awt.Shape getClip()
java.awt.Color getForegroundColor()
IGraphicsEnvironment getGraphicsEnvironment()
IGraphicsEnvironment
java.awt.RenderingHints getRenderingHints()
RenderingHints
java.awt.geom.AffineTransform getTransform()
void rotate(float theta)
theta
.theta
- void scale(float x, float y)
x
,
y
theta
- void setBackgroundColor(java.awt.Color color)
color
- void setBackgroundPaint(IPaint paint)
IPaint
.paint
- void setClip(java.awt.Shape shape)
shape
as the clipping shape.shape
- void setFont(java.awt.Font font)
font
- void setForegroundColor(java.awt.Color c)
c
- void setForegroundPaint(IPaint paint)
IPaint
paint
- void setRenderingHint(java.awt.RenderingHints.Key hintKey, java.lang.Object hintValue)
hintKey
- hintValue
- void setRenderingHints(java.util.Map hints)
hints
- void setStroke(java.awt.Stroke s)
Stroke
s
- void setTransform(java.awt.geom.AffineTransform Tx)
AffineTransform
Tx
- void transform(java.awt.geom.AffineTransform transform)
IGraphicsEnvironment
by transform
transform
- void translate(float x, float y)
x
,
y
theta
-