public final class DummyToolkit extends Toolkit
Toolkit.ImageAccessor, Toolkit.ImageRenderingContext, Toolkit.PaintAccessor, Toolkit.Task, Toolkit.WritableImageAccessor
Constructor and Description |
---|
DummyToolkit() |
addPostSceneTkPulseListener, addSceneTkPulseListener, addShutdownHook, addStageTkPulseListener, addTkListener, checkFxUserThread, clampStopOffset, createLocalClipboard, exit, firePulse, getDefaultImageSmooth, getFxUserThread, getHighlightedRegions, getImageAccessor, getInputStream, getPaint, getPaintAccessor, getThemeName, getToolkit, getWritableImageAccessor, isFxUserThread, isMSAASupported, isSupported, loadMSWindowsLibraries, notifyLastNestedLoopExited, notifyShutdownHooks, notifyWindowListeners, pauseCurrentThread, pauseScenes, removePostSceneTkPulseListener, removeSceneTkPulseListener, removeShutdownHook, removeStageTkPulseListener, removeTkListener, resumeScenes, setFxUserThread, setImageAccessor, setLastTkPulseListener, setPaintAccessor, setWritableImageAccessor, stopDrag, toColor4f, toShadowMode
public boolean canStartNestedEventLoop()
Toolkit
canStartNestedEventLoop
in class Toolkit
public Object enterNestedEventLoop(Object key)
Toolkit
rval
object supplied to the exitNestedEventLoop method call that unblocks it.enterNestedEventLoop
in class Toolkit
key
- the Object that identifies the nested event loop, which
must not be nullpublic void exitNestedEventLoop(Object key, Object rval)
Toolkit
exitNestedEventLoop
in class Toolkit
key
- the Object that identifies the nested event loop, which
must not be nullrval
- an Object that is returned to the caller of the
corresponding enterNestedEventLoop. This may be null.public TKStage createTKStage(Window peerWindow, boolean securityDialog, StageStyle stageStyle, boolean primary, Modality modality, TKStage owner, boolean rtl, AccessControlContext acc)
createTKStage
in class Toolkit
public TKStage createTKPopupStage(Window peerWindow, StageStyle popupStyle, TKStage owner, AccessControlContext acc)
createTKPopupStage
in class Toolkit
public TKStage createTKEmbeddedStage(HostInterface host, AccessControlContext acc)
createTKEmbeddedStage
in class Toolkit
public AppletWindow createAppletWindow(long parent, String serverName)
Toolkit
createAppletWindow
in class Toolkit
parent
- the native parent which will contain the primary stage
window(s). Used on Windows/Linux platforms.serverName
- the name of CARemoteLayerServer which
will be used to register native layer. Used on Mac platform.public void closeAppletWindow()
Toolkit
closeAppletWindow
in class Toolkit
public TKSystemMenu getSystemMenu()
getSystemMenu
in class Toolkit
public ImageLoader loadImage(String url, int width, int height, boolean preserveRatio, boolean smooth)
public ImageLoader loadImage(InputStream stream, int width, int height, boolean preserveRatio, boolean smooth)
public AsyncOperation loadImageAsync(AsyncOperationListener<? extends ImageLoader> listener, String url, int width, int height, boolean preserveRatio, boolean smooth)
loadImageAsync
in class Toolkit
public ImageLoader loadPlatformImage(Object platformImage)
loadPlatformImage
in class Toolkit
public PlatformImage createPlatformImage(int w, int h)
createPlatformImage
in class Toolkit
public Future addRenderJob(RenderJob rj)
addRenderJob
in class Toolkit
public Map<Object,Object> getContextMap()
getContextMap
in class Toolkit
public int getRefreshRate()
getRefreshRate
in class Toolkit
public void setAnimationRunnable(DelayedRunnable animationRunnable)
setAnimationRunnable
in class Toolkit
public PerformanceTracker getPerformanceTracker()
getPerformanceTracker
in class Toolkit
public PerformanceTracker createPerformanceTracker()
createPerformanceTracker
in class Toolkit
public void waitFor(Toolkit.Task t)
protected Object createColorPaint(Color paint)
createColorPaint
in class Toolkit
protected Object createLinearGradientPaint(LinearGradient paint)
createLinearGradientPaint
in class Toolkit
protected Object createRadialGradientPaint(RadialGradient paint)
createRadialGradientPaint
in class Toolkit
protected Object createImagePatternPaint(ImagePattern paint)
createImagePatternPaint
in class Toolkit
public void accumulateStrokeBounds(Shape shape, float[] bbox, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit, BaseTransform tx)
accumulateStrokeBounds
in class Toolkit
public boolean strokeContains(Shape shape, double x, double y, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit)
strokeContains
in class Toolkit
public Shape createStrokedShape(Shape shape, StrokeType pgtype, double strokewidth, StrokeLineCap pgcap, StrokeLineJoin pgjoin, float miterLimit, float[] dashArray, float dashOffset)
createStrokedShape
in class Toolkit
public int getKeyCodeForChar(String character)
getKeyCodeForChar
in class Toolkit
public Dimension2D getBestCursorSize(int preferredWidth, int preferredHeight)
getBestCursorSize
in class Toolkit
public int getMaximumCursorColors()
getMaximumCursorColors
in class Toolkit
public PathElement[] convertShapeToFXPath(Object shape)
convertShapeToFXPath
in class Toolkit
public HitInfo convertHitInfoToFX(Object hit)
convertHitInfoToFX
in class Toolkit
public Filterable toFilterable(Image img)
toFilterable
in class Toolkit
public FilterContext getFilterContext(Object config)
getFilterContext
in class Toolkit
public boolean isForwardTraversalKey(KeyEvent e)
isForwardTraversalKey
in class Toolkit
public boolean isBackwardTraversalKey(KeyEvent e)
isBackwardTraversalKey
in class Toolkit
public boolean isNestedLoopRunning()
isNestedLoopRunning
in class Toolkit
public AbstractMasterTimer getMasterTimer()
getMasterTimer
in class Toolkit
public FontLoader getFontLoader()
getFontLoader
in class Toolkit
public TextLayoutFactory getTextLayoutFactory()
getTextLayoutFactory
in class Toolkit
public Object createSVGPathObject(SVGPath svgpath)
createSVGPathObject
in class Toolkit
public Path2D createSVGPath2D(SVGPath svgpath)
createSVGPath2D
in class Toolkit
public boolean imageContains(Object image, float x, float y)
Toolkit
imageContains
in class Toolkit
public TKClipboard getSystemClipboard()
getSystemClipboard
in class Toolkit
public TKClipboard getNamedClipboard(String name)
getNamedClipboard
in class Toolkit
public ScreenConfigurationAccessor setScreenConfigurationListener(TKScreenConfigurationListener listener)
setScreenConfigurationListener
in class Toolkit
public Object getPrimaryScreen()
getPrimaryScreen
in class Toolkit
public List<?> getScreens()
getScreens
in class Toolkit
public ScreenConfigurationAccessor getScreenConfigurationAccessor()
getScreenConfigurationAccessor
in class Toolkit
public void registerDragGestureListener(TKScene s, Set<TransferMode> tms, TKDragGestureListener l)
registerDragGestureListener
in class Toolkit
public void startDrag(TKScene scene, Set<TransferMode> tms, TKDragSourceListener l, Dragboard dragboard)
Toolkit
public void enableDrop(TKScene s, TKDropTargetListener l)
enableDrop
in class Toolkit
public void installInputMethodRequests(TKScene scene, InputMethodRequests requests)
installInputMethodRequests
in class Toolkit
public Object renderToImage(Toolkit.ImageRenderingContext context)
renderToImage
in class Toolkit
public KeyCode getPlatformShortcutKey()
Toolkit
KeyCode.CONTROL
on Windows (Ctrl + C, Ctrl + V ...) and
KeyCode.META
on MacOS (Cmd + C, Cmd + V ...).getPlatformShortcutKey
in class Toolkit
public CommonDialogs.FileChooserResult showFileChooser(TKStage ownerWindow, String title, File initialDirectory, String initialFileName, FileChooserType fileChooserType, List<FileChooser.ExtensionFilter> extensionFilters, FileChooser.ExtensionFilter selectedFilter)
showFileChooser
in class Toolkit
public File showDirectoryChooser(TKStage ownerWindow, String title, File initialDirectory)
showDirectoryChooser
in class Toolkit
public long getMultiClickTime()
getMultiClickTime
in class Toolkit
public int getMultiClickMaxX()
getMultiClickMaxX
in class Toolkit
public int getMultiClickMaxY()
getMultiClickMaxY
in class Toolkit
public void requestNextPulse()
requestNextPulse
in class Toolkit
Copyright © 2020. All rights reserved.