Class CanvasSWT

java.lang.Object
org.jzy3d.plot2d.rendering.CanvasSWT
All Implemented Interfaces:
Canvas

public class CanvasSWT extends Object implements Canvas
  • 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

      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
    • toSWTColor

      public org.eclipse.swt.graphics.Color toSWTColor(Color color)
      Converts a Imaging Color into a SWT Color. Note that SWT colors do not have an alpha channel.