Class HTMLGraphicsConfiguration

java.lang.Object
java.awt.GraphicsConfiguration
nl.tudelft.simulation.dsol.web.animation.HTMLGraphicsConfiguration

public class HTMLGraphicsConfiguration
extends java.awt.GraphicsConfiguration
The HTMLGraphicsConfiguration class describes the characteristics of the HTML canvas in the browser, as a graphics destination to write to. Note that there can be several GraphicsConfiguration objects associated with a single graphics device, representing different drawing modes or capabilities.

Copyright (c) 2003-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
Author:
Alexander Verbraeck
  • Constructor Summary

    Constructors 
    Constructor Description
    HTMLGraphicsConfiguration()
    Create a graphics configuration for the HTML device.
  • Method Summary

    Modifier and Type Method Description
    java.awt.Rectangle getBounds()
    java.awt.image.ColorModel getColorModel()
    java.awt.image.ColorModel getColorModel​(int transparency)
    java.awt.geom.AffineTransform getDefaultTransform()
    java.awt.GraphicsDevice getDevice()
    java.awt.geom.AffineTransform getNormalizingTransform()
    void setDevice​(HTMLDevice htmlDevice)
    Set the HTMLDevice associated with this HTMLGraphicsConfiguration.

    Methods inherited from class java.awt.GraphicsConfiguration

    createCompatibleImage, createCompatibleImage, createCompatibleVolatileImage, createCompatibleVolatileImage, createCompatibleVolatileImage, createCompatibleVolatileImage, getBufferCapabilities, getImageCapabilities, isTranslucencyCapable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getDevice

      public java.awt.GraphicsDevice getDevice()
      Specified by:
      getDevice in class java.awt.GraphicsConfiguration
    • setDevice

      public void setDevice​(HTMLDevice htmlDevice)
      Set the HTMLDevice associated with this HTMLGraphicsConfiguration.
      Parameters:
      htmlDevice - HTMLDevice; a <code>GraphicsDevice</code> object that is associated with this HTMLGraphicsConfiguration.
    • getColorModel

      public java.awt.image.ColorModel getColorModel()
      Specified by:
      getColorModel in class java.awt.GraphicsConfiguration
    • getColorModel

      public java.awt.image.ColorModel getColorModel​(int transparency)
      Specified by:
      getColorModel in class java.awt.GraphicsConfiguration
    • getDefaultTransform

      public java.awt.geom.AffineTransform getDefaultTransform()
      Specified by:
      getDefaultTransform in class java.awt.GraphicsConfiguration
    • getNormalizingTransform

      public java.awt.geom.AffineTransform getNormalizingTransform()
      Specified by:
      getNormalizingTransform in class java.awt.GraphicsConfiguration
    • getBounds

      public java.awt.Rectangle getBounds()
      Specified by:
      getBounds in class java.awt.GraphicsConfiguration