|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.device.swt.SWTPatternContext
Instances of SWTPatternContext are used in order to render
Patterns in the SWT context.
The in
ImageData is updated pixel
per pixel depending on the
fill(ImageData, int, int, int, int) passed to the
constructor.
Pattern
Pattern| Constructor Summary | |
SWTPatternContext(Pattern pattern,
org.eclipse.swt.graphics.Rectangle rcPaint)
Default constructor initializing this context with the Pattern to be rendered and the area where it should be
rendered.
|
|
| Method Summary | |
void |
fill(org.eclipse.swt.graphics.ImageData imageData,
int x,
int y,
int w,
int h)
Method used to fill an with a specific
Pattern. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SWTPatternContext(Pattern pattern,
org.eclipse.swt.graphics.Rectangle rcPaint)
Default constructor initializing this context with the
Pattern to be rendered and the area where it should be
rendered.
pattern - the Pattern to render.rcPaint - the area on which the Pattern is rendered.| Method Detail |
public void fill(org.eclipse.swt.graphics.ImageData imageData,
int x,
int y,
int w,
int h)
Method used to fill an
with a specific
ImageDataPattern. The
passed as
parameter is updated pixel per pixel depending on the
ImageData passed to the
constructor.
Pattern
imageData - the ImageData to render the
Pattern into.x - the x coordinate of the area in device space for which the
Pattern is generated.y - the y coordinate of the area in device space for which the
Pattern is generated.w - the width of the area in device spaceh - the height of the area in device space
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||