Class HTMLToolkit
- java.lang.Object
-
- java.awt.Toolkit
-
- nl.tudelft.simulation.dsol.web.animation.HTMLToolkit
-
public class HTMLToolkit extends Toolkit
HTMLToolkit.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
-
-
Field Summary
-
Fields inherited from class java.awt.Toolkit
desktopProperties, desktopPropsSupport
-
-
Constructor Summary
Constructors Constructor Description HTMLToolkit()
-
Method Summary
-
Methods inherited from class java.awt.Toolkit
addAWTEventListener, addPropertyChangeListener, areExtraMouseButtonsEnabled, createCustomCursor, createDragGestureRecognizer, createImage, getAWTEventListeners, getAWTEventListeners, getBestCursorSize, getDefaultToolkit, getDesktopProperty, getLockingKeyState, getMaximumCursorColors, getMenuShortcutKeyMask, getMenuShortcutKeyMaskEx, getNativeContainer, getPrintJob, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getScreenInsets, getSystemEventQueue, getSystemSelection, initializeDesktopProperties, isAlwaysOnTopSupported, isDynamicLayoutActive, isDynamicLayoutSet, isFrameStateSupported, lazilyLoadDesktopProperty, loadSystemColors, removeAWTEventListener, removePropertyChangeListener, setDesktopProperty, setDynamicLayout, setLockingKeyState
-
-
-
-
Method Detail
-
getScreenSize
public Dimension getScreenSize() throws HeadlessException
- Specified by:
getScreenSize
in classToolkit
- Throws:
HeadlessException
-
getScreenResolution
public int getScreenResolution() throws HeadlessException
- Specified by:
getScreenResolution
in classToolkit
- Throws:
HeadlessException
-
getColorModel
public ColorModel getColorModel() throws HeadlessException
- Specified by:
getColorModel
in classToolkit
- Throws:
HeadlessException
-
getFontList
public String[] getFontList()
- Specified by:
getFontList
in classToolkit
-
getFontMetrics
public FontMetrics getFontMetrics(Font font)
- Specified by:
getFontMetrics
in classToolkit
-
createImage
public Image createImage(String filename)
- Specified by:
createImage
in classToolkit
-
createImage
public Image createImage(URL url)
- Specified by:
createImage
in classToolkit
-
prepareImage
public boolean prepareImage(Image image, int width, int height, ImageObserver observer)
- Specified by:
prepareImage
in classToolkit
-
checkImage
public int checkImage(Image image, int width, int height, ImageObserver observer)
- Specified by:
checkImage
in classToolkit
-
createImage
public Image createImage(ImageProducer producer)
- Specified by:
createImage
in classToolkit
-
createImage
public Image createImage(byte[] imagedata, int imageoffset, int imagelength)
- Specified by:
createImage
in classToolkit
-
getPrintJob
public PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)
- Specified by:
getPrintJob
in classToolkit
-
getSystemClipboard
public Clipboard getSystemClipboard() throws HeadlessException
- Specified by:
getSystemClipboard
in classToolkit
- Throws:
HeadlessException
-
getSystemEventQueueImpl
protected EventQueue getSystemEventQueueImpl()
- Specified by:
getSystemEventQueueImpl
in classToolkit
-
isModalityTypeSupported
public boolean isModalityTypeSupported(Dialog.ModalityType modalityType)
- Specified by:
isModalityTypeSupported
in classToolkit
-
isModalExclusionTypeSupported
public boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)
- Specified by:
isModalExclusionTypeSupported
in classToolkit
-
mapInputMethodHighlight
public Map<TextAttribute,?> mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException
- Specified by:
mapInputMethodHighlight
in classToolkit
- Throws:
HeadlessException
-
-