org.jzy3d.plot2d.rendering
Class CanvasSWT
java.lang.Object
org.jzy3d.plot2d.rendering.CanvasSWT
- All Implemented Interfaces:
- Canvas
public class CanvasSWT
- extends Object
- implements Canvas
Constructor Summary |
CanvasSWT(org.eclipse.swt.graphics.GC graphic)
Creates a new instance of Pencil2dAWT. |
Method Summary |
void |
dispose()
|
void |
drawBackground(Color color,
int width,
int heigth)
|
void |
drawDot(Color color,
int x,
int y)
|
void |
drawOval(Color color,
int x,
int y,
int width,
int height)
|
void |
drawRect(Color color,
int x,
int y,
int width,
int height)
|
void |
drawRect(Color color,
int x,
int y,
int width,
int height,
boolean border)
|
void |
drawString(int x,
int y,
String text)
|
static org.eclipse.swt.graphics.Color |
swt(Color color)
Converts a Imaging Color
into a SWT Color . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CanvasSWT
public CanvasSWT(org.eclipse.swt.graphics.GC graphic)
- Creates a new instance of Pencil2dAWT.
A Pencil2dAWT provides an implementation for drawing wafer sites
on an SWT GC (Graphic Context).
dispose
public void dispose()
drawString
public void drawString(int x,
int y,
String text)
- Specified by:
drawString
in interface Canvas
drawRect
public void drawRect(Color color,
int x,
int y,
int width,
int height,
boolean border)
- Specified by:
drawRect
in interface Canvas
drawRect
public void drawRect(Color color,
int x,
int y,
int width,
int height)
- Specified by:
drawRect
in interface Canvas
drawDot
public void drawDot(Color color,
int x,
int y)
- Specified by:
drawDot
in interface Canvas
drawOval
public void drawOval(Color color,
int x,
int y,
int width,
int height)
- Specified by:
drawOval
in interface Canvas
drawBackground
public void drawBackground(Color color,
int width,
int heigth)
- Specified by:
drawBackground
in interface Canvas
swt
public static org.eclipse.swt.graphics.Color swt(Color color)
- Converts a
Imaging Color
into a SWT Color
.
Note that SWT colors do not have an alpha channel.
Copyright © 2013. All rights reserved.