Top Description Constructors Methods
com.sun.javafx.tk

public final Class DummyToolkit

extends Toolkit
Class Inheritance
Imports
javafx.geometry.Dimension2D, javafx.scene.image.Image, javafx.scene.input.Dragboard, .InputMethodRequests, .KeyCode, .KeyEvent, .TransferMode, javafx.scene.paint.Color, .ImagePattern, .LinearGradient, .RadialGradient, javafx.scene.shape.PathElement, .SVGPath, .StrokeLineCap, .StrokeLineJoin, .StrokeType, javafx.stage.FileChooser.ExtensionFilter, .Modality, .StageStyle, .Window, java.io.File, .InputStream, java.util.List, .Map, .Set, .Optional, java.util.concurrent.Future, com.sun.glass.ui.CommonDialogs.FileChooserResult, .GlassRobot, com.sun.javafx.embed.HostInterface, com.sun.javafx.geom.Path2D, .Shape, com.sun.javafx.geom.transform.BaseTransform, com.sun.javafx.perf.PerformanceTracker, com.sun.javafx.runtime.async.AsyncOperation, .AsyncOperationListener, com.sun.javafx.scene.text.TextLayoutFactory, com.sun.scenario.DelayedRunnable, com.sun.scenario.animation.AbstractPrimaryTimer, com.sun.scenario.effect.FilterContext, .Filterable

A stubbed out Toolkit that provides no useful implementation. This is used by the build to run the CSS to binary converter. The parser uses PlatformLogger which requires a Toolkit.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
accumulateStrokeBounds(Shape shape, float[] bbox, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit, BaseTransform tx)

Implements abstract com.sun.javafx.tk.Toolkit.accumulateStrokeBounds.

public Future<V>
public boolean
canStartNestedEventLoop()

Implements abstract com.sun.javafx.tk.Toolkit.canStartNestedEventLoop.

Indicates whether a nested event loop can be started from the current thread in the current state.

public PathElement[]
protected Object
protected Object
protected Object
public PerformanceTracker
public PlatformImage
protected Object
public GlassRobot
public Shape
createStrokedShape(Shape shape, StrokeType pgtype, double strokewidth, StrokeLineCap pgcap, StrokeLineJoin pgjoin, float miterLimit, float[] dashArray, float dashOffset)

Implements abstract com.sun.javafx.tk.Toolkit.createStrokedShape.

public Path2D
public Object
public TKStage
public TKStage
public TKStage
createTKStage(Window peerWindow, StageStyle stageStyle, boolean primary, Modality modality, TKStage owner, boolean rtl)

Implements abstract com.sun.javafx.tk.Toolkit.createTKStage.

public void
defer(Runnable runnable)

Implements abstract com.sun.javafx.tk.Toolkit.defer.

public void
public Object
enterNestedEventLoop(Object
the Object that identifies the nested event loop, which must not be null
key
)

Implements abstract com.sun.javafx.tk.Toolkit.enterNestedEventLoop.

Enter a nested event loop and block until the corresponding exitNestedEventLoop call is made.

public void
public void
exitNestedEventLoop(Object
the Object that identifies the nested event loop, which must not be null
key
,
Object
an Object that is returned to the caller of the corresponding enterNestedEventLoop. This may be null.
rval
)

Implements abstract com.sun.javafx.tk.Toolkit.exitNestedEventLoop.

Exit a nested event loop and unblock the caller of the corresponding enterNestedEventLoop.

public Dimension2D
getBestCursorSize(int preferredWidth, int preferredHeight)

Implements abstract com.sun.javafx.tk.Toolkit.getBestCursorSize.

public Map<Object, Object>
public FilterContext
public FontLoader
public int
getKeyCodeForChar(String character, int hint)

Implements abstract com.sun.javafx.tk.Toolkit.getKeyCodeForChar.

public int
public int
public int
public long
public TKClipboard
public PerformanceTracker
public KeyCode
getPlatformShortcutKey()

Overrides com.sun.javafx.tk.Toolkit.getPlatformShortcutKey.

Returns the key code for the key which is commonly used on the corresponding platform as a modifier key in shortcuts.

public Object
public AbstractPrimaryTimer
public int
public ScreenConfigurationAccessor
public List<?>
public TKClipboard
public TKSystemMenu
public TextLayoutFactory
public boolean
imageContains(Object image, float x, float y)

Implements abstract com.sun.javafx.tk.Toolkit.imageContains.

Tests whether the pixel on the given coordinates in the given image is non-empty (not fully transparent).

public boolean
init()

Implements abstract com.sun.javafx.tk.Toolkit.init.

