Class HTMLGraphicsEnvironment
- java.lang.Object
-
- java.awt.GraphicsEnvironment
-
- nl.tudelft.simulation.dsol.web.animation.HTMLGraphicsEnvironment
-
public class HTMLGraphicsEnvironment extends GraphicsEnvironment
HTMLGraphicsEnvironment.java.
Copyright (c) 2003-2022 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
-
-
Field Summary
Fields Modifier and Type Field Description (package private) HTMLGraphics2D
graphics2D
the canvas to draw on.(package private) HTMLGraphicsConfiguration
graphicsConfiguration
the (dummy) configuration to use.(package private) HTMLDevice
htmlDevice
the (dummy) device to use in the graphics environment.
-
Constructor Summary
Constructors Constructor Description HTMLGraphicsEnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graphics2D
createGraphics(BufferedImage img)
Font[]
getAllFonts()
String[]
getAvailableFontFamilyNames()
String[]
getAvailableFontFamilyNames(Locale l)
GraphicsDevice
getDefaultScreenDevice()
GraphicsDevice[]
getScreenDevices()
-
Methods inherited from class java.awt.GraphicsEnvironment
getCenterPoint, getLocalGraphicsEnvironment, getMaximumWindowBounds, isHeadless, isHeadlessInstance, preferLocaleFonts, preferProportionalFonts, registerFont
-
-
-
-
Field Detail
-
htmlDevice
HTMLDevice htmlDevice
the (dummy) device to use in the graphics environment.
-
graphics2D
HTMLGraphics2D graphics2D
the canvas to draw on.
-
graphicsConfiguration
HTMLGraphicsConfiguration graphicsConfiguration
the (dummy) configuration to use.
-
-
Method Detail
-
getScreenDevices
public GraphicsDevice[] getScreenDevices() throws HeadlessException
- Specified by:
getScreenDevices
in classGraphicsEnvironment
- Throws:
HeadlessException
-
getDefaultScreenDevice
public GraphicsDevice getDefaultScreenDevice() throws HeadlessException
- Specified by:
getDefaultScreenDevice
in classGraphicsEnvironment
- Throws:
HeadlessException
-
createGraphics
public Graphics2D createGraphics(BufferedImage img)
- Specified by:
createGraphics
in classGraphicsEnvironment
-
getAllFonts
public Font[] getAllFonts()
- Specified by:
getAllFonts
in classGraphicsEnvironment
-
getAvailableFontFamilyNames
public String[] getAvailableFontFamilyNames()
- Specified by:
getAvailableFontFamilyNames
in classGraphicsEnvironment
-
getAvailableFontFamilyNames
public String[] getAvailableFontFamilyNames(Locale l)
- Specified by:
getAvailableFontFamilyNames
in classGraphicsEnvironment
-
-