Package org.jzy3d.plot2d.rendering
Class CanvasSWT
java.lang.Object
org.jzy3d.plot2d.rendering.CanvasSWT
- All Implemented Interfaces:
Canvas
-
Constructor Summary
ConstructorsConstructorDescriptionCanvasSWT(org.eclipse.swt.graphics.GC graphic) Creates a new instance of Pencil2dAWT. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voiddrawBackground(Color color, int width, int heigth) Draws the picture background in the given color.voidDraws a dot, represented by a small rectangle.voidDraws an oval.voidDraws a rectangle.voidDraws a rectangle.voiddrawString(int x, int y, String text) Draws a text.org.eclipse.swt.graphics.ColortoSWTColor(Color color) Converts aImaging Colorinto aSWT Color.
-
Constructor Details
-
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).
-
-
Method Details
-
dispose
public void dispose() -
drawString
Description copied from interface:CanvasDraws a text.- Specified by:
drawStringin interfaceCanvas- Parameters:
x- x value of the text.y- y value of the text.text- text to be displayed.
-
drawRect
Description copied from interface:CanvasDraws a rectangle. -
drawRect
Description copied from interface:CanvasDraws a rectangle. -
drawDot
Description copied from interface:CanvasDraws a dot, represented by a small rectangle. -
drawOval
Description copied from interface:CanvasDraws an oval. -
drawBackground
Description copied from interface:CanvasDraws the picture background in the given color.- Specified by:
drawBackgroundin interfaceCanvas- Parameters:
color- the background color.width- width of the picture.heigth- height of the picture.
-
toSWTColor
Converts aImaging Colorinto aSWT Color. Note that SWT colors do not have an alpha channel.
-