Class Platform

  • All Implemented Interfaces:
    javajs.api.FontManager, javajs.api.GenericPlatform

    public class Platform
    extends Platform
    WebGL interface
    Author:
    Bob Hanson
    • Constructor Detail

      • Platform

        public Platform()
    • Method Detail

      • drawImage

        public void drawImage​(java.lang.Object g,
                              java.lang.Object img,
                              int x,
                              int y,
                              int width,
                              int height,
                              boolean isDTI)
        Specified by:
        drawImage in interface javajs.api.GenericPlatform
        Overrides:
        drawImage in class Platform
      • getTextPixels

        public int[] getTextPixels​(java.lang.String text,
                                   javajs.awt.Font font3d,
                                   java.lang.Object gObj,
                                   java.lang.Object image,
                                   int width,
                                   int height,
                                   int ascent)
        Specified by:
        getTextPixels in interface javajs.api.GenericPlatform
        Overrides:
        getTextPixels in class Platform
      • getGraphics

        public java.lang.Object getGraphics​(java.lang.Object image)
        Specified by:
        getGraphics in interface javajs.api.GenericPlatform
        Overrides:
        getGraphics in class Platform
      • getStaticGraphics

        public java.lang.Object getStaticGraphics​(java.lang.Object image,
                                                  boolean backgroundTransparent)
        Specified by:
        getStaticGraphics in interface javajs.api.GenericPlatform
        Overrides:
        getStaticGraphics in class Platform
      • newBufferedImage

        public java.lang.Object newBufferedImage​(java.lang.Object image,
                                                 int w,
                                                 int h)
        Specified by:
        newBufferedImage in interface javajs.api.GenericPlatform
        Overrides:
        newBufferedImage in class Platform
      • newOffScreenImage

        public java.lang.Object newOffScreenImage​(int w,
                                                  int h)
        Specified by:
        newOffScreenImage in interface javajs.api.GenericPlatform
        Overrides:
        newOffScreenImage in class Platform