|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.device.awt.AWTPaintContext
com.tensegrity.graphics.device.awt.AWTPatternPaintContext
The AWTPatternPaintContext is an implementation of the
PaintContext interface that is used by the
AWTDevice to render patterns.
| Field Summary | |
protected int |
alpha
instance variable for the alpha value when writing a pixel |
static java.awt.image.ColorModel |
argbmodel
constant that defines a ColorModel that do support
alpha values |
protected double |
transparency
instance variable for the transparency level in percent |
protected int |
txOrg
instance variable for the origin translation in x direction |
protected int |
tyOrg
instance variable for the origin translation in y direction |
static java.awt.image.ColorModel |
xrgbmodel
constant that defines a ColorModel that do not support
alpha values |
| Constructor Summary | |
AWTPatternPaintContext(Pattern pattern,
java.awt.Rectangle rcPaint,
int transparency)
Constructor that creates a AWTPatternPaintContext with the
Pattern given by pattern, the transparency
level given by transparency that renders within the
Rectangle given by rcPaint. |
|
| Method Summary | |
void |
dispose()
|
java.awt.image.ColorModel |
getColorModel()
|
java.awt.image.Raster |
getRaster(int x,
int y,
int w,
int h)
|
void |
setColorModel(boolean hasAlpha)
Sets the ColorModel for the AWTPaintContext
with respect to the flag given by hasAlpha that indicates
whether the AWTPaintContext should support transparency or
not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.awt.image.ColorModel xrgbmodel
ColorModel that do not support
alpha values
public static java.awt.image.ColorModel argbmodel
ColorModel that do support
alpha values
protected double transparency
protected int alpha
protected int txOrg
protected int tyOrg
| Constructor Detail |
public AWTPatternPaintContext(Pattern pattern,
java.awt.Rectangle rcPaint,
int transparency)
AWTPatternPaintContext with the
Pattern given by pattern, the transparency
level given by transparency that renders within the
Rectangle given by rcPaint.
pattern - the Pattern to usercPaint - the Rectangle to render withintransparency - the transparency level given in percent| Method Detail |
public java.awt.image.Raster getRaster(int x,
int y,
int w,
int h)
public void setColorModel(boolean hasAlpha)
ColorModel for the AWTPaintContext
with respect to the flag given by hasAlpha that indicates
whether the AWTPaintContext should support transparency or
not.
hasAlpha - flag that indicates whether alpha values should be
supported or notpublic void dispose()
dispose in interface java.awt.PaintContextpublic java.awt.image.ColorModel getColorModel()
getColorModel in interface java.awt.PaintContext
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||