Package org.opentrafficsim.web.animation
Class HtmlToolkit
java.lang.Object
java.awt.Toolkit
org.opentrafficsim.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
Fields inherited from class java.awt.Toolkit
desktopProperties, desktopPropsSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeep()intcheckImage(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) intprotected EventQueuebooleanisModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType) booleanisModalityTypeSupported(Dialog.ModalityType modalityType) Map<TextAttribute,?> mapInputMethodHighlight(InputMethodHighlight highlight) booleanprepareImage(Image image, int width, int height, ImageObserver observer) voidsync()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
-
Constructor Details
-
HtmlToolkit
public HtmlToolkit()Constructor.
-
-
Method Details
-
getScreenSize
- Specified by:
getScreenSizein classToolkit- Throws:
HeadlessException
-
getScreenResolution
- Specified by:
getScreenResolutionin classToolkit- Throws:
HeadlessException
-
getColorModel
- Specified by:
getColorModelin classToolkit- Throws:
HeadlessException
-
getFontList
- Specified by:
getFontListin classToolkit
-
getFontMetrics
- Specified by:
getFontMetricsin classToolkit
-
sync
public void sync() -
getImage
-
getImage
-
createImage
- Specified by:
createImagein classToolkit
-
createImage
- Specified by:
createImagein classToolkit
-
prepareImage
- Specified by:
prepareImagein classToolkit
-
checkImage
- Specified by:
checkImagein classToolkit
-
createImage
- Specified by:
createImagein classToolkit
-
createImage
- Specified by:
createImagein classToolkit
-
getPrintJob
- Specified by:
getPrintJobin classToolkit
-
beep
public void beep() -
getSystemClipboard
- Specified by:
getSystemClipboardin classToolkit- Throws:
HeadlessException
-
getSystemEventQueueImpl
- Specified by:
getSystemEventQueueImplin classToolkit
-
isModalityTypeSupported
- Specified by:
isModalityTypeSupportedin classToolkit
-
isModalExclusionTypeSupported
- Specified by:
isModalExclusionTypeSupportedin classToolkit
-
mapInputMethodHighlight
public Map<TextAttribute,?> mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException - Specified by:
mapInputMethodHighlightin classToolkit- Throws:
HeadlessException
-