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(Shape shape)
Clip the subsequent drawing operations to the shape.
|
void |
dispose()
Dispose the current context and all its resources.
|
void |
draw(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(String text,
float x,
float y)
Draw a plain text string in the graphics.
|
void |
fill(Shape s)
Fill
s using the current graphics context state. |
Color |
getBackgroundColor()
The current background color.
|
Shape |
getClip()
The current clip.
|
Color |
getForegroundColor()
The current foregroumd color.
|
IGraphicsEnvironment |
getGraphicsEnvironment()
The associated
IGraphicsEnvironment |
RenderingHints |
getRenderingHints()
The current
RenderingHints |
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(Color color)
Assign a new background color.
|
void |
setBackgroundPaint(IPaint paint)
Assign a new background
IPaint. |
void |
setClip(Shape shape)
Assign the new
shape as the clipping shape. |
void |
setFont(Font font)
Set the current font for writing plain text in the graphics.
|
void |
setForegroundColor(Color c)
Assign a new foreground color.
|
void |
setForegroundPaint(IPaint paint)
Assign a new foreground
IPaint |
void |
setRenderingHint(RenderingHints.Key hintKey,
Object hintValue)
Set a specific rendering hint.
|
void |
setRenderingHints(Map hints)
Assign the currently active rendering hints.
|
void |
setStroke(Stroke s)
Assign the currently active
Stroke |
void |
setTransform(AffineTransform Tx)
Set the currently active
AffineTransform |
void |
transform(AffineTransform transform)
Transform the
IGraphicsEnvironment by transform |
void |
translate(float x,
float y)
translate the currently active transformation by
x,
y |
void clip(Shape shape)
shape - void dispose()
void draw(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(String text, float x, float y)
text - x - y - void fill(Shape s)
s using the current graphics context state.s - Color getBackgroundColor()
Shape getClip()
Color getForegroundColor()
IGraphicsEnvironment getGraphicsEnvironment()
IGraphicsEnvironmentRenderingHints getRenderingHints()
RenderingHintsAffineTransform getTransform()
void rotate(float theta)
theta.theta - void scale(float x,
float y)
x,
ytheta - void setBackgroundColor(Color color)
color - void setBackgroundPaint(IPaint paint)
IPaint.paint - void setClip(Shape shape)
shape as the clipping shape.shape - void setFont(Font font)
font - void setForegroundColor(Color c)
c - void setForegroundPaint(IPaint paint)
IPaintpaint - void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)
hintKey - hintValue - void setRenderingHints(Map hints)
hints - void setTransform(AffineTransform Tx)
AffineTransformTx - void transform(AffineTransform transform)
IGraphicsEnvironment by transformtransform - void translate(float x,
float y)
x,
ytheta - Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.