public void
public boolean
public boolean
public Optional<Boolean>
isKeyLocked(KeyCode
the keyCode to check
keyCode
)

Implements abstract com.sun.javafx.tk.Toolkit.isKeyLocked.

Returns the lock state for the given keyCode.

public boolean
public ImageLoader
loadImage(String url, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImage.

public ImageLoader
loadImage(InputStream stream, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImage.

public AsyncOperation
loadImageAsync(AsyncOperationListener<? extends ImageLoader> listener, String url, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImageAsync.

public ImageLoader
public void
public Object
public void
public void
public ScreenConfigurationAccessor
public File
showDirectoryChooser(TKStage ownerWindow, String title, File initialDirectory)

Implements abstract com.sun.javafx.tk.Toolkit.showDirectoryChooser.

public CommonDialogs.FileChooserResult
showFileChooser(TKStage ownerWindow, String title, File initialDirectory, String initialFileName, FileChooserType fileChooserType, List<FileChooser.ExtensionFilter> extensionFilters, FileChooser.ExtensionFilter selectedFilter)

Implements abstract com.sun.javafx.tk.Toolkit.showFileChooser.

public void
startDrag(TKScene scene, Set<TransferMode> tms, TKDragSourceListener l, Dragboard dragboard)

Implements abstract com.sun.javafx.tk.Toolkit.startDrag.

This function is called when a drag originates within a JavaFX application.

public void
startup(Runnable runnable)

Implements abstract com.sun.javafx.tk.Toolkit.startup.

public boolean
strokeContains(Shape shape, double x, double y, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit)

Implements abstract com.sun.javafx.tk.Toolkit.strokeContains.

public Filterable
public void
Inherited from com.sun.javafx.tk.Toolkit:
addPostSceneTkPulseListeneraddSceneTkPulseListeneraddShutdownHookaddStageTkPulseListeneraddTkListenercheckFxUserThreadclampStopOffsetcreateLocalClipboardexitfirePulsegetDefaultImageSmoothgetFxUserThreadgetImageAccessorgetPaintgetPaintAccessorgetThemeNamegetToolkitgetWritableImageAccessorisFxUserThreadisMSAASupportedisSupportedloadMSWindowsLibrariesnotifyLastNestedLoopExitednotifyShutdownHooksnotifyWindowListenersremovePostSceneTkPulseListenerremoveSceneTkPulseListenerremoveShutdownHookremoveStageTkPulseListenerremoveTkListenersetFxUserThreadsetImageAccessorsetLastTkPulseListenersetPaintAccessorsetWritableImageAccessorstopDragtoColor4ftoShadowMode

Constructor Detail

DummyToolkitback to summary
public DummyToolkit()

Method Detail

accumulateStrokeBoundsback to summary
public void accumulateStrokeBounds(Shape shape, float[] bbox, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit, BaseTransform tx)

Implements abstract com.sun.javafx.tk.Toolkit.accumulateStrokeBounds.

Annotations
@Override
addRenderJobback to summary
public Future<V> addRenderJob(RenderJob rj)

Implements abstract com.sun.javafx.tk.Toolkit.addRenderJob.

Annotations
@Override
canStartNestedEventLoopback to summary
public boolean canStartNestedEventLoop()

Implements abstract com.sun.javafx.tk.Toolkit.canStartNestedEventLoop.

Doc from com.sun.javafx.tk.Toolkit.canStartNestedEventLoop.

Indicates whether a nested event loop can be started from the current thread in the current state. A nested event loop can be started from an event handler or from a Runnable passed to Platform.runLater(Runnable). This method must be called on the JavaFX Application thread.

Returns:boolean

true if a nested event loop can be started, and false otherwise.

Annotations
@Override
convertShapeToFXPathback to summary
public PathElement[] convertShapeToFXPath(Object shape)

Implements abstract com.sun.javafx.tk.Toolkit.convertShapeToFXPath.

Annotations
@Override
createColorPaintback to summary
protected Object createColorPaint(Color paint)

Implements abstract com.sun.javafx.tk.Toolkit.createColorPaint.

Annotations
@Override
createImagePatternPaintback to summary
protected Object createImagePatternPaint(ImagePattern paint)

Implements abstract com.sun.javafx.tk.Toolkit.createImagePatternPaint.

Annotations
@Override
createLinearGradientPaintback to summary
protected Object createLinearGradientPaint(LinearGradient paint)

Implements abstract com.sun.javafx.tk.Toolkit.createLinearGradientPaint.

Annotations
@Override
createPerformanceTrackerback to summary
public PerformanceTracker createPerformanceTracker()

Implements abstract com.sun.javafx.tk.Toolkit.createPerformanceTracker.

Annotations
@Override
createPlatformImageback to summary
public PlatformImage createPlatformImage(int w, int h)

Implements abstract com.sun.javafx.tk.Toolkit.createPlatformImage.

Annotations
@Override
createRadialGradientPaintback to summary
protected Object createRadialGradientPaint(RadialGradient paint)

Implements abstract com.sun.javafx.tk.Toolkit.createRadialGradientPaint.

Annotations
@Override
createRobotback to summary
public GlassRobot createRobot()

Implements abstract com.sun.javafx.tk.Toolkit.createRobot.

Annotations
@Override
createStrokedShapeback to summary
public Shape createStrokedShape(Shape shape, StrokeType pgtype, double strokewidth, StrokeLineCap pgcap, StrokeLineJoin pgjoin, float miterLimit, float[] dashArray, float dashOffset)

Implements abstract com.sun.javafx.tk.Toolkit.createStrokedShape.

Annotations
@Override
createSVGPath2Dback to summary
public Path2D createSVGPath2D(SVGPath svgpath)

Implements abstract com.sun.javafx.tk.Toolkit.createSVGPath2D.

Annotations
@Override
createSVGPathObjectback to summary
public Object createSVGPathObject(SVGPath svgpath)

Implements abstract com.sun.javafx.tk.Toolkit.createSVGPathObject.

Annotations
@Override
createTKEmbeddedStageback to summary
public TKStage createTKEmbeddedStage(HostInterface host)

Implements abstract com.sun.javafx.tk.Toolkit.createTKEmbeddedStage.

Annotations
@Override
createTKPopupStageback to summary
public TKStage createTKPopupStage(Window peerWindow, StageStyle popupStyle, TKStage owner)

Implements abstract com.sun.javafx.tk.Toolkit.createTKPopupStage.

Annotations
@Override
createTKStageback to summary
public TKStage createTKStage(Window peerWindow, StageStyle stageStyle, boolean primary, Modality modality, TKStage owner, boolean rtl)

Implements abstract com.sun.javafx.tk.Toolkit.createTKStage.

Annotations
@Override
deferback to summary
public void defer(Runnable runnable)

Implements abstract com.sun.javafx.tk.Toolkit.defer.

Annotations
@Override
enableDropback to summary
public void enableDrop(TKScene s, TKDropTargetListener l)

Implements abstract com.sun.javafx.tk.Toolkit.enableDrop.

Annotations
@Override
enterNestedEventLoopback to summary
public Object enterNestedEventLoop(Object key)

Implements abstract com.sun.javafx.tk.Toolkit.enterNestedEventLoop.

Doc from com.sun.javafx.tk.Toolkit.enterNestedEventLoop.

Enter a nested event loop and block until the corresponding exitNestedEventLoop call is made. The key passed into this method is used to uniquely identify the matched enter/exit pair. This method creates a new nested event loop and blocks until the corresponding exitNestedEventLoop method is called with the same key. The return value of this method will be the rval object supplied to the exitNestedEventLoop method call that unblocks it.

Parameters
key:Object

the Object that identifies the nested event loop, which must not be null

Returns:Object

the value passed into the corresponding call to exitEventLoop

Annotations
@Override
exitAllNestedEventLoopsback to summary
public void exitAllNestedEventLoops()

Implements abstract com.sun.javafx.tk.Toolkit.exitAllNestedEventLoops.

Annotations
@Override
exitNestedEventLoopback to summary
public void exitNestedEventLoop(Object key, Object rval)

Implements abstract com.sun.javafx.tk.Toolkit.exitNestedEventLoop.

Doc from com.sun.javafx.tk.Toolkit.exitNestedEventLoop.

Exit a nested event loop and unblock the caller of the corresponding enterNestedEventLoop. The key passed into this method is used to uniquely identify the matched enter/exit pair. This method causes the nested event loop that was previously created with the key to exit and return control to the caller. If the specified nested event loop is not the inner-most loop then it will not return until all other inner loops also exit.

Parameters
key:Object

the Object that identifies the nested event loop, which must not be null

rval:Object

an Object that is returned to the caller of the corresponding enterNestedEventLoop. This may be null.

Annotations
@Override
getBestCursorSizeback to summary
public Dimension2D getBestCursorSize(int preferredWidth, int preferredHeight)

Implements abstract com.sun.javafx.tk.Toolkit.getBestCursorSize.

Annotations
@Override
getContextMapback to summary
public Map<Object, Object> getContextMap()

Implements abstract com.sun.javafx.tk.Toolkit.getContextMap.

Annotations
@Override
getFilterContextback to summary
public FilterContext getFilterContext(Object config)

Implements abstract com.sun.javafx.tk.Toolkit.getFilterContext.

Annotations
@Override
getFontLoaderback to summary
public FontLoader getFontLoader()

Implements abstract com.sun.javafx.tk.Toolkit.getFontLoader.

Annotations
@Override
getKeyCodeForCharback to summary
public int getKeyCodeForChar(String character, int hint)

Implements abstract com.sun.javafx.tk.Toolkit.getKeyCodeForChar.

Annotations
@Override
getMaximumCursorColorsback to summary
public int getMaximumCursorColors()

Implements abstract com.sun.javafx.tk.Toolkit.getMaximumCursorColors.

Annotations
@Override
getMultiClickMaxXback to summary
public int getMultiClickMaxX()

Implements abstract com.sun.javafx.tk.Toolkit.getMultiClickMaxX.

Annotations
@Override
getMultiClickMaxYback to summary
public int getMultiClickMaxY()

Implements abstract com.sun.javafx.tk.Toolkit.getMultiClickMaxY.

Annotations
@Override
getMultiClickTimeback to summary
public long getMultiClickTime()

Implements abstract com.sun.javafx.tk.Toolkit.getMultiClickTime.

Annotations
@Override
getNamedClipboardback to summary
public TKClipboard getNamedClipboard(String name)

Implements abstract com.sun.javafx.tk.Toolkit.getNamedClipboard.

Annotations
@Override
getPerformanceTrackerback to summary
public PerformanceTracker getPerformanceTracker()

Implements abstract com.sun.javafx.tk.Toolkit.getPerformanceTracker.

Annotations
@Override
getPlatformShortcutKeyback to summary
public KeyCode getPlatformShortcutKey()

Overrides com.sun.javafx.tk.Toolkit.getPlatformShortcutKey.

Doc from com.sun.javafx.tk.Toolkit.getPlatformShortcutKey.

Returns the key code for the key which is commonly used on the corresponding platform as a modifier key in shortcuts. For example it is KeyCode.CONTROL on Windows (Ctrl + C, Ctrl + V ...) and KeyCode.META on MacOS (Cmd + C, Cmd + V ...).

Returns:KeyCode

the key code for shortcut modifier key

Annotations
@Override
getPrimaryScreenback to summary
public Object getPrimaryScreen()

Implements abstract com.sun.javafx.tk.Toolkit.getPrimaryScreen.

Annotations
@Override
getPrimaryTimerback to summary
public AbstractPrimaryTimer getPrimaryTimer()

Implements abstract com.sun.javafx.tk.Toolkit.getPrimaryTimer.

Annotations
@Override
getRefreshRateback to summary
public int getRefreshRate()

Implements abstract com.sun.javafx.tk.Toolkit.getRefreshRate.

Annotations
@Override
getScreenConfigurationAccessorback to summary
public ScreenConfigurationAccessor getScreenConfigurationAccessor()

Implements abstract com.sun.javafx.tk.Toolkit.getScreenConfigurationAccessor.

Annotations
@Override
getScreensback to summary
public List<?> getScreens()

Implements abstract com.sun.javafx.tk.Toolkit.getScreens.

Annotations
@Override
getSystemClipboardback to summary
public TKClipboard getSystemClipboard()

Implements abstract com.sun.javafx.tk.Toolkit.getSystemClipboard.

Annotations
@Override
getSystemMenuback to summary
public TKSystemMenu getSystemMenu()

Implements abstract com.sun.javafx.tk.Toolkit.getSystemMenu.

Annotations
@Override
getTextLayoutFactoryback to summary
public TextLayoutFactory getTextLayoutFactory()

Implements abstract com.sun.javafx.tk.Toolkit.getTextLayoutFactory.

Annotations
@Override
imageContainsback to summary
public boolean imageContains(Object image, float x, float y)

Implements abstract com.sun.javafx.tk.Toolkit.imageContains.

Doc from com.sun.javafx.tk.Toolkit.imageContains.

Tests whether the pixel on the given coordinates in the given image is non-empty (not fully transparent). Return value is not defined for pixels out of the image bounds.

Annotations
@Override
initback to summary
public boolean init()

Implements abstract com.sun.javafx.tk.Toolkit.init.

Annotations
@Override
installInputMethodRequestsback to summary
public void installInputMethodRequests(TKScene scene, InputMethodRequests requests)

Implements abstract com.sun.javafx.tk.Toolkit.installInputMethodRequests.

Annotations
@Override
isBackwardTraversalKeyback to summary
public boolean isBackwardTraversalKey(KeyEvent e)

Implements abstract com.sun.javafx.tk.Toolkit.isBackwardTraversalKey.

Annotations
@Override
isForwardTraversalKeyback to summary
public boolean isForwardTraversalKey(KeyEvent e)

Implements abstract com.sun.javafx.tk.Toolkit.isForwardTraversalKey.

Annotations
@Override
isKeyLockedback to summary
public Optional<Boolean> isKeyLocked(KeyCode keyCode)

Implements abstract com.sun.javafx.tk.Toolkit.isKeyLocked.

Doc from com.sun.javafx.tk.Toolkit.isKeyLocked.

Returns the lock state for the given keyCode.

Parameters
keyCode:KeyCode

the keyCode to check

Returns:Optional<Boolean>

the lock state for the given keyCode.

Annotations
@Override
isNestedLoopRunningback to summary
public boolean isNestedLoopRunning()

Implements abstract com.sun.javafx.tk.Toolkit.isNestedLoopRunning.

Annotations
@Override
loadImageback to summary
public ImageLoader loadImage(String url, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImage.

Annotations
@Override
loadImageback to summary
public ImageLoader loadImage(InputStream stream, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImage.

Annotations
@Override
loadImageAsyncback to summary
public AsyncOperation loadImageAsync(AsyncOperationListener<? extends ImageLoader> listener, String url, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImageAsync.

Annotations
@Override
loadPlatformImageback to summary
public ImageLoader loadPlatformImage(Object platformImage)

Implements abstract com.sun.javafx.tk.Toolkit.loadPlatformImage.

Annotations
@Override
registerDragGestureListenerback to summary
public void registerDragGestureListener(TKScene s, Set<TransferMode> tms, TKDragGestureListener l)

Implements abstract com.sun.javafx.tk.Toolkit.registerDragGestureListener.

Annotations
@Override
renderToImageback to summary
public Object renderToImage(Toolkit.ImageRenderingContext context)

Implements abstract com.sun.javafx.tk.Toolkit.renderToImage.

Annotations
@Override
requestNextPulseback to summary
public void requestNextPulse()

Implements abstract com.sun.javafx.tk.Toolkit.requestNextPulse.

Annotations
@Override
setAnimationRunnableback to summary
public void setAnimationRunnable(DelayedRunnable animationRunnable)

Implements abstract com.sun.javafx.tk.Toolkit.setAnimationRunnable.

Annotations
@Override
setScreenConfigurationListenerback to summary
public ScreenConfigurationAccessor setScreenConfigurationListener(TKScreenConfigurationListener listener)

Implements abstract com.sun.javafx.tk.Toolkit.setScreenConfigurationListener.

Annotations
@Override
showDirectoryChooserback to summary
public File showDirectoryChooser(TKStage ownerWindow, String title, File initialDirectory)

Implements abstract com.sun.javafx.tk.Toolkit.showDirectoryChooser.

Annotations
@Override
showFileChooserback to summary
public CommonDialogs.FileChooserResult showFileChooser(TKStage ownerWindow, String title, File initialDirectory, String initialFileName, FileChooserType fileChooserType, List<FileChooser.ExtensionFilter> extensionFilters, FileChooser.ExtensionFilter selectedFilter)

Implements abstract com.sun.javafx.tk.Toolkit.showFileChooser.

Annotations
@Override
startDragback to summary
public void startDrag(TKScene scene, Set<TransferMode> tms, TKDragSourceListener l, Dragboard dragboard)

Implements abstract com.sun.javafx.tk.Toolkit.startDrag.

Doc from com.sun.javafx.tk.Toolkit.startDrag.

This function is called when a drag originates within a JavaFX application. This means that drags that originate in other applications / from the OS do not call this function. The argument o represents an object used to identify a scene on which the drag has started.

Annotations
@Override
startupback to summary
public void startup(Runnable runnable)

Implements abstract com.sun.javafx.tk.Toolkit.startup.

Annotations
@Override
strokeContainsback to summary
public boolean strokeContains(Shape shape, double x, double y, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit)

Implements abstract com.sun.javafx.tk.Toolkit.strokeContains.

Annotations
@Override
toFilterableback to summary
public Filterable toFilterable(Image img)

Implements abstract com.sun.javafx.tk.Toolkit.toFilterable.

Annotations
@Override
waitForback to summary
public void waitFor(Toolkit.Task t)

Implements abstract com.sun.javafx.tk.Toolkit.waitFor.

Annotations
@Override