Class G2DCanvasFactory


  • public final class G2DCanvasFactory
    extends java.lang.Object
    Author:
    Pierre Lando
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static G2DCanvas createCanvas​(java.awt.Graphics2D g2d, int width, int height)
      Create a canvas from an auto drawable object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createCanvas

        public static G2DCanvas createCanvas​(java.awt.Graphics2D g2d,
                                             int width,
                                             int height)
        Create a canvas from an auto drawable object.
        Parameters:
        autoDrawable - the auto drawable object.
        Returns:
        a canvas based on the given auto drawable object.