Class HtmlToolkit
java.lang.Object
java.awt.Toolkit
nl.tudelft.simulation.dsol.web.animation.HtmlToolkit
HTMLToolkit.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) EventQueue
the queue of AWT events to process.Fields inherited from class java.awt.Toolkit
desktopProperties, desktopPropsSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beep()
int
checkImage
(Image image, int width, int height, ImageObserver observer) createImage
(byte[] imagedata, int imageoffset, int imagelength) createImage
(ImageProducer producer) createImage
(String filename) createImage
(URL url) String[]
getFontMetrics
(Font font) getPrintJob
(Frame frame, String jobtitle, Properties props) int
protected EventQueue
boolean
isModalExclusionTypeSupported
(Dialog.ModalExclusionType modalExclusionType) boolean
isModalityTypeSupported
(Dialog.ModalityType modalityType) Map<TextAttribute,
?> mapInputMethodHighlight
(InputMethodHighlight highlight) boolean
prepareImage
(Image image, int width, int height, ImageObserver observer) void
sync()
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
-
Field Details
-
eventQueue
EventQueue eventQueuethe queue of AWT events to process.
-
-
Constructor Details
-
HtmlToolkit
public HtmlToolkit()
-
-
Method Details
-
getScreenSize
- Specified by:
getScreenSize
in classToolkit
- Throws:
HeadlessException
-
getScreenResolution
- Specified by:
getScreenResolution
in classToolkit
- Throws:
HeadlessException
-
getColorModel
- Specified by:
getColorModel
in classToolkit
- Throws:
HeadlessException
-
getFontList
- Specified by:
getFontList
in classToolkit
-
getFontMetrics
- Specified by:
getFontMetrics
in classToolkit
-
sync
public void sync() -
getImage
-
getImage
-
createImage
- Specified by:
createImage
in classToolkit
-
createImage
- Specified by:
createImage
in classToolkit
-
prepareImage
- Specified by:
prepareImage
in classToolkit
-
checkImage
- Specified by:
checkImage
in classToolkit
-
createImage
- Specified by:
createImage
in classToolkit
-
createImage
- Specified by:
createImage
in classToolkit
-
getPrintJob
- Specified by:
getPrintJob
in classToolkit
-
beep
public void beep() -
getSystemClipboard
- Specified by:
getSystemClipboard
in classToolkit
- Throws:
HeadlessException
-
getSystemEventQueueImpl
- Specified by:
getSystemEventQueueImpl
in classToolkit
-
isModalityTypeSupported
- Specified by:
isModalityTypeSupported
in classToolkit
-
isModalExclusionTypeSupported
- Specified by:
isModalExclusionTypeSupported
in classToolkit
-
mapInputMethodHighlight
public Map<TextAttribute,?> mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException - Specified by:
mapInputMethodHighlight
in classToolkit
- Throws:
HeadlessException
-