jfxrt

 {
    VersionInfo.setupSystemProperties();
    return null;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit.3
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk;

import com.sun.scenario.ToolkitAccessor;
import com.sun.scenario.animation.AbstractMasterTimer;
import java.util.Map;

class Toolkit$4
  extends ToolkitAccessor
{
  Toolkit$4(Toolkit paramToolkit) {}
  
  public Map<Object, Object> getContextMapImpl()
  {
    return this$0.getContextMap();
  }
  
  public AbstractMasterTimer getMasterTimerImpl()
  {
    return this$0.getMasterTimer();
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit.4
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk;

class Toolkit$5 {}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit.5
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk;

import com.sun.javafx.geom.CameraImpl;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.sg.PGNode;

public class Toolkit$ImageRenderingContext
{
  public PGNode root;
  public int x;
  public int y;
  public int width;
  public int height;
  public BaseTransform transform;
  public boolean depthBuffer;
  public Object platformPaint;
  public CameraImpl camera;
  public Object platformImage;
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit.ImageRenderingContext
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk;

public abstract interface Toolkit$SceneAccessor
{
  public abstract void setPaused(boolean paramBoolean);
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit.SceneAccessor
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk;

public abstract interface Toolkit$Task
{
  public abstract boolean isFinished();
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit.Task
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk;

import javafx.scene.image.WritableImage;

public abstract interface Toolkit$WritableImageAccessor
{
  public abstract void loadTkImage(WritableImage paramWritableImage, Object paramObject);
  
  public abstract Object getTkImageLoader(WritableImage paramWritableImage);
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit.WritableImageAccessor
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk;

import com.sun.javafx.PlatformUtil;
import com.sun.javafx.embed.HostInterface;
import com.sun.javafx.geom.CameraImpl;
import com.sun.javafx.geom.ParallelCameraImpl;
import com.sun.javafx.geom.Path2D;
import com.sun.javafx.geom.PerspectiveCameraImpl;
import com.sun.javafx.geom.Shape;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.jmx.HighlightRegion;
import com.sun.javafx.logging.PlatformLogger;
import com.sun.javafx.perf.PerformanceTracker;
import com.sun.javafx.runtime.NativeLibLoader;
import com.sun.javafx.runtime.VersionInfo;
import com.sun.javafx.runtime.async.AsyncOperation;
import com.sun.javafx.runtime.async.AsyncOperationListener;
import com.sun.javafx.scene.text.HitInfo;
import com.sun.javafx.sg.PGArc;
import com.sun.javafx.sg.PGCanvas;
import com.sun.javafx.sg.PGCircle;
import com.sun.javafx.sg.PGCubicCurve;
import com.sun.javafx.sg.PGEllipse;
import com.sun.javafx.sg.PGGroup;
import com.sun.javafx.sg.PGImageView;
import com.sun.javafx.sg.PGLine;
import com.sun.javafx.sg.PGMediaView;
import com.sun.javafx.sg.PGNode;
import com.sun.javafx.sg.PGPath;
import com.sun.javafx.sg.PGPolygon;
import com.sun.javafx.sg.PGPolyline;
import com.sun.javafx.sg.PGQuadCurve;
import com.sun.javafx.sg.PGRectangle;
import com.sun.javafx.sg.PGRegion;
import com.sun.javafx.sg.PGSVGPath;
import com.sun.javafx.sg.PGShape.StrokeLineCap;
import com.sun.javafx.sg.PGShape.StrokeLineJoin;
import com.sun.javafx.sg.PGShape.StrokeType;
import com.sun.javafx.sg.PGText;
import com.sun.scenario.DelayedRunnable;
import com.sun.scenario.ToolkitAccessor;
import com.sun.scenario.animation.AbstractMasterTimer;
import com.sun.scenario.effect.AbstractShadow.ShadowMode;
import com.sun.scenario.effect.Color4f;
import com.sun.scenario.effect.FilterContext;
import com.sun.scenario.effect.Filterable;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
import java.util.concurrent.CountDownLatch;
import javafx.application.ConditionalFeature;
import javafx.geometry.Dimension2D;
import javafx.scene.Scene;
import javafx.scene.effect.BlurType;
import javafx.scene.image.Image;
import javafx.scene.image.WritableImage;
import javafx.scene.input.DragEvent;
import javafx.scene.input.Dragboard;
import javafx.scene.input.InputMethodEvent;
import javafx.scene.input.InputMethodRequests;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.input.TransferMode;
import javafx.scene.paint.Color;
import javafx.scene.paint.ImagePattern;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Paint;
import javafx.scene.paint.RadialGradient;
import javafx.scene.paint.Stop;
import javafx.scene.shape.PathElement;
import javafx.scene.shape.SVGPath;
import javafx.stage.FileChooser.ExtensionFilter;
import javafx.stage.Modality;
import javafx.stage.StageStyle;
import javafx.stage.Window;

public abstract class Toolkit
{
  private static String tk;
  private static Toolkit TOOLKIT;
  private static Thread fxUserThread = null;
  private static final String QUANTUM_TOOLKIT = "com.sun.javafx.tk.quantum.QuantumToolkit";
  private static final String DEFAULT_TOOLKIT = "com.sun.javafx.tk.quantum.QuantumToolkit";
  protected static Map gradientMap = new WeakHashMap();
  private final Map<TKPulseListener, Object> stagePulseListeners = new WeakHashMap();
  private final Map<TKPulseListener, Object> scenePulseListeners = new WeakHashMap();
  private final Map<TKPulseListener, Object> postScenePulseListeners = new WeakHashMap();
  private final Map<TKListener, Object> toolkitListeners = new WeakHashMap();
  private final Set<Runnable> shutdownHooks = new HashSet();
  private final ArrayList<TKPulseListener> stagePulseList = new ArrayList();
  private final ArrayList<TKPulseListener> scenePulseList = new ArrayList();
  private final ArrayList<TKPulseListener> postScenePulseList = new ArrayList();
  private TKPulseListener lastTkPulseListener = null;
  private CountDownLatch pauseScenesLatch = null;
  private Set<HighlightRegion> highlightRegions;
  private static SceneAccessor sceneAccessor = null;
  private static WritableImageAccessor writableImageAccessor = null;
  
  private static String lookupToolkitClass(String paramString)
  {
    if ("prism".equalsIgnoreCase(paramString)) {
      return "com.sun.javafx.tk.quantum.QuantumToolkit";
    }
    if ("quantum".equalsIgnoreCase(paramString)) {
      return "com.sun.javafx.tk.quantum.QuantumToolkit";
    }
    return paramString;
  }
  
  private static String getDefaultToolkit()
  {
    if (PlatformUtil.isWindows()) {
      return "com.sun.javafx.tk.quantum.QuantumToolkit";
    }
    if (PlatformUtil.isMac()) {
      return "com.sun.javafx.tk.quantum.QuantumToolkit";
    }
    if (PlatformUtil.isLinux()) {
      return "com.sun.javafx.tk.quantum.QuantumToolkit";
    }
    throw new UnsupportedOperationException(System.getProperty("os.name") + " is not supported");
  }
  
  public static synchronized Toolkit getToolkit()
  {
    if (TOOLKIT != null) {
      return TOOLKIT;
    }
    boolean bool = ((Boolean)AccessController.doPrivileged(new PrivilegedAction()
    {
      public Boolean run()
      {
        return Boolean.valueOf(Boolean.getBoolean("javafx.verbose"));
      }
    })).booleanValue();
    if (PlatformUtil.isWindows()) {
      AccessController.doPrivileged(new PrivilegedAction()
      {
        public Object run()
        {
          try
          {
            NativeLibLoader.loadLibrary("msvcr100");
          }
          catch (Throwable localThrowable)
          {
            if (val$verbose) {
              System.err.println("Error: failed to load msvcr100.dll : " + localThrowable);
            }
          }
          return null;
        }
      });
    }
    AccessController.doPrivileged(new PrivilegedAction()
    {
      public Object run()
      {
        VersionInfo.setupSystemProperties();
        return null;
      }
    });
    int i = 1;
    String str = null;
    try
    {
      str = System.getProperty("javafx.toolkit");
    }
    catch (SecurityException localSecurityException) {}
    if (str == null) {
      str = tk;
    }
    if (str == null)
    {
      i = 0;
      str = getDefaultToolkit();
    }
    if (str.indexOf('.') == -1) {
      str = lookupToolkitClass(str);
    }
    int j = (bool) || ((i != 0) && (!str.endsWith("StubToolkit"))) ? 1 : 0;
    try
    {
      TOOLKIT = (Toolkit)Class.forName(str).newInstance();
      if (TOOLKIT.init())
      {
        if (j != 0) {
          System.err.println("JavaFX: using " + str);
        }
        return TOOLKIT;
      }
      TOOLKIT = null;
    }
    catch (Exception localException)
    {
      TOOLKIT = null;
      localException.printStackTrace();
    }
    throw new RuntimeException("No toolkit found");
  }
  
  protected static Thread getFxUserThread()
  {
    return fxUserThread;
  }
  
  protected static void setFxUserThread(Thread paramThread)
  {
    if (fxUserThread != null) {
      throw new IllegalStateException("Error: FX User Thread already initialized");
    }
    fxUserThread = paramThread;
  }
  
  public void checkFxUserThread()
  {
    if (!isFxUserThread()) {
      throw new IllegalStateException("Not on FX application thread; currentThread = " + Thread.currentThread().getName());
    }
  }
  
  public boolean isFxUserThread()
  {
    return Thread.currentThread() == fxUserThread;
  }
  
  protected Toolkit()
  {
    ToolkitAccessor.setInstance(new ToolkitAccessor()
    {
      public Map<Object, Object> getContextMapImpl()
      {
        return getContextMap();
      }
      
      public AbstractMasterTimer getMasterTimerImpl()
      {
        return getMasterTimer();
      }
    });
  }
  
  public PlatformLogger getLogger(String paramString)
  {
    return PlatformLogger.getLogger(paramString);
  }
  
  public abstract boolean init();
  
  public abstract Object enterNestedEventLoop(Object paramObject);
  
  public abstract void exitNestedEventLoop(Object paramObject1, Object paramObject2);
  
  public abstract TKStage createTKStage(StageStyle paramStageStyle);
  
  public abstract TKStage createTKStage(StageStyle paramStageStyle, boolean paramBoolean, Modality paramModality, TKStage paramTKStage);
  
  public abstract TKStage createTKPopupStage(StageStyle paramStageStyle, Object paramObject);
  
  public abstract TKStage createTKEmbeddedStage(HostInterface paramHostInterface);
  
  public void firePulse()
  {
    try
    {
      synchronized (this)
      {
        stagePulseList.addAll(stagePulseListeners.keySet());
        scenePulseList.addAll(scenePulseListeners.keySet());
        postScenePulseList.addAll(postScenePulseListeners.keySet());
      }
      ??? = stagePulseList.iterator();
      TKPulseListener localTKPulseListener;
      while (((Iterator)???).hasNext())
      {
        localTKPulseListener = (TKPulseListener)((Iterator)???).next();
        localTKPulseListener.pulse();
      }
      ??? = scenePulseList.iterator();
      while (((Iterator)???).hasNext())
      {
        localTKPulseListener = (TKPulseListener)((Iterator)???).next();
        localTKPulseListener.pulse();
      }
      ??? = postScenePulseList.iterator();
      while (((Iterator)???).hasNext())
      {
        localTKPulseListener = (TKPulseListener)((Iterator)???).next();
        localTKPulseListener.pulse();
      }
      if (lastTkPulseListener != null) {
        lastTkPulseListener.pulse();
      }
    }
    finally
    {
      stagePulseList.clear();
      scenePulseList.clear();
      postScenePulseList.clear();
    }
  }
  
  public void addStageTkPulseListener(TKPulseListener paramTKPulseListener)
  {
    synchronized (this)
    {
      stagePulseListeners.put(paramTKPulseListener, null);
    }
  }
  
  public void removeStageTkPulseListener(TKPulseListener paramTKPulseListener)
  {
    synchronized (this)
    {
      stagePulseListeners.remove(paramTKPulseListener);
    }
  }
  
  public void addSceneTkPulseListener(TKPulseListener paramTKPulseListener)
  {
    synchronized (this)
    {
      scenePulseListeners.put(paramTKPulseListener, null);
    }
  }
  
  public void removeSceneTkPulseListener(TKPulseListener paramTKPulseListener)
  {
    synchronized (this)
    {
      scenePulseListeners.remove(paramTKPulseListener);
    }
  }
  
  public void addPostSceneTkPulseListener(TKPulseListener paramTKPulseListener)
  {
    synchronized (this)
    {
      postScenePulseListeners.put(paramTKPulseListener, null);
    }
  }
  
  public void removePostSceneTkPulseListener(TKPulseListener paramTKPulseListener)
  {
    synchronized (this)
    {
      postScenePulseListeners.remove(paramTKPulseListener);
    }
  }
  
  public void addTkListener(TKListener paramTKListener)
  {
    toolkitListeners.put(paramTKListener, null);
  }
  
  public void removeTkListener(TKListener paramTKListener)
  {
    toolkitListeners.remove(paramTKListener);
  }
  
  public void setLastTkPulseListener(TKPulseListener paramTKPulseListener)
  {
    lastTkPulseListener = paramTKPulseListener;
  }
  
  public void addShutdownHook(Runnable paramRunnable)
  {
    synchronized (shutdownHooks)
    {
      shutdownHooks.add(paramRunnable);
    }
  }
  
  public void removeShutdownHook(Runnable paramRunnable)
  {
    synchronized (shutdownHooks)
    {
      shutdownHooks.remove(paramRunnable);
    }
  }
  
  protected void notifyShutdownHooks()
  {
    ArrayList localArrayList;
    synchronized (shutdownHooks)
    {
      localArrayList = new ArrayList(shutdownHooks);
      shutdownHooks.clear();
    }
    ??? = localArrayList.iterator();
    while (((Iterator)???).hasNext())
    {
      Runnable localRunnable = (Runnable)((Iterator)???).next();
      localRunnable.run();
    }
  }
  
  public void notifyWindowListeners(List<TKStage> paramList)
  {
    Iterator localIterator = toolkitListeners.keySet().iterator();
    while (localIterator.hasNext())
    {
      TKListener localTKListener = (TKListener)localIterator.next();
      localTKListener.changedTopLevelWindows(paramList);
    }
  }
  
  @Deprecated
  public void triggerNextPulse()
  {
    getMasterTimer().notifyJobsReady();
  }
  
  public abstract void requestNextPulse();
  
  public InputStream getInputStream(String paramString, Class paramClass)
    throws IOException
  {
    return (paramString.startsWith("http:")) || (paramString.startsWith("https:")) || (paramString.startsWith("file:")) || (paramString.startsWith("jar:")) ? new URL(paramString).openStream() : paramClass.getResource(paramString).openStream();
  }
  
  public abstract ImageLoader loadImage(String paramString, int paramInt1, int paramInt2, boolean paramBoolean1, boolean paramBoolean2);
  
  public abstract ImageLoader loadImage(InputStream paramInputStream, int paramInt1, int paramInt2, boolean paramBoolean1, boolean paramBoolean2);
  
  public abstract AsyncOperation loadImageAsync(AsyncOperationListener<? extends ImageLoader> paramAsyncOperationListener, String paramString, int paramInt1, int paramInt2, boolean paramBoolean1, boolean paramBoolean2);
  
  public abstract ImageLoader loadPlatformImage(Object paramObject);
  
  public abstract PlatformImage createPlatformImage(int paramInt1, int paramInt2);
  
  public boolean getDefaultImageSmooth()
  {
    return true;
  }
  
  public abstract void startup(Runnable paramRunnable);
  
  public abstract void defer(Runnable paramRunnable);
  
  public void exit()
  {
    fxUserThread = null;
  }
  
  public abstract Map<Object, Object> getContextMap();
  
  public abstract int getRefreshRate();
  
  public abstract void setAnimationRunnable(DelayedRunnable paramDelayedRunnable);
  
  public abstract PerformanceTracker getPerformanceTracker();
  
  public abstract PerformanceTracker createPerformanceTracker();
  
  public abstract void waitFor(Task paramTask);
  
  public abstract PerspectiveCameraImpl createPerspectiveCamera();
  
  public abstract ParallelCameraImpl createParallelCamera();
  
  private Object checkSingleColor(List<Stop> paramList)
  {
    if (paramList.size() == 2)
    {
      Color localColor = ((Stop)paramList.get(0)).getColor();
      if (localColor.equals(((Stop)paramList.get(1)).getColor())) {
        return localColor.impl_getPlatformPaint();
      }
    }
    return null;
  }
  
  private Object getPaint(LinearGradient paramLinearGradient)
  {
    Object localObject = gradientMap.get(paramLinearGradient);
    if (localObject != null) {
      return localObject;
    }
    localObject = checkSingleColor(paramLinearGradient.getStops());
    if (localObject == null) {
      localObject = createLinearGradientPaint(paramLinearGradient);
    }
    gradientMap.put(paramLinearGradient, localObject);
    return localObject;
  }
  
  private Object getPaint(RadialGradient paramRadialGradient)
  {
    Object localObject = gradientMap.get(paramRadialGradient);
    if (localObject != null) {
      return localObject;
    }
    localObject = checkSingleColor(paramRadialGradient.getStops());
    if (localObject == null) {
      localObject = createRadialGradientPaint(paramRadialGradient);
    }
    gradientMap.put(paramRadialGradient, localObject);
    return localObject;
  }
  
  public Object getPaint(Paint paramPaint)
  {
    if ((paramPaint instanceof Color)) {
      return createColorPaint((Color)paramPaint);
    }
    if ((paramPaint instanceof LinearGradient)) {
      return getPaint((LinearGradient)paramPaint);
    }
    if ((paramPaint instanceof RadialGradient)) {
      return getPaint((RadialGradient)paramPaint);
    }
    if ((paramPaint instanceof ImagePattern)) {
      return createImagePatternPaint((ImagePattern)paramPaint);
    }
    return null;
  }
  
  protected static final double clampStopOffset(double paramDouble)
  {
    return paramDouble < 0.0D ? 0.0D : paramDouble > 1.0D ? 1.0D : paramDouble;
  }
  
  protected abstract Object createColorPaint(Color paramColor);
  
  protected abstract Object createLinearGradientPaint(LinearGradient paramLinearGradient);
  
  protected abstract Object createRadialGradientPaint(RadialGradient paramRadialGradient);
  
  protected abstract Object createImagePatternPaint(ImagePattern paramImagePattern);
  
  public abstract void accumulateStrokeBounds(Shape paramShape, float[] paramArrayOfFloat, PGShape.StrokeType paramStrokeType, double paramDouble, PGShape.StrokeLineCap paramStrokeLineCap, PGShape.StrokeLineJoin paramStrokeLineJoin, float paramFloat, BaseTransform paramBaseTransform);
  
  public abstract boolean strokeContains(Shape paramShape, double paramDouble1, double paramDouble2, PGShape.StrokeType paramStrokeType, double paramDouble3, PGShape.StrokeLineCap paramStrokeLineCap, PGShape.StrokeLineJoin paramStrokeLineJoin, float paramFloat);
  
  public abstract Shape createStrokedShape(Shape paramShape, PGShape.StrokeType paramStrokeType, double paramDouble, PGShape.StrokeLineCap paramStrokeLineCap, PGShape.StrokeLineJoin paramStrokeLineJoin, float paramFloat1, float[] paramArrayOfFloat, float paramFloat2);
  
  public abstract int getKeyCodeForChar(String paramString);
  
  public abstract MouseEvent convertMouseEventToFX(Object paramObject);
  
  public abstract KeyEvent convertKeyEventToFX(Object paramObject);
  
  public abstract DragEvent convertDragRecognizedEventToFX(Object paramObject, Dragboard paramDragboard);
  
  public abstract DragEvent convertDragSourceEventToFX(Object paramObject, Dragboard paramDragboard);
  
  public abstract DragEvent convertDropTargetEventToFX(Object paramObject, Dragboard paramDragboard);
  
  public abstract InputMethodEvent convertInputMethodEventToFX(Object paramObject);
  
  public abstract Dimension2D getBestCursorSize(int paramInt1, int paramInt2);
  
  public abstract int getMaximumCursorColors();
  
  public abstract PathElement[] convertShapeToFXPath(Object paramObject);
  
  public abstract HitInfo convertHitInfoToFX(Object paramObject);
  
  public abstract Filterable toFilterable(Image paramImage);
  
  public abstract FilterContext getFilterContext(Object paramObject);
  
  public abstract boolean isForwardTraversalKey(KeyEvent paramKeyEvent);
  
  public abstract boolean isBackwardTraversalKey(KeyEvent paramKeyEvent);
  
  public abstract AbstractMasterTimer getMasterTimer();
  
  public abstract FontLoader getFontLoader();
  
  public abstract PGArc createPGArc();
  
  public abstract PGCircle createPGCircle();
  
  public abstract PGCubicCurve createPGCubicCurve();
  
  public abstract PGEllipse createPGEllipse();
  
  public abstract PGLine createPGLine();
  
  public abstract PGPath createPGPath();
  
  public abstract PGSVGPath createPGSVGPath();
  
  public abstract PGPolygon createPGPolygon();
  
  public abstract PGPolyline createPGPolyline();
  
  public abstract PGQuadCurve createPGQuadCurve();
  
  public abstract PGRectangle createPGRectangle();
  
  public abstract PGImageView createPGImageView();
  
  public abstract PGMediaView createPGMediaView();
  
  public abstract PGGroup createPGGroup();
  
  public abstract PGText createPGText();
  
  public abstract PGRegion createPGRegion();
  
  public abstract PGCanvas createPGCanvas();
  
  public abstract Object createSVGPathObject(SVGPath paramSVGPath);
  
  public abstract Path2D createSVGPath2D(SVGPath paramSVGPath);
  
  public abstract boolean imageContains(Object paramObject, float paramFloat1, float paramFloat2);
  
  public abstract TKClipboard getSystemClipboard();
  
  public abstract TKSystemMenu getSystemMenu();
  
  public abstract TKClipboard getNamedClipboard(String paramString);
  
  public abstract Dragboard createDragboard();
  
  public boolean isSupported(ConditionalFeature paramConditionalFeature)
  {
    return false;
  }
  
  public abstract ScreenConfigurationAccessor setScreenConfigurationListener(TKScreenConfigurationListener paramTKScreenConfigurationListener);
  
  public abstract Object getPrimaryScreen();
  
  public abstract List<?> getScreens();
  
  public abstract void registerDragGestureListener(TKScene paramTKScene, Set<TransferMode> paramSet, TKDragGestureListener paramTKDragGestureListener);
  
  public abstract void startDrag(Object paramObject, Set<TransferMode> paramSet, TKDragSourceListener paramTKDragSourceListener, Dragboard paramDragboard);
  
  public void stopDrag(Dragboard paramDragboard) {}
  
  public abstract void enableDrop(TKScene paramTKScene, TKDropTargetListener paramTKDropTargetListener);
  
  public Color4f toColor4f(Color paramColor)
  {
    return new Color4f((float)paramColor.getRed(), (float)paramColor.getGreen(), (float)paramColor.getBlue(), (float)paramColor.getOpacity());
  }
  
  public AbstractShadow.ShadowMode toShadowMode(BlurType paramBlurType)
  {
    switch (paramBlurType)
    {
    case ONE_PASS_BOX: 
      return AbstractShadow.ShadowMode.ONE_PASS_BOX;
    case TWO_PASS_BOX: 
      return AbstractShadow.ShadowMode.TWO_PASS_BOX;
    case THREE_PASS_BOX: 
      return AbstractShadow.ShadowMode.THREE_PASS_BOX;
    }
    return AbstractShadow.ShadowMode.GAUSSIAN;
  }
  
  public abstract void installInputMethodRequests(TKScene paramTKScene, InputMethodRequests paramInputMethodRequests);
  
  public abstract Object renderToImage(ImageRenderingContext paramImageRenderingContext);
  
  public abstract boolean isExternalFormatSupported(Class paramClass);
  
  public abstract Object toExternalImage(Object paramObject1, Object paramObject2);
  
  public abstract KeyCode getPlatformShortcutKey();
  
  public abstract List<File> showFileChooser(TKStage paramTKStage, String paramString1, File paramFile, String paramString2, FileChooserType paramFileChooserType, List<FileChooser.ExtensionFilter> paramList);
  
  public abstract File showDirectoryChooser(TKStage paramTKStage, String paramString, File paramFile);
  
  public abstract long getMultiClickTime();
  
  public abstract int getMultiClickMaxX();
  
  public abstract int getMultiClickMaxY();
  
  public void pauseScenes()
  {
    pauseScenesLatch = new CountDownLatch(1);
    Iterator localIterator = Window.impl_getWindows();
    while (localIterator.hasNext())
    {
      Window localWindow = (Window)localIterator.next();
      Scene localScene = localWindow.getScene();
      if (localScene != null) {
        removeSceneTkPulseListener(localScene.impl_getScenePulseListener());
      }
    }
    getMasterTimer().pause();
    if (sceneAccessor != null) {
      sceneAccessor.setPaused(true);
    }
  }
  
  public void resumeScenes()
  {
    if (sceneAccessor != null) {
      sceneAccessor.setPaused(false);
    }
    getMasterTimer().resume();
    Iterator localIterator = Window.impl_getWindows();
    while (localIterator.hasNext())
    {
      Window localWindow = (Window)localIterator.next();
      Scene localScene = localWindow.getScene();
      if (localScene != null) {
        addSceneTkPulseListener(localScene.impl_getScenePulseListener());
      }
    }
    pauseScenesLatch.countDown();
    pauseScenesLatch = null;
  }
  
  public void pauseCurrentThread()
  {
    CountDownLatch localCountDownLatch = pauseScenesLatch;
    if (localCountDownLatch == null) {
      return;
    }
    try
    {
      localCountDownLatch.await();
    }
    catch (InterruptedException localInterruptedException) {}
  }
  
  public Set<HighlightRegion> getHighlightedRegions()
  {
    if (highlightRegions == null) {
      highlightRegions = new HashSet();
    }
    return highlightRegions;
  }
  
  public static void setSceneAccessor(SceneAccessor paramSceneAccessor)
  {
    sceneAccessor = paramSceneAccessor;
  }
  
  public static void setWritableImageAccessor(WritableImageAccessor paramWritableImageAccessor)
  {
    writableImageAccessor = paramWritableImageAccessor;
  }
  
  public static WritableImageAccessor getWritableImageAccessor()
  {
    return writableImageAccessor;
  }
  
  public static class ImageRenderingContext
  {
    public PGNode root;
    public int x;
    public int y;
    public int width;
    public int height;
    public BaseTransform transform;
    public boolean depthBuffer;
    public Object platformPaint;
    public CameraImpl camera;
    public Object platformImage;
  }
  
  public static abstract interface SceneAccessor
  {
    public abstract void setPaused(boolean paramBoolean);
  }
  
  public static abstract interface Task
  {
    public abstract boolean isFinished();
  }
  
  public static abstract interface WritableImageAccessor
  {
    public abstract void loadTkImage(WritableImage paramWritableImage, Object paramObject);
    
    public abstract Object getTkImageLoader(WritableImage paramWritableImage);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.Toolkit
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import java.util.Map;
import javafx.stage.Stage;

public abstract interface AppletWindow
{
  public abstract void setStageOnTop(Stage paramStage);
  
  public abstract void setBackgroundColor(int paramInt);
  
  public abstract void setForegroundColor(int paramInt);
  
  public abstract void setVisible(boolean paramBoolean);
  
  public abstract void setSize(int paramInt1, int paramInt2);
  
  public abstract int getWidth();
  
  public abstract int getHeight();
  
  public abstract void setPosition(int paramInt1, int paramInt2);
  
  public abstract int getPositionX();
  
  public abstract int getPositionY();
  
  public abstract int getRemoteLayerId();
  
  public abstract void dispatchEvent(Map paramMap);
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.AppletWindow
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import com.sun.javafx.PlatformUtil;
import com.sun.javafx.perf.PerformanceTracker;
import com.sun.javafx.tk.Toolkit;
import com.sun.scenario.animation.AbstractMasterTimer;
import javafx.scene.input.KeyCode;

public abstract class DesktopToolkit
  extends Toolkit
{
  protected static boolean hasPlugin;
  private final PerformanceTracker perfTracker = new PerformanceTrackerImpl();
  
  public static void setPluginMode(boolean paramBoolean)
  {
    hasPlugin = paramBoolean;
  }
  
  public abstract AppletWindow createAppletWindow(long paramLong, String paramString);
  
  public AppletWindow createAppletWindow(long paramLong)
  {
    return createAppletWindow(paramLong, null);
  }
  
  public abstract void closeAppletWindow();
  
  public static DesktopToolkit getDesktopToolkit()
  {
    return (DesktopToolkit)Toolkit.getToolkit();
  }
  
  public abstract boolean isAppletDragSupported();
  
  public AbstractMasterTimer getMasterTimer()
  {
    return MasterTimer.getInstance();
  }
  
  public PerformanceTracker getPerformanceTracker()
  {
    return perfTracker;
  }
  
  public PerformanceTracker createPerformanceTracker()
  {
    return new PerformanceTrackerImpl();
  }
  
  public KeyCode getPlatformShortcutKey()
  {
    return PlatformUtil.isMac() ? KeyCode.META : KeyCode.CONTROL;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.DesktopToolkit
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import com.sun.scenario.Settings;
import com.sun.scenario.animation.AnimationPulse;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

final class MasterTimer$1
  implements PropertyChangeListener
{
  public void propertyChange(PropertyChangeEvent paramPropertyChangeEvent)
  {
    if (paramPropertyChangeEvent.getPropertyName().equals("com.sun.scenario.animation.nogaps")) {
      MasterTimer.access$002(Settings.getBoolean("com.sun.scenario.animation.nogaps"));
    } else if (paramPropertyChangeEvent.getPropertyName().equals("javafx.animation.fullspeed")) {
      MasterTimer.access$102(Settings.getBoolean("javafx.animation.fullspeed"));
    } else if (paramPropertyChangeEvent.getPropertyName().equals("com.sun.scenario.animation.adaptivepulse")) {
      MasterTimer.access$202(Settings.getBoolean("com.sun.scenario.animation.adaptivepulse"));
    } else if (paramPropertyChangeEvent.getPropertyName().equals("com.sun.scenario.animation.AnimationMBean.enabled")) {
      AnimationPulse.getDefaultBean().setEnabled(Settings.getBoolean("com.sun.scenario.animation.AnimationMBean.enabled"));
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.MasterTimer.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import java.lang.reflect.Method;
import java.security.PrivilegedAction;

class MasterTimer$ReflectAppContext
  implements PrivilegedAction
{
  Class clazz = null;
  Method getAppCtx = null;
  Method isDisposed = null;
  
  public Object run()
  {
    try
    {
      clazz = Class.forName("sun.awt.AppContext", true, null);
      getAppCtx = clazz.getDeclaredMethod("getAppContext", (Class[])null);
      isDisposed = clazz.getDeclaredMethod("isDisposed", (Class[])null);
    }
    catch (ClassNotFoundException localClassNotFoundException) {}catch (NoSuchMethodException localNoSuchMethodException) {}
    return null;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.MasterTimer.ReflectAppContext
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import com.sun.javafx.tk.Toolkit;
import com.sun.scenario.DelayedRunnable;
import com.sun.scenario.Settings;
import com.sun.scenario.animation.AbstractMasterTimer;
import com.sun.scenario.animation.AnimationPulse;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.lang.reflect.Method;
import java.security.PrivilegedAction;
import java.util.Map;

public final class MasterTimer
  extends AbstractMasterTimer
{
  private static PropertyChangeListener pcl = new PropertyChangeListener()
  {
    public void propertyChange(PropertyChangeEvent paramAnonymousPropertyChangeEvent)
    {
      if (paramAnonymousPropertyChangeEvent.getPropertyName().equals("com.sun.scenario.animation.nogaps")) {
        MasterTimer.access$002(Settings.getBoolean("com.sun.scenario.animation.nogaps"));
      } else if (paramAnonymousPropertyChangeEvent.getPropertyName().equals("javafx.animation.fullspeed")) {
        MasterTimer.access$102(Settings.getBoolean("javafx.animation.fullspeed"));
      } else if (paramAnonymousPropertyChangeEvent.getPropertyName().equals("com.sun.scenario.animation.adaptivepulse")) {
        MasterTimer.access$202(Settings.getBoolean("com.sun.scenario.animation.adaptivepulse"));
      } else if (paramAnonymousPropertyChangeEvent.getPropertyName().equals("com.sun.scenario.animation.AnimationMBean.enabled")) {
        AnimationPulse.getDefaultBean().setEnabled(Settings.getBoolean("com.sun.scenario.animation.AnimationMBean.enabled"));
      }
    }
  };
  private static ReflectAppContext reflectInfo = null;
  private static final Object MASTER_TIMER_KEY = new StringBuilder("MasterTimerKey");
  
  public static synchronized MasterTimer getInstance()
  {
    Map localMap = Toolkit.getToolkit().getContextMap();
    MasterTimer localMasterTimer = (MasterTimer)localMap.get(MASTER_TIMER_KEY);
    if (localMasterTimer == null)
    {
      localMasterTimer = new MasterTimer();
      localMap.put(MASTER_TIMER_KEY, localMasterTimer);
      if (Settings.getBoolean("com.sun.scenario.animation.AnimationMBean.enabled", false)) {
        AnimationPulse.getDefaultBean().setEnabled(true);
      }
    }
    return localMasterTimer;
  }
  
  protected boolean shouldUseNanoTime()
  {
    boolean bool = false;
    try
    {
      System.nanoTime();
      bool = true;
    }
    catch (NoSuchMethodError localNoSuchMethodError) {}
    return bool;
  }
  
  protected int getPulseDuration(int paramInt)
  {
    int i = paramInt / 60;
    int j;
    if (Settings.get("javafx.animation.framerate") != null)
    {
      j = Settings.getInt("javafx.animation.framerate", 60);
      if (j > 0) {
        i = paramInt / j;
      }
    }
    else if (Settings.get("javafx.animation.pulse") != null)
    {
      j = Settings.getInt("javafx.animation.pulse", 60);
      if (j > 0) {
        i = paramInt / j;
      }
    }
    else
    {
      j = Toolkit.getToolkit().getRefreshRate();
      if (j > 0) {
        i = paramInt / j;
      }
    }
    return i;
  }
  
  protected void postUpdateAnimationRunnable(DelayedRunnable paramDelayedRunnable)
  {
    Toolkit.getToolkit().setAnimationRunnable(paramDelayedRunnable);
  }
  
  static void timePulse(long paramLong)
  {
    getInstance().timePulseImpl(paramLong);
  }
  
  protected void recordStart(long paramLong)
  {
    AnimationPulse.getDefaultBean().recordStart(paramLong);
  }
  
  protected void recordEnd()
  {
    AnimationPulse.getDefaultBean().recordEnd();
  }
  
  protected void recordAnimationEnd()
  {
    AnimationPulse.getDefaultBean().recordAnimationEnd();
  }
  
  static
  {
    Settings.addPropertyChangeListener("com.sun.scenario.animation.nogaps", pcl);
    Settings.addPropertyChangeListener("com.sun.scenario.animation.adaptivepulse", pcl);
    Settings.addPropertyChangeListener("javafx.animation.fullspeed", pcl);
    Settings.addPropertyChangeListener("com.sun.scenario.animation.AnimationMBean.enabled", pcl);
  }
  
  private static class ReflectAppContext
    implements PrivilegedAction
  {
    Class clazz = null;
    Method getAppCtx = null;
    Method isDisposed = null;
    
    public Object run()
    {
      try
      {
        clazz = Class.forName("sun.awt.AppContext", true, null);
        getAppCtx = clazz.getDeclaredMethod("getAppContext", (Class[])null);
        isDisposed = clazz.getDeclaredMethod("isDisposed", (Class[])null);
      }
      catch (ClassNotFoundException localClassNotFoundException) {}catch (NoSuchMethodException localNoSuchMethodException) {}
      return null;
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.MasterTimer
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

class PerformanceTrackerHelper$1$1
  extends Thread
{
  PerformanceTrackerHelper$1$1(PerformanceTrackerHelper.1 param1, PerformanceTrackerHelper paramPerformanceTrackerHelper) {}
  
  public void run()
  {
    val$trackerImpl.outputLog();
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.PerformanceTrackerHelper.1.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import java.security.PrivilegedAction;

final class PerformanceTrackerHelper$1
  implements PrivilegedAction<PerformanceTrackerHelper>
{
  public PerformanceTrackerHelper run()
  {
    try
    {
      if (System.getProperty("sun.perflog") != null)
      {
        final PerformanceTrackerHelper.PerformanceTrackerDefaultImpl localPerformanceTrackerDefaultImpl = new PerformanceTrackerHelper.PerformanceTrackerDefaultImpl();
        if (System.getProperty("sun.perflog.fx.exitflush") != null) {
          Runtime.getRuntime().addShutdownHook(new Thread()
          {
            public void run()
            {
              localPerformanceTrackerDefaultImpl.outputLog();
            }
          });
        }
        return localPerformanceTrackerDefaultImpl;
      }
    }
    catch (Throwable localThrowable) {}
    return new PerformanceTrackerHelper.PerformanceTrackerDummyImpl(null);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.PerformanceTrackerHelper.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import java.lang.reflect.Method;
import java.security.PrivilegedAction;

class PerformanceTrackerHelper$PerformanceTrackerDefaultImpl$1
  implements PrivilegedAction<Object>
{
  PerformanceTrackerHelper$PerformanceTrackerDefaultImpl$1(PerformanceTrackerHelper.PerformanceTrackerDefaultImpl paramPerformanceTrackerDefaultImpl, String paramString, long paramLong) {}
  
  public Object run()
  {
    try
    {
      PerformanceTrackerHelper.PerformanceTrackerDefaultImpl.access$400(this$0).invoke(null, new Object[] { "JavaFX> " + val$s + " (" + (val$time - PerformanceTrackerHelper.PerformanceTrackerDefaultImpl.access$200(this$0)) + "ms total, " + (val$time - PerformanceTrackerHelper.PerformanceTrackerDefaultImpl.access$300(this$0)) + "ms)" });
    }
    catch (Exception localException) {}
    return null;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.tk.desktop.PerformanceTrackerHelper.PerformanceTrackerDefaultImpl.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.tk.desktop;

import java.lang.reflect.Method;
import java.security.PrivilegedAction;

class PerformanceTrackerHelper$PerformanceTrackerDefaultImpl$2
  implements PrivilegedAction<Object>
{
  PerformanceTrackerHelper$PerformanceTrackerDefaultImpl$2(PerformanceTrackerHelper.PerformanceTrackerDefaultImpl paramPerformanceTrackerDefaultImpl) {}
  
  public Object run()
  {
    PerformanceTrackerHelper.PerformanceTrackerDefaultImpl.access$500(this$0);
    try
    {
      PerformanceTrackerHelper.PerformanceTrackerDefaultImpl.access$600(this$0).invoke(null, new O
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd