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-2020 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
-
-
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
-
-
-
-
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
-
-