< prev index next >

modules/graphics/src/main/java/com/sun/javafx/tk/DummyToolkit.java

Print this page


   1 /*
   2  * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  44 import javafx.stage.FileChooser.ExtensionFilter;
  45 import javafx.stage.Modality;
  46 import javafx.stage.Stage;
  47 import javafx.stage.StageStyle;
  48 import javafx.stage.Window;
  49 import java.io.File;
  50 import java.io.InputStream;
  51 import java.security.AccessControlContext;
  52 import java.util.List;
  53 import java.util.Map;
  54 import java.util.Set;
  55 import java.util.concurrent.Future;
  56 import com.sun.glass.ui.CommonDialogs.FileChooserResult;
  57 import com.sun.javafx.embed.HostInterface;
  58 import com.sun.javafx.geom.Path2D;
  59 import com.sun.javafx.geom.Shape;
  60 import com.sun.javafx.geom.transform.BaseTransform;
  61 import com.sun.javafx.perf.PerformanceTracker;
  62 import com.sun.javafx.runtime.async.AsyncOperation;
  63 import com.sun.javafx.runtime.async.AsyncOperationListener;
  64 import com.sun.javafx.scene.text.HitInfo;
  65 import com.sun.javafx.scene.text.TextLayoutFactory;
  66 import com.sun.scenario.DelayedRunnable;
  67 import com.sun.scenario.animation.AbstractMasterTimer;
  68 import com.sun.scenario.effect.FilterContext;
  69 import com.sun.scenario.effect.Filterable;
  70 
  71 /**
  72  * A stubbed out Toolkit that provides no useful implementation. This is used
  73  * by the build to run the CSS to binary converter. The parser uses
  74  * PlatformLogger which requires a Toolkit.
  75  *
  76  */
  77 final public class DummyToolkit extends Toolkit {
  78 
  79     @Override
  80     public boolean init() {
  81         return true;
  82     }
  83 
  84     @Override


 231     }
 232 
 233     @Override
 234     public int getKeyCodeForChar(String character) {
 235         throw new UnsupportedOperationException("Not supported yet.");
 236     }
 237 
 238     @Override
 239     public Dimension2D getBestCursorSize(int preferredWidth, int preferredHeight) {
 240         throw new UnsupportedOperationException("Not supported yet.");
 241     }
 242 
 243     @Override
 244     public int getMaximumCursorColors() {
 245         throw new UnsupportedOperationException("Not supported yet.");
 246     }
 247 
 248 
 249     @Override
 250     public PathElement[] convertShapeToFXPath(Object shape) {
 251         throw new UnsupportedOperationException("Not supported yet.");
 252     }
 253 
 254     @Override
 255     public HitInfo convertHitInfoToFX(Object hit) {
 256         throw new UnsupportedOperationException("Not supported yet.");
 257     }
 258 
 259     @Override
 260     public Filterable toFilterable(Image img) {
 261         throw new UnsupportedOperationException("Not supported yet.");
 262     }
 263 
 264     @Override
 265     public FilterContext getFilterContext(Object config) {
 266         throw new UnsupportedOperationException("Not supported yet.");
 267     }
 268 
 269     @Override
 270     public boolean isForwardTraversalKey(KeyEvent e) {
 271         throw new UnsupportedOperationException("Not supported yet.");
 272     }
 273 
 274     @Override
 275     public boolean isBackwardTraversalKey(KeyEvent e) {


   1 /*
   2  * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  44 import javafx.stage.FileChooser.ExtensionFilter;
  45 import javafx.stage.Modality;
  46 import javafx.stage.Stage;
  47 import javafx.stage.StageStyle;
  48 import javafx.stage.Window;
  49 import java.io.File;
  50 import java.io.InputStream;
  51 import java.security.AccessControlContext;
  52 import java.util.List;
  53 import java.util.Map;
  54 import java.util.Set;
  55 import java.util.concurrent.Future;
  56 import com.sun.glass.ui.CommonDialogs.FileChooserResult;
  57 import com.sun.javafx.embed.HostInterface;
  58 import com.sun.javafx.geom.Path2D;
  59 import com.sun.javafx.geom.Shape;
  60 import com.sun.javafx.geom.transform.BaseTransform;
  61 import com.sun.javafx.perf.PerformanceTracker;
  62 import com.sun.javafx.runtime.async.AsyncOperation;
  63 import com.sun.javafx.runtime.async.AsyncOperationListener;

  64 import com.sun.javafx.scene.text.TextLayoutFactory;
  65 import com.sun.scenario.DelayedRunnable;
  66 import com.sun.scenario.animation.AbstractMasterTimer;
  67 import com.sun.scenario.effect.FilterContext;
  68 import com.sun.scenario.effect.Filterable;
  69 
  70 /**
  71  * A stubbed out Toolkit that provides no useful implementation. This is used
  72  * by the build to run the CSS to binary converter. The parser uses
  73  * PlatformLogger which requires a Toolkit.
  74  *
  75  */
  76 final public class DummyToolkit extends Toolkit {
  77 
  78     @Override
  79     public boolean init() {
  80         return true;
  81     }
  82 
  83     @Override


 230     }
 231 
 232     @Override
 233     public int getKeyCodeForChar(String character) {
 234         throw new UnsupportedOperationException("Not supported yet.");
 235     }
 236 
 237     @Override
 238     public Dimension2D getBestCursorSize(int preferredWidth, int preferredHeight) {
 239         throw new UnsupportedOperationException("Not supported yet.");
 240     }
 241 
 242     @Override
 243     public int getMaximumCursorColors() {
 244         throw new UnsupportedOperationException("Not supported yet.");
 245     }
 246 
 247 
 248     @Override
 249     public PathElement[] convertShapeToFXPath(Object shape) {





 250         throw new UnsupportedOperationException("Not supported yet.");
 251     }
 252 
 253     @Override
 254     public Filterable toFilterable(Image img) {
 255         throw new UnsupportedOperationException("Not supported yet.");
 256     }
 257 
 258     @Override
 259     public FilterContext getFilterContext(Object config) {
 260         throw new UnsupportedOperationException("Not supported yet.");
 261     }
 262 
 263     @Override
 264     public boolean isForwardTraversalKey(KeyEvent e) {
 265         throw new UnsupportedOperationException("Not supported yet.");
 266     }
 267 
 268     @Override
 269     public boolean isBackwardTraversalKey(KeyEvent e) {


< prev index next >