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-2024 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
Modifier and TypeFieldDescription(package private) Rectangle
the bounds, TODO: which should be filled in some way by the window size in the browser.(package private) HtmlDevice
theHtmlDevice
associated with thisHTMLGraphicsConfiguration
.(package private) AffineTransform
the identity AffineTransform. -
Constructor Summary
ConstructorDescriptionCreate a graphics configuration for the HTML device. -
Method Summary
Modifier and TypeMethodDescriptiongetColorModel
(int transparency) void
setDevice
(HtmlDevice htmlDevice) Set theHtmlDevice
associated with thisHTMLGraphicsConfiguration
.
-
Field Details
-
htmlDevice
HtmlDevice htmlDevicetheHtmlDevice
associated 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:
getDevice
in classGraphicsConfiguration
-
setDevice
Set theHtmlDevice
associated with thisHTMLGraphicsConfiguration
.- Parameters:
htmlDevice
- HTMLDevice; a <code>GraphicsDevice</code> object that is associated with thisHTMLGraphicsConfiguration
.
-
getColorModel
- Specified by:
getColorModel
in classGraphicsConfiguration
-
getColorModel
- Specified by:
getColorModel
in classGraphicsConfiguration
-
getDefaultTransform
- Specified by:
getDefaultTransform
in classGraphicsConfiguration
-
getNormalizingTransform
- Specified by:
getNormalizingTransform
in classGraphicsConfiguration
-
getBounds
- Specified by:
getBounds
in classGraphicsConfiguration
-