Class HtmlGraphicsEnvironment
java.lang.Object
java.awt.GraphicsEnvironment
nl.tudelft.simulation.dsol.web.animation.HtmlGraphicsEnvironment
HTMLGraphicsEnvironment.java.
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) HtmlGraphics2d
the canvas to draw on.(package private) HtmlGraphicsConfiguration
the (dummy) configuration to use.(package private) HtmlDevice
the (dummy) device to use in the graphics environment. -
Constructor Summary
-
Method Summary
Methods inherited from class java.awt.GraphicsEnvironment
getCenterPoint, getLocalGraphicsEnvironment, getMaximumWindowBounds, isHeadless, isHeadlessInstance, preferLocaleFonts, preferProportionalFonts, registerFont
-
Field Details
-
htmlDevice
HtmlDevice htmlDevicethe (dummy) device to use in the graphics environment. -
graphics2D
HtmlGraphics2d graphics2Dthe canvas to draw on. -
graphicsConfiguration
HtmlGraphicsConfiguration graphicsConfigurationthe (dummy) configuration to use.
-
-
Constructor Details
-
HtmlGraphicsEnvironment
public HtmlGraphicsEnvironment()
-
-
Method Details
-
getScreenDevices
- Specified by:
getScreenDevices
in classGraphicsEnvironment
- Throws:
HeadlessException
-
getDefaultScreenDevice
- Specified by:
getDefaultScreenDevice
in classGraphicsEnvironment
- Throws:
HeadlessException
-
createGraphics
- Specified by:
createGraphics
in classGraphicsEnvironment
-
getAllFonts
- Specified by:
getAllFonts
in classGraphicsEnvironment
-
getAvailableFontFamilyNames
- Specified by:
getAvailableFontFamilyNames
in classGraphicsEnvironment
-
getAvailableFontFamilyNames
- Specified by:
getAvailableFontFamilyNames
in classGraphicsEnvironment
-