|
intarsys CWT library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGraphicsContext
A platform independent (SWT, AWT) description of a graphics context.
The primary goal of this one is derived from the requirements enforced by processing a PDF context stream.
Method Summary | |
---|---|
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 |
Method Detail |
---|
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()
IGraphicsEnvironment
RenderingHints getRenderingHints()
RenderingHints
AffineTransform getTransform()
void rotate(float theta)
theta
.
theta
- void scale(float x, float y)
x
,
y
theta
- 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)
IPaint
paint
- void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)
hintKey
- hintValue
- void setRenderingHints(Map hints)
hints
- void setStroke(Stroke s)
Stroke
s
- void setTransform(AffineTransform Tx)
AffineTransform
Tx
- void transform(AffineTransform transform)
IGraphicsEnvironment
by transform
transform
- void translate(float x, float y)
x
,
y
theta
-
|
intarsys CWT library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |