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) HTMLGraphics2Dgraphics2Dthe canvas to draw on.(package private) HTMLGraphicsConfigurationgraphicsConfigurationthe (dummy) configuration to use.(package private) HTMLDevicehtmlDevicethe (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 Graphics2DcreateGraphics(BufferedImage img)Font[]getAllFonts()String[]getAvailableFontFamilyNames()String[]getAvailableFontFamilyNames(Locale l)GraphicsDevicegetDefaultScreenDevice()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:
getScreenDevicesin classGraphicsEnvironment- Throws:
HeadlessException
-
getDefaultScreenDevice
public GraphicsDevice getDefaultScreenDevice() throws HeadlessException
- Specified by:
getDefaultScreenDevicein classGraphicsEnvironment- Throws:
HeadlessException
-
createGraphics
public Graphics2D createGraphics(BufferedImage img)
- Specified by:
createGraphicsin classGraphicsEnvironment
-
getAllFonts
public Font[] getAllFonts()
- Specified by:
getAllFontsin classGraphicsEnvironment
-
getAvailableFontFamilyNames
public String[] getAvailableFontFamilyNames()
- Specified by:
getAvailableFontFamilyNamesin classGraphicsEnvironment
-
getAvailableFontFamilyNames
public String[] getAvailableFontFamilyNames(Locale l)
- Specified by:
getAvailableFontFamilyNamesin classGraphicsEnvironment
-
-