Class HTMLGraphicsConfiguration
- java.lang.Object
-
- java.awt.GraphicsConfiguration
-
- nl.tudelft.simulation.dsol.web.animation.HTMLGraphicsConfiguration
-
public class HTMLGraphicsConfiguration extends java.awt.GraphicsConfigurationTheHTMLGraphicsConfigurationclass describes the characteristics of the HTML canvas in the browser, as a graphics destination to write to. Note that there can be severalGraphicsConfigurationobjects associated with a single graphics device, representing different drawing modes or capabilities.
Copyright (c) 2003-2020 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.RectanglegetBounds()java.awt.image.ColorModelgetColorModel()java.awt.image.ColorModelgetColorModel(int transparency)java.awt.geom.AffineTransformgetDefaultTransform()java.awt.GraphicsDevicegetDevice()java.awt.geom.AffineTransformgetNormalizingTransform()voidsetDevice(HTMLDevice htmlDevice)Set theHTMLDeviceassociated with thisHTMLGraphicsConfiguration.
-
-
-
Method Detail
-
getDevice
public java.awt.GraphicsDevice getDevice()
- Specified by:
getDevicein classjava.awt.GraphicsConfiguration
-
setDevice
public void setDevice(HTMLDevice htmlDevice)
Set theHTMLDeviceassociated with thisHTMLGraphicsConfiguration.- Parameters:
htmlDevice- HTMLDevice; a <code>GraphicsDevice</code> object that is associated with thisHTMLGraphicsConfiguration.
-
getColorModel
public java.awt.image.ColorModel getColorModel()
- Specified by:
getColorModelin classjava.awt.GraphicsConfiguration
-
getColorModel
public java.awt.image.ColorModel getColorModel(int transparency)
- Specified by:
getColorModelin classjava.awt.GraphicsConfiguration
-
getDefaultTransform
public java.awt.geom.AffineTransform getDefaultTransform()
- Specified by:
getDefaultTransformin classjava.awt.GraphicsConfiguration
-
getNormalizingTransform
public java.awt.geom.AffineTransform getNormalizingTransform()
- Specified by:
getNormalizingTransformin classjava.awt.GraphicsConfiguration
-
getBounds
public java.awt.Rectangle getBounds()
- Specified by:
getBoundsin classjava.awt.GraphicsConfiguration
-
-