jfxrt

 paramBaseTransform);
    }
    PGShape.StrokeType localStrokeType = toPGStrokeType(getStrokeType());
    double d = Utils.clampMin(getStrokeWidth(), 0.0D);
    PGShape.StrokeLineCap localStrokeLineCap = toPGLineCap(getStrokeLineCap());
    PGShape.StrokeLineJoin localStrokeLineJoin = toPGLineJoin(getStrokeLineJoin());
    float f = (float)Utils.clampMin(getStrokeMiterLimit(), 1.0D);
    float[] arrayOfFloat = hasStrokeDashArray() ? toPGDashArray(getStrokeDashArray()) : DEFAULT_PG_STROKE_DASH_ARRAY;
    com.sun.javafx.geom.Shape localShape2 = Toolkit.getToolkit().createStrokedShape(localShape1, localStrokeType, d, localStrokeLineCap, localStrokeLineJoin, f, arrayOfFloat, (float)getStrokeDashOffset());
    if (impl_mode == PGShape.Mode.STROKE) {
      return createTransformedArea(localShape2, paramBaseTransform);
    }
    Area localArea = new Area(localShape1);
    localArea.add(new Area(localShape2));
    return createTransformedArea(localArea, paramBaseTransform);
  }
  
  private static BaseTransform calculateNodeToSceneTransform(Node paramNode)
  {
    Affine3D localAffine3D = new Affine3D();
    do
    {
      localAffine3D.preConcatenate(paramNode.impl_getLeafTransform());
      paramNode = paramNode.getParent();
    } while (paramNode != null);
    return localAffine3D;
  }
  
  private static Area createTransformedArea(com.sun.javafx.geom.Shape paramShape, BaseTransform paramBaseTransform)
  {
    return paramBaseTransform.isIdentity() ? new Area(paramShape) : new Area(paramShape.getPathIterator(paramBaseTransform));
  }
  
  private static Path createFromGeomShape(com.sun.javafx.geom.Shape paramShape)
  {
    Path localPath = new Path();
    ObservableList localObservableList = localPath.getElements();
    PathIterator localPathIterator = paramShape.getPathIterator(null);
    float[] arrayOfFloat = new float[6];
    while (!localPathIterator.isDone())
    {
      int i = localPathIterator.currentSegment(arrayOfFloat);
      switch (i)
      {
      case 0: 
        localObservableList.add(new MoveTo(arrayOfFloat[0], arrayOfFloat[1]));
        break;
      case 1: 
        localObservableList.add(new LineTo(arrayOfFloat[0], arrayOfFloat[1]));
        break;
      case 2: 
        localObservableList.add(new QuadCurveTo(arrayOfFloat[0], arrayOfFloat[1], arrayOfFloat[2], arrayOfFloat[3]));
        break;
      case 3: 
        localObservableList.add(new CubicCurveTo(arrayOfFloat[0], arrayOfFloat[1], arrayOfFloat[2], arrayOfFloat[3], arrayOfFloat[4], arrayOfFloat[5]));
        break;
      case 4: 
        localObservableList.add(new ClosePath());
      }
      localPathIterator.next();
    }
    localPath.setFillRule(localPathIterator.getWindingRule() == 0 ? FillRule.EVEN_ODD : FillRule.NON_ZERO);
    localPath.setFill(Color.BLACK);
    localPath.setStroke(null);
    return localPath;
  }
  
  private final class StrokeAttributes
  {
    private ObjectProperty<StrokeType> type;
    private DoubleProperty width;
    private ObjectProperty<StrokeLineJoin> lineJoin;
    private ObjectProperty<StrokeLineCap> lineCap;
    private DoubleProperty miterLimit;
    private DoubleProperty dashOffset;
    private ObservableList<Double> dashArray;
    private ObjectProperty<Double[]> cssDashArray = null;
    
    private StrokeAttributes() {}
    
    public final StrokeType getType()
    {
      return type == null ? Shape.DEFAULT_STROKE_TYPE : (StrokeType)type.get();
    }
    
    public final ObjectProperty<StrokeType> typeProperty()
    {
      if (type == null) {
        type = new StyleableObjectProperty(Shape.DEFAULT_STROKE_TYPE)
        {
          public void invalidated()
          {
            Shape.StrokeAttributes.this.invalidated(Shape.StyleableProperties.access$1300());
          }
          
          public StyleableProperty getStyleableProperty()
          {
            return Shape.StyleableProperties.access$1300();
          }
          
          public Object getBean()
          {
            return Shape.this;
          }
          
          public String getName()
          {
            return "strokeType";
          }
        };
      }
      return type;
    }
    
    public double getWidth()
    {
      return width == null ? 1.0D : width.get();
    }
    
    public final DoubleProperty widthProperty()
    {
      if (width == null) {
        width = new StyleableDoubleProperty(1.0D)
        {
          public void invalidated()
          {
            Shape.StrokeAttributes.this.invalidated(Shape.StyleableProperties.access$1500());
          }
          
          public StyleableProperty getStyleableProperty()
          {
            return Shape.StyleableProperties.access$1500();
          }
          
          public Object getBean()
          {
            return Shape.this;
          }
          
          public String getName()
          {
            return "strokeWidth";
          }
        };
      }
      return width;
    }
    
    public StrokeLineJoin getLineJoin()
    {
      return lineJoin == null ? Shape.DEFAULT_STROKE_LINE_JOIN : (StrokeLineJoin)lineJoin.get();
    }
    
    public final ObjectProperty<StrokeLineJoin> lineJoinProperty()
    {
      if (lineJoin == null) {
        lineJoin = new StyleableObjectProperty(Shape.DEFAULT_STROKE_LINE_JOIN)
        {
          public void invalidated()
          {
            Shape.StrokeAttributes.this.invalidated(Shape.StyleableProperties.access$1700());
          }
          
          public StyleableProperty getStyleableProperty()
          {
            return Shape.StyleableProperties.access$1700();
          }
          
          public Object getBean()
          {
            return Shape.this;
          }
          
          public String getName()
          {
            return "strokeLineJoin";
          }
        };
      }
      return lineJoin;
    }
    
    public StrokeLineCap getLineCap()
    {
      return lineCap == null ? Shape.DEFAULT_STROKE_LINE_CAP : (StrokeLineCap)lineCap.get();
    }
    
    public final ObjectProperty<StrokeLineCap> lineCapProperty()
    {
      if (lineCap == null) {
        lineCap = new StyleableObjectProperty(Shape.DEFAULT_STROKE_LINE_CAP)
        {
          public void invalidated()
          {
            Shape.StrokeAttributes.this.invalidated(Shape.StyleableProperties.access$1900());
          }
          
          public StyleableProperty getStyleableProperty()
          {
            return Shape.StyleableProperties.access$1900();
          }
          
          public Object getBean()
          {
            return Shape.this;
          }
          
          public String getName()
          {
            return "strokeLineCap";
          }
        };
      }
      return lineCap;
    }
    
    public double getMiterLimit()
    {
      return miterLimit == null ? 10.0D : miterLimit.get();
    }
    
    public final DoubleProperty miterLimitProperty()
    {
      if (miterLimit == null) {
        miterLimit = new StyleableDoubleProperty(10.0D)
        {
          public void invalidated()
          {
            Shape.StrokeAttributes.this.invalidated(Shape.StyleableProperties.access$2000());
          }
          
          public StyleableProperty getStyleableProperty()
          {
            return Shape.StyleableProperties.access$2000();
          }
          
          public Object getBean()
          {
            return Shape.this;
          }
          
          public String getName()
          {
            return "strokeMiterLimit";
          }
        };
      }
      return miterLimit;
    }
    
    public double getDashOffset()
    {
      return dashOffset == null ? 0.0D : dashOffset.get();
    }
    
    public final DoubleProperty dashOffsetProperty()
    {
      if (dashOffset == null) {
        dashOffset = new StyleableDoubleProperty(0.0D)
        {
          public void invalidated()
          {
            Shape.StrokeAttributes.this.invalidated(Shape.StyleableProperties.access$2100());
          }
          
          public StyleableProperty getStyleableProperty()
          {
            return Shape.StyleableProperties.access$2100();
          }
          
          public Object getBean()
          {
            return Shape.this;
          }
          
          public String getName()
          {
            return "strokeDashOffset";
          }
        };
      }
      return dashOffset;
    }
    
    public ObservableList<Double> dashArrayProperty()
    {
      if (dashArray == null) {
        dashArray = new TrackableObservableList()
        {
          protected void onChanged(ListChangeListener.Change<Double> paramAnonymousChange)
          {
            Shape.StrokeAttributes.this.invalidated(Shape.StyleableProperties.access$2200());
          }
        };
      }
      return dashArray;
    }
    
    private ObjectProperty<Double[]> cssDashArrayProperty()
    {
      if (cssDashArray == null) {
        cssDashArray = new StyleableObjectProperty()
        {
          public void set(Double[] paramAnonymousArrayOfDouble)
          {
            ObservableList localObservableList = dashArrayProperty();
            localObservableList.clear();
            if ((paramAnonymousArrayOfDouble != null) && (paramAnonymousArrayOfDouble.length > 0)) {
              localObservableList.addAll(paramAnonymousArrayOfDouble);
            }
          }
          
          public Double[] get()
          {
            ObservableList localObservableList = dashArrayProperty();
            return (Double[])localObservableList.toArray(new Double[localObservableList.size()]);
          }
          
          public Object getBean()
          {
            return Shape.this;
          }
          
          public String getName()
          {
            return "cssDashArray";
          }
          
          public StyleableProperty getStyleableProperty()
          {
            return Shape.StyleableProperties.access$2200();
          }
        };
      }
      return cssDashArray;
    }
    
    public boolean canSetType()
    {
      return (type == null) || (!type.isBound());
    }
    
    public boolean canSetWidth()
    {
      return (width == null) || (!width.isBound());
    }
    
    public boolean canSetLineJoin()
    {
      return (lineJoin == null) || (!lineJoin.isBound());
    }
    
    public boolean canSetLineCap()
    {
      return (lineCap == null) || (!lineCap.isBound());
    }
    
    public boolean canSetMiterLimit()
    {
      return (miterLimit == null) || (!miterLimit.isBound());
    }
    
    public boolean canSetDashOffset()
    {
      return (dashOffset == null) || (!dashOffset.isBound());
    }
    
    public boolean hasDashArray()
    {
      return dashArray != null;
    }
    
    private void invalidated(StyleableProperty paramStyleableProperty)
    {
      impl_markDirty(DirtyBits.SHAPE_STROKEATTRS);
      strokeAttributesDirty = true;
      if (paramStyleableProperty != Shape.StyleableProperties.access$2100()) {
        impl_geomChanged();
      }
    }
  }
  
  private static class StyleableProperties
  {
    private static final StyleableProperty<Shape, Paint> FILL = new StyleableProperty("-fx-fill", PaintConverter.getInstance(), Color.BLACK)
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (fill == null) || (!fill.isBound());
      }
      
      public WritableValue<Paint> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.fillProperty();
      }
      
      public Paint getInitialValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.impl_cssGetFillInitialValue();
      }
    };
    private static final StyleableProperty<Shape, Boolean> SMOOTH = new StyleableProperty("-fx-smooth", BooleanConverter.getInstance(), Boolean.TRUE)
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (smooth == null) || (!smooth.isBound());
      }
      
      public WritableValue<Boolean> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.smoothProperty();
      }
    };
    private static final StyleableProperty<Shape, Paint> STROKE = new StyleableProperty("-fx-stroke", PaintConverter.getInstance())
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (stroke == null) || (!stroke.isBound());
      }
      
      public WritableValue<Paint> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.strokeProperty();
      }
      
      public Paint getInitialValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.impl_cssGetStrokeInitialValue();
      }
    };
    private static final StyleableProperty<Shape, Double[]> STROKE_DASH_ARRAY = new StyleableProperty("-fx-stroke-dash-array", SizeConverter.SequenceConverter.getInstance(), new Double[0])
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return true;
      }
      
      public WritableValue<Double[]> getWritableValue(Shape paramAnonymousShape)
      {
        return Shape.access$700(paramAnonymousShape).cssDashArrayProperty();
      }
    };
    private static final StyleableProperty<Shape, Number> STROKE_DASH_OFFSET = new StyleableProperty("-fx-stroke-dash-offset", SizeConverter.getInstance(), Double.valueOf(0.0D))
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (strokeAttributes == null) || (strokeAttributes.canSetDashOffset());
      }
      
      public WritableValue<Number> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.strokeDashOffsetProperty();
      }
    };
    private static final StyleableProperty<Shape, StrokeLineCap> STROKE_LINE_CAP = new StyleableProperty("-fx-stroke-line-cap", new EnumConverter(StrokeLineCap.class), StrokeLineCap.SQUARE)
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (strokeAttributes == null) || (strokeAttributes.canSetLineCap());
      }
      
      public WritableValue<StrokeLineCap> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.strokeLineCapProperty();
      }
    };
    private static final StyleableProperty<Shape, StrokeLineJoin> STROKE_LINE_JOIN = new StyleableProperty("-fx-stroke-line-join", new EnumConverter(StrokeLineJoin.class), StrokeLineJoin.MITER)
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (strokeAttributes == null) || (strokeAttributes.canSetLineJoin());
      }
      
      public WritableValue<StrokeLineJoin> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.strokeLineJoinProperty();
      }
    };
    private static final StyleableProperty<Shape, StrokeType> STROKE_TYPE = new StyleableProperty("-fx-stroke-type", new EnumConverter(StrokeType.class), StrokeType.CENTERED)
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (strokeAttributes == null) || (strokeAttributes.canSetType());
      }
      
      public WritableValue<StrokeType> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.strokeTypeProperty();
      }
    };
    private static final StyleableProperty<Shape, Number> STROKE_MITER_LIMIT = new StyleableProperty("-fx-stroke-miter-limit", SizeConverter.getInstance(), Double.valueOf(10.0D))
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (strokeAttributes == null) || (strokeAttributes.canSetMiterLimit());
      }
      
      public WritableValue<Number> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.strokeMiterLimitProperty();
      }
    };
    private static final StyleableProperty STROKE_WIDTH = new StyleableProperty("-fx-stroke-width", SizeConverter.getInstance(), Double.valueOf(1.0D))
    {
      public boolean isSettable(Shape paramAnonymousShape)
      {
        return (strokeAttributes == null) || (strokeAttributes.canSetWidth());
      }
      
      public WritableValue<Number> getWritableValue(Shape paramAnonymousShape)
      {
        return paramAnonymousShape.strokeWidthProperty();
      }
    };
    private static final List<StyleableProperty> STYLEABLES;
    
    static
    {
      ArrayList localArrayList = new ArrayList(Node.impl_CSS_STYLEABLES());
      Collections.addAll(localArrayList, new StyleableProperty[] { FILL, SMOOTH, STROKE, STROKE_DASH_ARRAY, STROKE_DASH_OFFSET, STROKE_LINE_CAP, STROKE_LINE_JOIN, STROKE_TYPE, STROKE_MITER_LIMIT, STROKE_WIDTH });
      STYLEABLES = Collections.unmodifiableList(localArrayList);
    }
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.Shape
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.shape;

import java.util.Arrays;
import java.util.Collection;
import javafx.collections.ObservableList;
import javafx.scene.NodeBuilder;
import javafx.scene.paint.Paint;

public abstract class ShapeBuilder<B extends ShapeBuilder<B>>
  extends NodeBuilder<B>
{
  private int __set;
  private Paint fill;
  private boolean smooth;
  private Paint stroke;
  private Collection<? extends Double> strokeDashArray;
  private double strokeDashOffset;
  private StrokeLineCap strokeLineCap;
  private StrokeLineJoin strokeLineJoin;
  private double strokeMiterLimit;
  private StrokeType strokeType;
  private double strokeWidth;
  
  private void __set(int paramInt)
  {
    __set |= 1 << paramInt;
  }
  
  public void applyTo(Shape paramShape)
  {
    super.applyTo(paramShape);
    int i = __set;
    while (i != 0)
    {
      int j = Integer.numberOfTrailingZeros(i);
      i &= (1 << j ^ 0xFFFFFFFF);
      switch (j)
      {
      case 0: 
        paramShape.setFill(fill);
        break;
      case 1: 
        paramShape.setSmooth(smooth);
        break;
      case 2: 
        paramShape.setStroke(stroke);
        break;
      case 3: 
        paramShape.getStrokeDashArray().addAll(strokeDashArray);
        break;
      case 4: 
        paramShape.setStrokeDashOffset(strokeDashOffset);
        break;
      case 5: 
        paramShape.setStrokeLineCap(strokeLineCap);
        break;
      case 6: 
        paramShape.setStrokeLineJoin(strokeLineJoin);
        break;
      case 7: 
        paramShape.setStrokeMiterLimit(strokeMiterLimit);
        break;
      case 8: 
        paramShape.setStrokeType(strokeType);
        break;
      case 9: 
        paramShape.setStrokeWidth(strokeWidth);
      }
    }
  }
  
  public B fill(Paint paramPaint)
  {
    fill = paramPaint;
    __set(0);
    return this;
  }
  
  public B smooth(boolean paramBoolean)
  {
    smooth = paramBoolean;
    __set(1);
    return this;
  }
  
  public B stroke(Paint paramPaint)
  {
    stroke = paramPaint;
    __set(2);
    return this;
  }
  
  public B strokeDashArray(Collection<? extends Double> paramCollection)
  {
    strokeDashArray = paramCollection;
    __set(3);
    return this;
  }
  
  public B strokeDashArray(Double... paramVarArgs)
  {
    return strokeDashArray(Arrays.asList(paramVarArgs));
  }
  
  public B strokeDashOffset(double paramDouble)
  {
    strokeDashOffset = paramDouble;
    __set(4);
    return this;
  }
  
  public B strokeLineCap(StrokeLineCap paramStrokeLineCap)
  {
    strokeLineCap = paramStrokeLineCap;
    __set(5);
    return this;
  }
  
  public B strokeLineJoin(StrokeLineJoin paramStrokeLineJoin)
  {
    strokeLineJoin = paramStrokeLineJoin;
    __set(6);
    return this;
  }
  
  public B strokeMiterLimit(double paramDouble)
  {
    strokeMiterLimit = paramDouble;
    __set(7);
    return this;
  }
  
  public B strokeType(StrokeType paramStrokeType)
  {
    strokeType = paramStrokeType;
    __set(8);
    return this;
  }
  
  public B strokeWidth(double paramDouble)
  {
    strokeWidth = paramDouble;
    __set(9);
    return this;
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.ShapeBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.shape;

public enum StrokeLineCap
{
  SQUARE,  BUTT,  ROUND;
  
  private StrokeLineCap() {}
}

/* Location:
 * Qualified Name:     javafx.scene.shape.StrokeLineCap
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.shape;

public enum StrokeLineJoin
{
  MITER,  BEVEL,  ROUND;
  
  private StrokeLineJoin() {}
}

/* Location:
 * Qualified Name:     javafx.scene.shape.StrokeLineJoin
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.shape;

public enum StrokeType
{
  INSIDE,  OUTSIDE,  CENTERED;
  
  private StrokeType() {}
}

/* Location:
 * Qualified Name:     javafx.scene.shape.StrokeType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.shape;

import javafx.beans.property.DoublePropertyBase;

class VLineTo$1
  extends DoublePropertyBase
{
  VLineTo$1(VLineTo paramVLineTo) {}
  
  public void invalidated()
  {
    this$0.u();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "y";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.VLineTo.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.shape;

import com.sun.javafx.geom.Path2D;
import com.sun.javafx.sg.PGPath;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.DoublePropertyBase;

public class VLineTo
  extends PathElement
{
  private DoubleProperty y = new DoublePropertyBase()
  {
    public void invalidated()
    {
      u();
    }
    
    public Object getBean()
    {
      return VLineTo.this;
    }
    
    public String getName()
    {
      return "y";
    }
  };
  
  public VLineTo() {}
  
  public VLineTo(double paramDouble)
  {
    setY(paramDouble);
  }
  
  public final void setY(double paramDouble)
  {
    y.set(paramDouble);
  }
  
  public final double getY()
  {
    return y.get();
  }
  
  public final DoubleProperty yProperty()
  {
    return y;
  }
  
  void addTo(PGPath paramPGPath)
  {
    if (isAbsolute()) {
      paramPGPath.addLineTo(paramPGPath.getCurrentX(), (float)getY());
    } else {
      paramPGPath.addLineTo(paramPGPath.getCurrentX(), (float)(paramPGPath.getCurrentY() + getY()));
    }
  }
  
  @Deprecated
  public void impl_addTo(Path2D paramPath2D)
  {
    if (isAbsolute()) {
      paramPath2D.lineTo(paramPath2D.getCurrentX(), (float)getY());
    } else {
      paramPath2D.lineTo(paramPath2D.getCurrentX(), (float)(paramPath2D.getCurrentY() + getY()));
    }
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.VLineTo
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.shape;

import javafx.util.Builder;

public class VLineToBuilder<B extends VLineToBuilder<B>>
  extends PathElementBuilder<B>
  implements Builder<VLineTo>
{
  private boolean __set;
  private double y;
  
  public static VLineToBuilder<?> create()
  {
    return new VLineToBuilder();
  }
  
  public void applyTo(VLineTo paramVLineTo)
  {
    super.applyTo(paramVLineTo);
    if (__set) {
      paramVLineTo.setY(y);
    }
  }
  
  public B y(double paramDouble)
  {
    y = paramDouble;
    __set = true;
    return this;
  }
  
  public VLineTo build()
  {
    VLineTo localVLineTo = new VLineTo();
    applyTo(localVLineTo);
    return localVLineTo;
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.VLineToBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.tk.FontLoader;
import com.sun.javafx.tk.Toolkit;
import java.io.File;
import java.io.FilePermission;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.security.Permission;
import java.util.List;

public final class Font
{
  private static final String DEFAULT_FAMILY = "System";
  private static final String DEFAULT_FULLNAME = "System Regular";
  private static float defaultSystemFontSize = -1.0F;
  private static Font DEFAULT;
  private String name;
  private String family;
  private String style;
  private double size;
  private int hash = 0;
  private Object nativeFont;
  
  private static float getDefaultSystemFontSize()
  {
    if (defaultSystemFontSize == -1.0F) {
      defaultSystemFontSize = Toolkit.getToolkit().getFontLoader().getSystemFontSize();
    }
    return defaultSystemFontSize;
  }
  
  public static synchronized Font getDefault()
  {
    if (DEFAULT == null) {
      DEFAULT = new Font("System Regular", getDefaultSystemFontSize());
    }
    return DEFAULT;
  }
  
  public static List<String> getFamilies()
  {
    return Toolkit.getToolkit().getFontLoader().getFamilies();
  }
  
  public static List<String> getFontNames()
  {
    return Toolkit.getToolkit().getFontLoader().getFontNames();
  }
  
  public static List<String> getFontNames(String paramString)
  {
    return Toolkit.getToolkit().getFontLoader().getFontNames(paramString);
  }
  
  public static Font font(String paramString, FontWeight paramFontWeight, FontPosture paramFontPosture, double paramDouble)
  {
    String str = (paramString == null) || ("".equals(paramString)) ? "System" : paramString;
    double d = paramDouble < 0.0D ? getDefaultSystemFontSize() : paramDouble;
    return Toolkit.getToolkit().getFontLoader().font(str, paramFontWeight, paramFontPosture, (float)d);
  }
  
  public static Font font(String paramString, FontWeight paramFontWeight, double paramDouble)
  {
    return font(paramString, paramFontWeight, null, paramDouble);
  }
  
  public static Font font(String paramString, FontPosture paramFontPosture, double paramDouble)
  {
    return font(paramString, null, paramFontPosture, paramDouble);
  }
  
  public static Font font(String paramString, double paramDouble)
  {
    return font(paramString, null, null, paramDouble);
  }
  
  public final String getName()
  {
    return name;
  }
  
  public final String getFamily()
  {
    return family;
  }
  
  public final String getStyle()
  {
    return style;
  }
  
  public final double getSize()
  {
    return size;
  }
  
  public Font(double paramDouble)
  {
    this(null, paramDouble);
  }
  
  public Font(String paramString, double paramDouble)
  {
    name = paramString;
    size = paramDouble;
    if ((paramString == null) || ("".equals(paramString))) {
      name = "System Regular";
    }
    if (paramDouble < 0.0D) {
      size = getDefaultSystemFontSize();
    }
    Toolkit.getToolkit().getFontLoader().loadFont(this);
  }
  
  private Font(Object paramObject, String paramString1, String paramString2, String paramString3, double paramDouble)
  {
    nativeFont = paramObject;
    family = paramString1;
    name = paramString2;
    style = paramString3;
    size = paramDouble;
  }
  
  public static Font loadFont(String paramString, double paramDouble)
  {
    URL localURL = null;
    try
    {
      localURL = new URL(paramString);
    }
    catch (Exception localException1)
    {
      return null;
    }
    if (paramDouble <= 0.0D) {
      paramDouble = 12.0D;
    }
    if (localURL.getProtocol().equals("file"))
    {
      localObject1 = localURL.getFile();
      localObject1 = new File((String)localObject1).getPath();
      try
      {
        SecurityManager localSecurityManager = System.getSecurityManager();
        if (localSecurityManager != null)
        {
          localObject2 = new FilePermission((String)localObject1, "read");
          localSecurityManager.checkPermission((Permission)localObject2);
        }
      }
      catch (Exception localException2)
      {
        return null;
      }
      return Toolkit.getToolkit().getFontLoader().loadFont((String)localObject1, paramDouble);
    }
    localObject1 = null;
    URLConnection localURLConnection = null;
    Object localObject2 = null;
    try
    {
      localURLConnection = localURL.openConnection();
      localObject2 = localURLConnection.getInputStream();
      localObject1 = Toolkit.getToolkit().getFontLoader().loadFont((InputStream)localObject2, paramDouble);
      Font localFont;
      return (Font)localObject1;
    }
    catch (Exception localException4)
    {
      localFont = null;
      return localFont;
    }
    finally
    {
      try
      {
        if (localObject2 != null) {
          ((InputStream)localObject2).close();
        }
      }
      catch (Exception localException6) {}
    }
  }
  
  public static Font loadFont(InputStream paramInputStream, double paramDouble)
  {
    if (paramDouble <= 0.0D) {
      paramDouble = 12.0D;
    }
    return Toolkit.getToolkit().getFontLoader().loadFont(paramInputStream, paramDouble);
  }
  
  public String toString()
  {
    StringBuilder localStringBuilder = new StringBuilder("Font[name=");
    localStringBuilder = localStringBuilder.append(name);
    localStringBuilder = localStringBuilder.append(", family=").append(family);
    localStringBuilder = localStringBuilder.append(", style=").append(style);
    localStringBuilder = localStringBuilder.append(", size=").append(size);
    localStringBuilder = localStringBuilder.append("]");
    return localStringBuilder.toString();
  }
  
  public boolean equals(Object paramObject)
  {
    if (paramObject == this) {
      return true;
    }
    if ((paramObject instanceof Font))
    {
      Font localFont = (Font)paramObject;
      return (name == null ? name == null : name.equals(name)) && (size == size);
    }
    return false;
  }
  
  public int hashCode()
  {
    if (hash == 0)
    {
      long l = 17L;
      l = 37L * l + name.hashCode();
      l = 37L * l + Double.doubleToLongBits(size);
      hash = ((int)(l ^ l >> 32));
    }
    return hash;
  }
  
  @Deprecated
  public Object impl_getNativeFont()
  {
    return nativeFont;
  }
  
  @Deprecated
  public void impl_setNativeFont(Object paramObject, String paramString1, String paramString2, String paramString3)
  {
    nativeFont = paramObject;
    name = paramString1;
    family = paramString2;
    style = paramString3;
  }
  
  @Deprecated
  public static Font impl_NativeFont(Object paramObject, String paramString1, String paramString2, String paramString3, double paramDouble)
  {
    Font localFont = new Font(paramObject, paramString2, paramString1, paramString3, paramDouble);
    return localFont;
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Font
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import javafx.util.Builder;

public final class FontBuilder
  implements Builder<Font>
{
  private String name;
  private double size;
  
  public static FontBuilder create()
  {
    return new FontBuilder();
  }
  
  public FontBuilder name(String paramString)
  {
    name = paramString;
    return this;
  }
  
  public FontBuilder size(double paramDouble)
  {
    size = paramDouble;
    return this;
  }
  
  public Font build()
  {
    Font localFont = new Font(name, size);
    return localFont;
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.FontBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

public enum FontPosture
{
  REGULAR(new String[] { "", "regular" }),  ITALIC(new String[] { "italic" });
  
  private final String[] names;
  
  private FontPosture(String... paramVarArgs)
  {
    names = paramVarArgs;
  }
  
  public static FontPosture findByName(String paramString)
  {
    if (paramString == null) {
      return null;
    }
    for (FontPosture localFontPosture : values()) {
      for (String str : names) {
        if (str.equalsIgnoreCase(paramString)) {
          return localFontPosture;
        }
      }
    }
    return null;
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.FontPosture
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

public enum FontSmoothingType
{
  GRAY,  LCD;
  
  private FontSmoothingType() {}
}

/* Location:
 * Qualified Name:     javafx.scene.text.FontSmoothingType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

public enum FontWeight
{
  THIN(100, new String[] { "Thin" }),  EXTRA_LIGHT(200, new String[] { "Extra Light", "Ultra Light" }),  LIGHT(300, new String[] { "Light" }),  NORMAL(400, new String[] { "Normal", "Regular" }),  MEDIUM(500, new String[] { "Medium" }),  SEMI_BOLD(600, new String[] { "Semi Bold", "Demi Bold" }),  BOLD(700, new String[] { "Bold" }),  EXTRA_BOLD(800, new String[] { "Extra Bold", "Ultra Bold" }),  BLACK(900, new String[] { "Black", "Heavy" });
  
  private int weight;
  private final String[] names;
  
  private FontWeight(int paramInt, String... paramVarArgs)
  {
    names = paramVarArgs;
  }
  
  public int getWeight()
  {
    return weight;
  }
  
  public static FontWeight findByName(String paramString)
  {
    if (paramString == null) {
      return null;
    }
    for (FontWeight localFontWeight : values()) {
      for (String str : names) {
        if (str.equalsIgnoreCase(paramString)) {
          return localFontWeight;
        }
      }
    }
    return null;
  }
  
  public static FontWeight findByWeight(int paramInt)
  {
    if (paramInt <= 150) {
      return THIN;
    }
    if (paramInt <= 250) {
      return EXTRA_LIGHT;
    }
    if (paramInt < 350) {
      return LIGHT;
    }
    if (paramInt <= 450) {
      return NORMAL;
    }
    if (paramInt <= 550) {
      return MEDIUM;
    }
    if (paramInt < 650) {
      return SEMI_BOLD;
    }
    if (paramInt <= 750) {
      return BOLD;
    }
    if (paramInt <= 850) {
      return EXTRA_BOLD;
    }
    return BLACK;
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.FontWeight
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.scene.DirtyBits;
import javafx.beans.property.StringPropertyBase;

class Text$1
  extends StringPropertyBase
{
  Text$1(Text paramText, String paramString)
  {
    super(paramString);
  }
  
  public void invalidated()
  {
    Text.access$000(this$0, DirtyBits.NODE_CONTENTS);
    this$0.setImpl_selectionStart(-1);
    this$0.setImpl_selectionEnd(-1);
    this$0.impl_geomChanged();
    String str = get();
    if ((str == null) && (!isBound())) {
      set("");
    }
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "text";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import com.sun.javafx.scene.DirtyBits;

class Text$10
  extends StyleableObjectProperty<TextAlignment>
{
  Text$10(Text paramText, TextAlignment paramTextAlignment)
  {
    super(paramTextAlignment);
  }
  
  public void invalidated()
  {
    Text.access$1600(this$0, DirtyBits.TEXT_ATTRS);
    this$0.impl_geomChanged();
  }
  
  public StyleableProperty getStyleableProperty()
  {
    return Text.StyleableProperties.access$1700();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "textAlignment";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.10
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import com.sun.javafx.scene.DirtyBits;

class Text$11
  extends StyleableObjectProperty<FontSmoothingType>
{
  Text$11(Text paramText, FontSmoothingType paramFontSmoothingType)
  {
    super(paramFontSmoothingType);
  }
  
  public void invalidated()
  {
    Text.access$1800(this$0, DirtyBits.TEXT_ATTRS);
    this$0.impl_geomChanged();
  }
  
  public StyleableProperty getStyleableProperty()
  {
    return Text.StyleableProperties.access$1900();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "fontSmoothingType";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.11
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.scene.DirtyBits;
import javafx.beans.property.IntegerPropertyBase;

class Text$12
  extends IntegerPropertyBase
{
  Text$12(Text paramText, int paramInt)
  {
    super(paramInt);
  }
  
  protected void invalidated()
  {
    Text.access$2000(this$0, DirtyBits.TEXT_SELECTION);
    Text.access$2100(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "impl_selectionStart";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.12
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.scene.DirtyBits;
import javafx.beans.property.IntegerPropertyBase;

class Text$13
  extends IntegerPropertyBase
{
  Text$13(Text paramText, int paramInt)
  {
    super(paramInt);
  }
  
  protected void invalidated()
  {
    Text.access$2200(this$0, DirtyBits.TEXT_SELECTION);
    Text.access$2100(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "impl_selectionEnd";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.13
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import javafx.beans.property.IntegerPropertyBase;

class Text$14
  extends IntegerPropertyBase
{
  Text$14(Text paramText, int paramInt)
  {
    super(paramInt);
  }
  
  protected void invalidated()
  {
    Text.access$2100(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "impl_caretPosition";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.14
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import javafx.beans.property.BooleanPropertyBase;

class Text$15
  extends BooleanPropertyBase
{
  Text$15(Text paramText, boolean paramBoolean)
  {
    super(paramBoolean);
  }
  
  protected void invalidated()
  {
    Text.access$2100(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "impl_caretBias";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.15
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

class Text$16 {}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.16
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.scene.DirtyBits;
import javafx.beans.property.DoublePropertyBase;

class Text$2
  extends DoublePropertyBase
{
  Text$2(Text paramText) {}
  
  public void invalidated()
  {
    Text.access$100(this$0, DirtyBits.NODE_GEOMETRY);
    this$0.impl_geomChanged();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "x";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.2
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.scene.DirtyBits;
import javafx.beans.property.DoublePropertyBase;

class Text$3
  extends DoublePropertyBase
{
  Text$3(Text paramText) {}
  
  public void invalidated()
  {
    Text.access$200(this$0, DirtyBits.NODE_GEOMETRY);
    this$0.impl_geomChanged();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "y";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.text.Text.3
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.scene.text;

import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import
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