Package org.jzy3d.plot2d.rendering
Class CanvasAWT
- java.lang.Object
-
- org.jzy3d.plot2d.rendering.CanvasAWT
-
-
Constructor Summary
Constructors Constructor Description CanvasAWT(Graphics2D graphic)Creates a new instance of Pencil2dAWT.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Colorawt(Color color)Converts aImaging Colorinto aAWT Color.voiddrawBackground(Color color, int width, int height)Draws the picture background in the given color.voiddrawDot(Color color, int x, int y)Draws a dot, represented by a small rectangle.voiddrawOval(Color color, int x, int y, int width, int height)Draws an oval.voiddrawRect(Color color, int x, int y, int width, int height)Draws a rectangle.voiddrawRect(Color color, int x, int y, int width, int height, boolean border)Draws a rectangle.voiddrawString(int x, int y, String text)Draws a text.
-
-
-
Constructor Detail
-
CanvasAWT
public CanvasAWT(Graphics2D graphic)
Creates a new instance of Pencil2dAWT. A Pencil2dAWT provides an implementation for drawing wafer sites on AWT.
-
-
Method Detail
-
drawString
public void drawString(int x, int y, String text)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
public void drawRect(Color color, int x, int y, int width, int height, boolean border)
Description copied from interface:CanvasDraws a rectangle.
-
drawRect
public void drawRect(Color color, int x, int y, int width, int height)
Description copied from interface:CanvasDraws a rectangle.
-
drawDot
public void drawDot(Color color, int x, int y)
Description copied from interface:CanvasDraws a dot, represented by a small rectangle.
-
drawOval
public void drawOval(Color color, int x, int y, int width, int height)
Description copied from interface:CanvasDraws an oval.
-
drawBackground
public void drawBackground(Color color, int width, int height)
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.height- height of the picture.
-
awt
public static Color awt(Color color)
Converts aImaging Colorinto aAWT Color. Note that this converter does not use the AWT color's alpha channel, in order to offer the same behaviour than the SWT converter.
-
-