|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.ledder.LedPaintContext
public class LedPaintContext
Renderer for Leds. Implements ray tracing with specular highlighting and antialiasing.
Constructor Summary | |
---|---|
LedPaintContext(int x,
int y,
LedPaintParameters parameters)
Creates a new LedPaintContext object. |
Method Summary | |
---|---|
void |
createOffsetArray(int factor,
int width)
Creates array for antialiasing. |
void |
dispose()
Destroys this context. |
java.awt.image.ColorModel |
getColorModel()
Returns color model used by this context: ColorModel.getRGBdefault() . |
java.awt.image.Raster |
getRaster(int x,
int y,
int w,
int h)
Creates buffer, renders the led and antialiases the result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LedPaintContext(int x, int y, LedPaintParameters parameters)
x
- horizontal size.y
- vertical size.parameters
- defining the context.Method Detail |
---|
public void dispose()
dispose
in interface java.awt.PaintContext
public java.awt.image.ColorModel getColorModel()
ColorModel.getRGBdefault()
.
getColorModel
in interface java.awt.PaintContext
public void createOffsetArray(int factor, int width)
factor
- by which to scale the array.width
- original width of the array.public java.awt.image.Raster getRaster(int x, int y, int w, int h)
getRaster
in interface java.awt.PaintContext
x
- offset.y
- offset.w
- width of area to render.h
- height of area to render.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |