Class HTMLGraphicsConfiguration
java.lang.Object
java.awt.GraphicsConfiguration
nl.tudelft.simulation.dsol.web.animation.HTMLGraphicsConfiguration
public class HTMLGraphicsConfiguration extends GraphicsConfiguration
The
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.
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-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
Modifier and Type Method Description RectanglegetBounds()ColorModelgetColorModel()ColorModelgetColorModel(int transparency)AffineTransformgetDefaultTransform()GraphicsDevicegetDevice()AffineTransformgetNormalizingTransform()voidsetDevice(HTMLDevice htmlDevice)Set theHTMLDeviceassociated with thisHTMLGraphicsConfiguration.
-
Constructor Details
-
HTMLGraphicsConfiguration
public HTMLGraphicsConfiguration()Create a graphics configuration for the HTML device.
-
-
Method Details
-
getDevice
- Specified by:
getDevicein classGraphicsConfiguration
-
setDevice
Set theHTMLDeviceassociated with thisHTMLGraphicsConfiguration.- Parameters:
htmlDevice- HTMLDevice; a <code>GraphicsDevice</code> object that is associated with thisHTMLGraphicsConfiguration.
-
getColorModel
- Specified by:
getColorModelin classGraphicsConfiguration
-
getColorModel
- Specified by:
getColorModelin classGraphicsConfiguration
-
getDefaultTransform
- Specified by:
getDefaultTransformin classGraphicsConfiguration
-
getNormalizingTransform
- Specified by:
getNormalizingTransformin classGraphicsConfiguration
-
getBounds
- Specified by:
getBoundsin classGraphicsConfiguration
-