|
intarsys CWT library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.cwt.awt.environment.CwtAwtGraphicsContext
public class CwtAwtGraphicsContext
The AWT implementation of IGraphicsContext
Constructor Summary | |
---|---|
CwtAwtGraphicsContext(Graphics2D paramGraphics)
|
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 |
disposeClip(Object clip)
|
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 s,
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. |
BlendMode |
getBlendMode()
|
Shape |
getClip()
The current clip. |
Font |
getFont()
|
FontRenderContext |
getFontRenderContext()
|
Color |
getForegroundColor()
The current foregroumd color. |
Graphics2D |
getGraphics()
|
IGraphicsEnvironment |
getGraphicsEnvironment()
The associated IGraphicsEnvironment |
RenderingHints |
getRenderingHints()
The current RenderingHints |
AffineTransform |
getTransform()
The transformatiom currentlz active. |
void |
resetAdvanced()
|
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 |
setBackgroundPaint(Paint paint)
|
void |
setBlendMode(BlendMode blendMode)
|
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 |
setForegroundPaint(Paint paint)
|
void |
setPaintMode()
|
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 |
setXORMode(Color c1)
|
Point |
textExtent(String s)
|
void |
transform(AffineTransform Tx)
Transform the IGraphicsEnvironment by transform |
void |
translate(float x,
float y)
translate the currently active transformation by x ,
y |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CwtAwtGraphicsContext(Graphics2D paramGraphics)
Method Detail |
---|
public void clip(Shape shape)
IGraphicsContext
clip
in interface IGraphicsContext
public void dispose()
IGraphicsContext
dispose
in interface IGraphicsContext
public void disposeClip(Object clip)
public void draw(Shape s)
IGraphicsContext
s
using the current graphics context state.
draw
in interface IGraphicsContext
public void drawImage(IImage image, float x, float y)
IGraphicsContext
image
at coordinates x
,
y
.
drawImage
in interface IGraphicsContext
public void drawString(String s, float x, float y)
IGraphicsContext
drawString
in interface IGraphicsContext
public void fill(Shape s)
IGraphicsContext
s
using the current graphics context state.
fill
in interface IGraphicsContext
public Color getBackgroundColor()
IGraphicsContext
getBackgroundColor
in interface IGraphicsContext
public BlendMode getBlendMode()
public Shape getClip()
IGraphicsContext
getClip
in interface IGraphicsContext
public Font getFont()
public FontRenderContext getFontRenderContext()
public Color getForegroundColor()
IGraphicsContext
getForegroundColor
in interface IGraphicsContext
public Graphics2D getGraphics()
public IGraphicsEnvironment getGraphicsEnvironment()
IGraphicsContext
IGraphicsEnvironment
getGraphicsEnvironment
in interface IGraphicsContext
public RenderingHints getRenderingHints()
IGraphicsContext
RenderingHints
getRenderingHints
in interface IGraphicsContext
public AffineTransform getTransform()
IGraphicsContext
getTransform
in interface IGraphicsContext
public void resetAdvanced()
public void rotate(float theta)
IGraphicsContext
theta
.
rotate
in interface IGraphicsContext
public void scale(float x, float y)
IGraphicsContext
x
,
y
scale
in interface IGraphicsContext
public void setBackgroundColor(Color color)
IGraphicsContext
setBackgroundColor
in interface IGraphicsContext
public void setBackgroundPaint(IPaint paint)
IGraphicsContext
IPaint
.
setBackgroundPaint
in interface IGraphicsContext
public void setBackgroundPaint(Paint paint)
public void setBlendMode(BlendMode blendMode)
public void setClip(Shape shape)
IGraphicsContext
shape
as the clipping shape.
setClip
in interface IGraphicsContext
public void setFont(Font font)
IGraphicsContext
setFont
in interface IGraphicsContext
public void setForegroundColor(Color c)
IGraphicsContext
setForegroundColor
in interface IGraphicsContext
public void setForegroundPaint(IPaint paint)
IGraphicsContext
IPaint
setForegroundPaint
in interface IGraphicsContext
public void setForegroundPaint(Paint paint)
public void setPaintMode()
public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)
IGraphicsContext
setRenderingHint
in interface IGraphicsContext
public void setRenderingHints(Map hints)
IGraphicsContext
setRenderingHints
in interface IGraphicsContext
public void setStroke(Stroke s)
IGraphicsContext
Stroke
setStroke
in interface IGraphicsContext
public void setTransform(AffineTransform Tx)
IGraphicsContext
AffineTransform
setTransform
in interface IGraphicsContext
public void setXORMode(Color c1)
public Point textExtent(String s)
public void transform(AffineTransform Tx)
IGraphicsContext
IGraphicsEnvironment
by transform
transform
in interface IGraphicsContext
public void translate(float x, float y)
IGraphicsContext
x
,
y
translate
in interface IGraphicsContext
|
intarsys CWT library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |