Class HtmlGraphicsConfiguration
java.lang.Object
java.awt.GraphicsConfiguration
nl.tudelft.simulation.dsol.web.animation.HtmlGraphicsConfiguration
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) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Rectanglethe bounds, TODO: which should be filled in some way by the window size in the browser.(package private) HtmlDevicetheHtmlDeviceassociated with thisHTMLGraphicsConfiguration.(package private) AffineTransformthe identity AffineTransform. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a graphics configuration for the HTML device. -
Method Summary
Modifier and TypeMethodDescriptiongetColorModel(int transparency) voidsetDevice(HtmlDevice htmlDevice) Set theHtmlDeviceassociated with thisHTMLGraphicsConfiguration.
-
Field Details
-
htmlDevice
HtmlDevice htmlDevicetheHtmlDeviceassociated with thisHTMLGraphicsConfiguration. -
identityTransform
AffineTransform identityTransformthe identity AffineTransform. -
bounds
Rectangle boundsthe bounds, TODO: which should be filled in some way by the window size in the browser.
-
-
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
-