Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.javafx.tk;
import javafx.geometry.Dimension2D;
import javafx.scene.image.Image;
import javafx.scene.input.Dragboard;
import javafx.scene.input.InputMethodRequests;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.TransferMode;
import javafx.scene.paint.Color;
import javafx.scene.paint.ImagePattern;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.RadialGradient;
import javafx.scene.shape.PathElement;
import javafx.scene.shape.SVGPath;
import javafx.scene.shape.StrokeLineCap;
import javafx.scene.shape.StrokeLineJoin;
import javafx.scene.shape.StrokeType;
import javafx.stage.FileChooser.ExtensionFilter;
import javafx.stage.Modality;
import javafx.stage.StageStyle;
import javafx.stage.Window;
import java.io.File;
import java.io.InputStream;
import java.security.AccessControlContext;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;
import com.sun.glass.ui.CommonDialogs.FileChooserResult;
import com.sun.glass.ui.GlassRobot;
import com.sun.javafx.embed.HostInterface;
import com.sun.javafx.geom.Path2D;
import com.sun.javafx.geom.Shape;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.perf.PerformanceTracker;
import com.sun.javafx.runtime.async.AsyncOperation;
import com.sun.javafx.runtime.async.AsyncOperationListener;
import com.sun.javafx.scene.text.TextLayoutFactory;
import com.sun.scenario.DelayedRunnable;
import com.sun.scenario.animation.AbstractPrimaryTimer;
import com.sun.scenario.effect.FilterContext;
import com.sun.scenario.effect.Filterable;
import java.util.Optional;
/**
* 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.
*
*/
final public class DummyToolkit extends Toolkit {
@Override
public boolean init() {
return true;
}
@Override
public boolean canStartNestedEventLoop() {
return false;
}
@Override
public Object enterNestedEventLoop(Object key) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void exitNestedEventLoop(Object key, Object rval) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void exitAllNestedEventLoops() {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public TKStage createTKStage(Window peerWindow, boolean securityDialog, StageStyle stageStyle, boolean primary, Modality modality, TKStage owner, boolean rtl, @SuppressWarnings("removal") AccessControlContext acc) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public TKStage createTKPopupStage(Window peerWindow, StageStyle popupStyle, TKStage owner, @SuppressWarnings("removal") AccessControlContext acc) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public TKStage createTKEmbeddedStage(HostInterface host, @SuppressWarnings("removal") AccessControlContext acc) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public TKSystemMenu getSystemMenu() {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public ImageLoader loadImage(String url, double width, double height, boolean preserveRatio, boolean smooth) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public ImageLoader loadImage(InputStream stream, double width, double height, boolean preserveRatio, boolean smooth) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public AsyncOperation loadImageAsync(AsyncOperationListener extends ImageLoader> listener, String url, double width, double height, boolean preserveRatio, boolean smooth) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public ImageLoader loadPlatformImage(Object platformImage) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public PlatformImage createPlatformImage(int w, int h) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void startup(Runnable runnable) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void defer(Runnable runnable) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public Future addRenderJob(RenderJob rj) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public Map