jfxrt

  public static CubicCurveToBuilder<?> create()
  {
    return new CubicCurveToBuilder();
  }
  
  public void applyTo(CubicCurveTo paramCubicCurveTo)
  {
    super.applyTo(paramCubicCurveTo);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramCubicCurveTo.setControlX1(controlX1);
    }
    if ((i & 0x2) != 0) {
      paramCubicCurveTo.setControlX2(controlX2);
    }
    if ((i & 0x4) != 0) {
      paramCubicCurveTo.setControlY1(controlY1);
    }
    if ((i & 0x8) != 0) {
      paramCubicCurveTo.setControlY2(controlY2);
    }
    if ((i & 0x10) != 0) {
      paramCubicCurveTo.setX(x);
    }
    if ((i & 0x20) != 0) {
      paramCubicCurveTo.setY(y);
    }
  }
  
  public B controlX1(double paramDouble)
  {
    controlX1 = paramDouble;
    __set |= 0x1;
    return this;
  }
  
  public B controlX2(double paramDouble)
  {
    controlX2 = paramDouble;
    __set |= 0x2;
    return this;
  }
  
  public B controlY1(double paramDouble)
  {
    controlY1 = paramDouble;
    __set |= 0x4;
    return this;
  }
  
  public B controlY2(double paramDouble)
  {
    controlY2 = paramDouble;
    __set |= 0x8;
    return this;
  }
  
  public B x(double paramDouble)
  {
    x = paramDouble;
    __set |= 0x10;
    return this;
  }
  
  public B y(double paramDouble)
  {
    y = paramDouble;
    __set |= 0x20;
    return this;
  }
  
  public CubicCurveTo build()
  {
    CubicCurveTo localCubicCurveTo = new CubicCurveTo();
    applyTo(localCubicCurveTo);
    return localCubicCurveTo;
  }
}

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

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

class Ellipse$1
  extends DoublePropertyBase
{
  Ellipse$1(Ellipse paramEllipse) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Ellipse.access$000(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "centerX";
  }
}

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

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

class Ellipse$2
  extends DoublePropertyBase
{
  Ellipse$2(Ellipse paramEllipse) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Ellipse.access$100(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "centerY";
  }
}

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

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

class Ellipse$3
  extends DoublePropertyBase
{
  Ellipse$3(Ellipse paramEllipse) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Ellipse.access$200(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "radiusX";
  }
}

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

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

class Ellipse$4
  extends DoublePropertyBase
{
  Ellipse$4(Ellipse paramEllipse) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Ellipse.access$300(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "radiusY";
  }
}

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

import com.sun.javafx.geom.BaseBounds;
import com.sun.javafx.geom.Ellipse2D;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.scene.DirtyBits;
import com.sun.javafx.sg.PGEllipse;
import com.sun.javafx.sg.PGNode;
import com.sun.javafx.sg.PGShape.Mode;
import com.sun.javafx.sg.PGShape.StrokeLineJoin;
import com.sun.javafx.tk.Toolkit;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.DoublePropertyBase;

public class Ellipse
  extends Shape
{
  private final Ellipse2D shape = new Ellipse2D();
  private static final int NON_RECTILINEAR_TYPE_MASK = -72;
  private DoubleProperty centerX;
  private DoubleProperty centerY;
  private DoubleProperty radiusX = new DoublePropertyBase()
  {
    public void invalidated()
    {
      impl_markDirty(DirtyBits.NODE_GEOMETRY);
      impl_geomChanged();
    }
    
    public Object getBean()
    {
      return Ellipse.this;
    }
    
    public String getName()
    {
      return "radiusX";
    }
  };
  private DoubleProperty radiusY = new DoublePropertyBase()
  {
    public void invalidated()
    {
      impl_markDirty(DirtyBits.NODE_GEOMETRY);
      impl_geomChanged();
    }
    
    public Object getBean()
    {
      return Ellipse.this;
    }
    
    public String getName()
    {
      return "radiusY";
    }
  };
  
  public Ellipse() {}
  
  public Ellipse(double paramDouble1, double paramDouble2)
  {
    setRadiusX(paramDouble1);
    setRadiusY(paramDouble2);
  }
  
  public Ellipse(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    this(paramDouble3, paramDouble4);
    setCenterX(paramDouble1);
    setCenterY(paramDouble2);
  }
  
  public final void setCenterX(double paramDouble)
  {
    if ((centerX != null) || (paramDouble != 0.0D)) {
      centerXProperty().set(paramDouble);
    }
  }
  
  public final double getCenterX()
  {
    return centerX == null ? 0.0D : centerX.get();
  }
  
  public final DoubleProperty centerXProperty()
  {
    if (centerX == null) {
      centerX = new DoublePropertyBase()
      {
        public void invalidated()
        {
          impl_markDirty(DirtyBits.NODE_GEOMETRY);
          impl_geomChanged();
        }
        
        public Object getBean()
        {
          return Ellipse.this;
        }
        
        public String getName()
        {
          return "centerX";
        }
      };
    }
    return centerX;
  }
  
  public final void setCenterY(double paramDouble)
  {
    if ((centerY != null) || (paramDouble != 0.0D)) {
      centerYProperty().set(paramDouble);
    }
  }
  
  public final double getCenterY()
  {
    return centerY == null ? 0.0D : centerY.get();
  }
  
  public final DoubleProperty centerYProperty()
  {
    if (centerY == null) {
      centerY = new DoublePropertyBase()
      {
        public void invalidated()
        {
          impl_markDirty(DirtyBits.NODE_GEOMETRY);
          impl_geomChanged();
        }
        
        public Object getBean()
        {
          return Ellipse.this;
        }
        
        public String getName()
        {
          return "centerY";
        }
      };
    }
    return centerY;
  }
  
  public final void setRadiusX(double paramDouble)
  {
    radiusX.set(paramDouble);
  }
  
  public final double getRadiusX()
  {
    return radiusX.get();
  }
  
  public final DoubleProperty radiusXProperty()
  {
    return radiusX;
  }
  
  public final void setRadiusY(double paramDouble)
  {
    radiusY.set(paramDouble);
  }
  
  public final double getRadiusY()
  {
    return radiusY.get();
  }
  
  public final DoubleProperty radiusYProperty()
  {
    return radiusY;
  }
  
  @Deprecated
  protected PGNode impl_createPGNode()
  {
    return Toolkit.getToolkit().createPGEllipse();
  }
  
  PGEllipse getPGEllipse()
  {
    return (PGEllipse)impl_getPGNode();
  }
  
  @Deprecated
  protected PGShape.StrokeLineJoin toPGLineJoin(StrokeLineJoin paramStrokeLineJoin)
  {
    return PGShape.StrokeLineJoin.BEVEL;
  }
  
  @Deprecated
  public BaseBounds impl_computeGeomBounds(BaseBounds paramBaseBounds, BaseTransform paramBaseTransform)
  {
    if (impl_mode == PGShape.Mode.EMPTY) {
      return paramBaseBounds.makeEmpty();
    }
    if ((paramBaseTransform.getType() & 0xFFFFFFB8) != 0) {
      return computeShapeBounds(paramBaseBounds, paramBaseTransform, impl_configShape());
    }
    double d1 = getCenterX() - getRadiusX();
    double d2 = getCenterY() - getRadiusY();
    double d3 = 2.0D * getRadiusX();
    double d4 = 2.0D * getRadiusY();
    double d6;
    double d5;
    if ((impl_mode == PGShape.Mode.FILL) || (getStrokeType() == StrokeType.INSIDE))
    {
      d5 = d6 = 0.0D;
    }
    else
    {
      d5 = getStrokeWidth();
      if (getStrokeType() == StrokeType.CENTERED) {
        d5 /= 2.0D;
      }
      d6 = 0.0D;
    }
    return computeBounds(paramBaseBounds, paramBaseTransform, d5, d6, d1, d2, d3, d4);
  }
  
  @Deprecated
  public Ellipse2D impl_configShape()
  {
    shape.setFrame((float)(getCenterX() - getRadiusX()), (float)(getCenterY() - getRadiusY()), (float)(getRadiusX() * 2.0D), (float)(getRadiusY() * 2.0D));
    return shape;
  }
  
  @Deprecated
  public void impl_updatePG()
  {
    super.impl_updatePG();
    if (impl_isDirty(DirtyBits.NODE_GEOMETRY))
    {
      PGEllipse localPGEllipse = getPGEllipse();
      localPGEllipse.updateEllipse((float)getCenterX(), (float)getCenterY(), (float)getRadiusX(), (float)getRadiusY());
    }
  }
}

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

import javafx.util.Builder;

public class EllipseBuilder<B extends EllipseBuilder<B>>
  extends ShapeBuilder<B>
  implements Builder<Ellipse>
{
  private int __set;
  private double centerX;
  private double centerY;
  private double radiusX;
  private double radiusY;
  
  public static EllipseBuilder<?> create()
  {
    return new EllipseBuilder();
  }
  
  public void applyTo(Ellipse paramEllipse)
  {
    super.applyTo(paramEllipse);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramEllipse.setCenterX(centerX);
    }
    if ((i & 0x2) != 0) {
      paramEllipse.setCenterY(centerY);
    }
    if ((i & 0x4) != 0) {
      paramEllipse.setRadiusX(radiusX);
    }
    if ((i & 0x8) != 0) {
      paramEllipse.setRadiusY(radiusY);
    }
  }
  
  public B centerX(double paramDouble)
  {
    centerX = paramDouble;
    __set |= 0x1;
    return this;
  }
  
  public B centerY(double paramDouble)
  {
    centerY = paramDouble;
    __set |= 0x2;
    return this;
  }
  
  public B radiusX(double paramDouble)
  {
    radiusX = paramDouble;
    __set |= 0x4;
    return this;
  }
  
  public B radiusY(double paramDouble)
  {
    radiusY = paramDouble;
    __set |= 0x8;
    return this;
  }
  
  public Ellipse build()
  {
    Ellipse localEllipse = new Ellipse();
    applyTo(localEllipse);
    return localEllipse;
  }
}

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

public enum FillRule
{
  EVEN_ODD,  NON_ZERO;
  
  private FillRule() {}
}

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

import javafx.beans.property.DoublePropertyBase;

class HLineTo$1
  extends DoublePropertyBase
{
  HLineTo$1(HLineTo paramHLineTo) {}
  
  public void invalidated()
  {
    this$0.u();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "x";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.HLineTo.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 HLineTo
  extends PathElement
{
  private DoubleProperty x = new DoublePropertyBase()
  {
    public void invalidated()
    {
      u();
    }
    
    public Object getBean()
    {
      return HLineTo.this;
    }
    
    public String getName()
    {
      return "x";
    }
  };
  
  public HLineTo() {}
  
  public HLineTo(double paramDouble)
  {
    setX(paramDouble);
  }
  
  public final void setX(double paramDouble)
  {
    x.set(paramDouble);
  }
  
  public final double getX()
  {
    return x.get();
  }
  
  public final DoubleProperty xProperty()
  {
    return x;
  }
  
  void addTo(PGPath paramPGPath)
  {
    if (isAbsolute()) {
      paramPGPath.addLineTo((float)getX(), paramPGPath.getCurrentY());
    } else {
      paramPGPath.addLineTo((float)(paramPGPath.getCurrentX() + getX()), paramPGPath.getCurrentY());
    }
  }
  
  @Deprecated
  public void impl_addTo(Path2D paramPath2D)
  {
    if (isAbsolute()) {
      paramPath2D.lineTo((float)getX(), paramPath2D.getCurrentY());
    } else {
      paramPath2D.lineTo((float)(paramPath2D.getCurrentX() + getX()), paramPath2D.getCurrentY());
    }
  }
}

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

import javafx.util.Builder;

public class HLineToBuilder<B extends HLineToBuilder<B>>
  extends PathElementBuilder<B>
  implements Builder<HLineTo>
{
  private boolean __set;
  private double x;
  
  public static HLineToBuilder<?> create()
  {
    return new HLineToBuilder();
  }
  
  public void applyTo(HLineTo paramHLineTo)
  {
    super.applyTo(paramHLineTo);
    if (__set) {
      paramHLineTo.setX(x);
    }
  }
  
  public B x(double paramDouble)
  {
    x = paramDouble;
    __set = true;
    return this;
  }
  
  public HLineTo build()
  {
    HLineTo localHLineTo = new HLineTo();
    applyTo(localHLineTo);
    return localHLineTo;
  }
}

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

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

class Line$1
  extends DoublePropertyBase
{
  Line$1(Line paramLine) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Line.access$000(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "startX";
  }
}

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

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

class Line$2
  extends DoublePropertyBase
{
  Line$2(Line paramLine) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Line.access$100(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "startY";
  }
}

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

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

class Line$3
  extends DoublePropertyBase
{
  Line$3(Line paramLine) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Line.access$200(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "endX";
  }
}

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

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

class Line$4
  extends DoublePropertyBase
{
  Line$4(Line paramLine) {}
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_GEOMETRY);
    Line.access$300(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "endY";
  }
}

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

import com.sun.javafx.css.StyleableProperty;
import com.sun.javafx.geom.BaseBounds;
import com.sun.javafx.geom.Line2D;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.scene.DirtyBits;
import com.sun.javafx.sg.PGLine;
import com.sun.javafx.sg.PGNode;
import com.sun.javafx.sg.PGShape.Mode;
import com.sun.javafx.tk.Toolkit;
import java.util.List;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.DoublePropertyBase;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;

public class Line
  extends Shape
{
  private final Line2D shape = new Line2D();
  private DoubleProperty startX;
  private DoubleProperty startY;
  private DoubleProperty endX;
  private DoubleProperty endY;
  
  public Line()
  {
    StyleableProperty localStyleableProperty1 = StyleableProperty.getStyleableProperty(fillProperty());
    localStyleableProperty1.set(this, null);
    StyleableProperty localStyleableProperty2 = StyleableProperty.getStyleableProperty(strokeProperty());
    localStyleableProperty2.set(this, Color.BLACK);
  }
  
  public Line(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    StyleableProperty localStyleableProperty1 = StyleableProperty.getStyleableProperty(fillProperty());
    localStyleableProperty1.set(this, null);
    StyleableProperty localStyleableProperty2 = StyleableProperty.getStyleableProperty(strokeProperty());
    localStyleableProperty2.set(this, Color.BLACK);
    setStartX(paramDouble1);
    setStartY(paramDouble2);
    setEndX(paramDouble3);
    setEndY(paramDouble4);
  }
  
  public final void setStartX(double paramDouble)
  {
    if ((startX != null) || (paramDouble != 0.0D)) {
      startXProperty().set(paramDouble);
    }
  }
  
  public final double getStartX()
  {
    return startX == null ? 0.0D : startX.get();
  }
  
  public final DoubleProperty startXProperty()
  {
    if (startX == null) {
      startX = new DoublePropertyBase()
      {
        public void invalidated()
        {
          impl_markDirty(DirtyBits.NODE_GEOMETRY);
          impl_geomChanged();
        }
        
        public Object getBean()
        {
          return Line.this;
        }
        
        public String getName()
        {
          return "startX";
        }
      };
    }
    return startX;
  }
  
  public final void setStartY(double paramDouble)
  {
    if ((startY != null) || (paramDouble != 0.0D)) {
      startYProperty().set(paramDouble);
    }
  }
  
  public final double getStartY()
  {
    return startY == null ? 0.0D : startY.get();
  }
  
  public final DoubleProperty startYProperty()
  {
    if (startY == null) {
      startY = new DoublePropertyBase()
      {
        public void invalidated()
        {
          impl_markDirty(DirtyBits.NODE_GEOMETRY);
          impl_geomChanged();
        }
        
        public Object getBean()
        {
          return Line.this;
        }
        
        public String getName()
        {
          return "startY";
        }
      };
    }
    return startY;
  }
  
  public final void setEndX(double paramDouble)
  {
    if ((endX != null) || (paramDouble != 0.0D)) {
      endXProperty().set(paramDouble);
    }
  }
  
  public final double getEndX()
  {
    return endX == null ? 0.0D : endX.get();
  }
  
  public final DoubleProperty endXProperty()
  {
    if (endX == null) {
      endX = new DoublePropertyBase()
      {
        public void invalidated()
        {
          impl_markDirty(DirtyBits.NODE_GEOMETRY);
          impl_geomChanged();
        }
        
        public Object getBean()
        {
          return Line.this;
        }
        
        public String getName()
        {
          return "endX";
        }
      };
    }
    return endX;
  }
  
  public final void setEndY(double paramDouble)
  {
    if ((endY != null) || (paramDouble != 0.0D)) {
      endYProperty().set(paramDouble);
    }
  }
  
  public final double getEndY()
  {
    return endY == null ? 0.0D : endY.get();
  }
  
  public final DoubleProperty endYProperty()
  {
    if (endY == null) {
      endY = new DoublePropertyBase()
      {
        public void invalidated()
        {
          impl_markDirty(DirtyBits.NODE_GEOMETRY);
          impl_geomChanged();
        }
        
        public Object getBean()
        {
          return Line.this;
        }
        
        public String getName()
        {
          return "endY";
        }
      };
    }
    return endY;
  }
  
  @Deprecated
  protected PGNode impl_createPGNode()
  {
    return Toolkit.getToolkit().createPGLine();
  }
  
  PGLine getPGLine()
  {
    return (PGLine)impl_getPGNode();
  }
  
  @Deprecated
  public BaseBounds impl_computeGeomBounds(BaseBounds paramBaseBounds, BaseTransform paramBaseTransform)
  {
    if ((impl_mode == PGShape.Mode.FILL) || (impl_mode == PGShape.Mode.EMPTY) || (getStrokeType() == StrokeType.INSIDE)) {
      return paramBaseBounds.makeEmpty();
    }
    double d1 = getStartX();
    double d2 = getEndX();
    double d3 = getStartY();
    double d4 = getEndY();
    double d5 = getStrokeWidth();
    if (getStrokeType() == StrokeType.CENTERED) {
      d5 /= 2.0D;
    }
    double d9;
    if (paramBaseTransform.isTranslateOrIdentity())
    {
      d5 = Math.max(d5, 0.5D);
      if (paramBaseTransform.getType() == 1)
      {
        d8 = paramBaseTransform.getMxt();
        d9 = paramBaseTransform.getMyt();
        d1 += d8;
        d3 += d9;
        d2 += d8;
        d4 += d9;
      }
      if ((d3 == d4) && (d1 != d2))
      {
        d7 = d5;
        d6 = getStrokeLineCap() == StrokeLineCap.BUTT ? 0.0D : d5;
      }
      else if ((d1 == d2) && (d3 != d4))
      {
        d6 = d5;
        d7 = getStrokeLineCap() == StrokeLineCap.BUTT ? 0.0D : d5;
      }
      else
      {
        if (getStrokeLineCap() == StrokeLineCap.SQUARE) {
          d5 *= Math.sqrt(2.0D);
        }
        d6 = d7 = d5;
      }
      if (d1 > d2)
      {
        d8 = d1;
        d1 = d2;
        d2 = d8;
      }
      if (d3 > d4)
      {
        d8 = d3;
        d3 = d4;
        d4 = d8;
      }
      d1 -= d6;
      d3 -= d7;
      d2 += d6;
      d4 += d7;
      paramBaseBounds = paramBaseBounds.deriveWithNewBounds((float)d1, (float)d3, 0.0F, (float)d2, (float)d4, 0.0F);
      return paramBaseBounds;
    }
    double d6 = d2 - d1;
    double d7 = d4 - d3;
    double d8 = Math.sqrt(d6 * d6 + d7 * d7);
    if (d8 == 0.0D)
    {
      d6 = d5;
      d7 = 0.0D;
    }
    else
    {
      d6 = d5 * d6 / d8;
      d7 = d5 * d7 / d8;
    }
    double d10;
    if (getStrokeLineCap() != StrokeLineCap.BUTT)
    {
      d9 = d6;
      d10 = d7;
    }
    else
    {
      d9 = d10 = 0.0D;
    }
    double[] arrayOfDouble = { d1 - d7 - d9, d3 + d6 - d10, d1 + d7 - d9, d3 - d6 - d10, d2 + d7 + d9, d4 - d6 + d10, d2 - d7 + d9, d4 + d6 + d10 };
    paramBaseTransform.transform(arrayOfDouble, 0, arrayOfDouble, 0, 4);
    d1 = Math.min(Math.min(arrayOfDouble[0], arrayOfDouble[2]), Math.min(arrayOfDouble[4], arrayOfDouble[6]));
    d3 = Math.min(Math.min(arrayOfDouble[1], arrayOfDouble[3]), Math.min(arrayOfDouble[5], arrayOfDouble[7]));
    d2 = Math.max(Math.max(arrayOfDouble[0], arrayOfDouble[2]), Math.max(arrayOfDouble[4], arrayOfDouble[6]));
    d4 = Math.max(Math.max(arrayOfDouble[1], arrayOfDouble[3]), Math.max(arrayOfDouble[5], arrayOfDouble[7]));
    d1 -= 0.5D;
    d3 -= 0.5D;
    d2 += 0.5D;
    d4 += 0.5D;
    paramBaseBounds = paramBaseBounds.deriveWithNewBounds((float)d1, (float)d3, 0.0F, (float)d2, (float)d4, 0.0F);
    return paramBaseBounds;
  }
  
  @Deprecated
  public Line2D impl_configShape()
  {
    shape.setLine((float)getStartX(), (float)getStartY(), (float)getEndX(), (float)getEndY());
    return shape;
  }
  
  @Deprecated
  public void impl_updatePG()
  {
    super.impl_updatePG();
    if (impl_isDirty(DirtyBits.NODE_GEOMETRY))
    {
      PGLine localPGLine = getPGLine();
      localPGLine.updateLine((float)getStartX(), (float)getStartY(), (float)getEndX(), (float)getEndY());
    }
  }
  
  @Deprecated
  protected Paint impl_cssGetFillInitialValue()
  {
    return null;
  }
  
  @Deprecated
  protected Paint impl_cssGetStrokeInitialValue()
  {
    return Color.BLACK;
  }
  
  @Deprecated
  public static List<StyleableProperty> impl_CSS_STYLEABLES()
  {
    return Shape.impl_CSS_STYLEABLES();
  }
  
  @Deprecated
  public List<StyleableProperty> impl_getStyleableProperties()
  {
    return impl_CSS_STYLEABLES();
  }
}

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

import javafx.util.Builder;

public class LineBuilder<B extends LineBuilder<B>>
  extends ShapeBuilder<B>
  implements Builder<Line>
{
  private int __set;
  private double endX;
  private double endY;
  private double startX;
  private double startY;
  
  public static LineBuilder<?> create()
  {
    return new LineBuilder();
  }
  
  public void applyTo(Line paramLine)
  {
    super.applyTo(paramLine);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramLine.setEndX(endX);
    }
    if ((i & 0x2) != 0) {
      paramLine.setEndY(endY);
    }
    if ((i & 0x4) != 0) {
      paramLine.setStartX(startX);
    }
    if ((i & 0x8) != 0) {
      paramLine.setStartY(startY);
    }
  }
  
  public B endX(double paramDouble)
  {
    endX = paramDouble;
    __set |= 0x1;
    return this;
  }
  
  public B endY(double paramDouble)
  {
    endY = paramDouble;
    __set |= 0x2;
    return this;
  }
  
  public B startX(double paramDouble)
  {
    startX = paramDouble;
    __set |= 0x4;
    return this;
  }
  
  public B startY(double paramDouble)
  {
    startY = paramDouble;
    __set |= 0x8;
    return this;
  }
  
  public Line build()
  {
    Line localLine = new Line();
    applyTo(localLine);
    return localLine;
  }
}

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

import javafx.beans.property.DoublePropertyBase;

class LineTo$1
  extends DoublePropertyBase
{
  LineTo$1(LineTo paramLineTo) {}
  
  public void invalidated()
  {
    this$0.u();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "x";
  }
}

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

import javafx.beans.property.DoublePropertyBase;

class LineTo$2
  extends DoublePropertyBase
{
  LineTo$2(LineTo paramLineTo) {}
  
  public void invalidated()
  {
    this$0.u();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "y";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.LineTo.2
 * 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 LineTo
  extends PathElement
{
  private DoubleProperty x;
  private DoubleProperty y;
  
  public LineTo() {}
  
  public LineTo(double paramDouble1, double paramDouble2)
  {
    setX(paramDouble1);
    setY(paramDouble2);
  }
  
  public final void setX(double paramDouble)
  {
    if ((x != null) || (paramDouble != 0.0D)) {
      xProperty().set(paramDouble);
    }
  }
  
  public final double getX()
  {
    return x == null ? 0.0D : x.get();
  }
  
  public final DoubleProperty xProperty()
  {
    if (x == null) {
      x = new DoublePropertyBase()
      {
        public void invalidated()
        {
          u();
        }
        
        public Object getBean()
        {
          return LineTo.this;
        }
        
        public String getName()
        {
          return "x";
        }
      };
    }
    return x;
  }
  
  public final void setY(double paramDouble)
  {
    if ((y != null) || (paramDouble != 0.0D)) {
      yProperty().set(paramDouble);
    }
  }
  
  public final double getY()
  {
    return y == null ? 0.0D : y.get();
  }
  
  public final DoubleProperty yProperty()
  {
    if (y == null) {
      y = new DoublePropertyBase()
      {
        public void invalidated()
        {
          u();
        }
        
        public Object getBean()
        {
          return LineTo.this;
        }
        
        public String getName()
        {
          return "y";
        }
      };
    }
    return y;
  }
  
  void addTo(PGPath paramPGPath)
  {
    if (isAbsolute()) {
      paramPGPath.addLineTo((float)getX(), (float)getY());
    } else {
      paramPGPath.addLineTo((float)(paramPGPath.getCurrentX() + getX()), (float)(paramPGPath.getCurrentY() + getY()));
    }
  }
  
  @Deprecated
  public void impl_addTo(Path2D paramPath2D)
  {
    if (isAbsolute()) {
      paramPath2D.lineTo((float)getX(), (float)getY());
    } else {
      paramPath2D.lineTo((float)(paramPath2D.getCurrentX() + getX()), (float)(paramPath2D.getCurrentY() + getY()));
    }
  }
}

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

import javafx.util.Builder;

public class LineToBuilder<B extends LineToBuilder<B>>
  extends PathElementBuilder<B>
  implements Builder<LineTo>
{
  private int __set;
  private double x;
  private double y;
  
  public static LineToBuilder<?> create()
  {
    return new LineToBuilder();
  }
  
  public void applyTo(LineTo paramLineTo)
  {
    super.applyTo(paramLineTo);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramLineTo.setX(x);
    }
    if ((i & 0x2) != 0) {
      paramLineTo.setY(y);
    }
  }
  
  public B x(double paramDouble)
  {
    x = paramDouble;
    __set |= 0x1;
    return this;
  }
  
  public B y(double paramDouble)
  {
    y = paramDouble;
    __set |= 0x2;
    return this;
  }
  
  public LineTo build()
  {
    LineTo localLineTo = new LineTo();
    applyTo(localLineTo);
    return localLineTo;
  }
}

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

import javafx.beans.property.DoublePropertyBase;

class MoveTo$1
  extends DoublePropertyBase
{
  MoveTo$1(MoveTo paramMoveTo) {}
  
  public void invalidated()
  {
    this$0.u();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "x";
  }
}

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

import javafx.beans.property.DoublePropertyBase;

class MoveTo$2
  extends DoublePropertyBase
{
  MoveTo$2(MoveTo paramMoveTo) {}
  
  public void invalidated()
  {
    this$0.u();
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "y";
  }
}

/* Location:
 * Qualified Name:     javafx.scene.shape.MoveTo.2
 * 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 MoveTo
  extends PathElement
{
  private DoubleProperty x;
  private DoubleProperty y;
  
  public MoveTo() {}
  
  public MoveTo(double paramDouble1, double paramDouble2)
  {
    setX(paramDouble1);
    setY(paramDouble2);
  }
  
  public final void setX(double paramDouble)
  {
    if ((x != null) || (paramDouble != 0.0D)) {
      xProperty().set(paramDouble);
    }
  }
  
  public final double getX()
  {
    return x == null ? 0.0D : x.get();
  }
  
  public final DoubleProperty xProperty()
  {
    if (x == null) {
      x = new DoublePropertyBase()
      {
        public void invalidated()
        {
          u();
        }
        
        public Object getBean()
        {
          return MoveTo.this;
        }
        
        public String getName()
        {
          return "x";
        }
      };
    }
    return x;
  }
  
  public final void setY(double paramDouble)
  {
    if ((y != null) || (paramDouble != 0.0D)) {
      yProperty().set(paramDouble);
    }
  }
  
  public final double getY()
  {
    return y == null ? 0.0D : y.get();
  }
  
  public final DoubleProperty yProperty()
  {
    if (y == null) {
      y = new DoublePropertyBase()
      {
        public void invalidated()
        {
          u();
        }
        
        public Object getBean()
        {
          return MoveTo.this;
        }
        
        public String getName()
        {
          return "y";
        }
      };
    }
    return y;
  }
  
  void addTo(PGPath paramPGPath)
  {
    if (isAbsolute()) {
      paramPGPath.addMoveTo((float)getX(), (float)getY());
    } else {
      paramPGPath.addMoveTo((float)(paramPGPath.getCurrentX() + getX()), (float)(paramPGPath.getCurrentY() + getY()));
    }
  }
  
  @Deprecated
  public void impl_addTo(Path2D paramPath2D)
  {
    if (isAbsolute()) {
      paramPath2D.moveTo((float)getX(), (float)getY());
    } else {
      paramPath2D.moveTo((float)(paramPath2D.getCurrentX() + getX()), (float)(paramPath2D.getCurrentY() + getY()));
    }
  }
}

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

import javafx.util.Builder;

public class MoveToBuilder<B extends MoveToBuilder<B>>
  extends PathElementBuilder<B>
  implements Builder<MoveTo>
{
  private int __set;
  private double x;
  private double y;
  
  public static MoveToBuilder<?> create()
  {
    return new MoveToBuilder();
  }
  
  public void applyTo(MoveTo paramMoveTo)
  {
    super.applyTo(paramMoveTo);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramMoveTo.setX(x);
    }
    if ((i & 0x2) != 0) {
      paramMoveTo.setY(y);
    }
  }
  
  public B x(double paramDouble)
  {
    x = paramDouble;
    __set |= 0x1;
    return this;
  }
  
  public B y(double paramDouble)
  {
    y = paramDouble;
    __set |= 0x2;
    return this;
  }
  
  public MoveTo build()
  {
    MoveTo localMoveTo = new MoveTo();
    applyTo(localMoveTo);
    return localMoveTo;
  }
}

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

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

class Path$1
  extends ObjectPropertyBase<FillRule>
{
  Path$1(Path paramPath, FillRule paramFillRule)
  {
    super(paramFillRule);
  }
  
  public void invalidated()
  {
    this$0.impl_markDirty(DirtyBits.NODE_CONTENTS);
    Path.access$000(this$0);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "fillRule";
  }
}

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

import com.sun.javafx.collections.TrackableObservableList;
import com.sun.javafx.scene.DirtyBits;
import java.util.List;
import javafx.collections.ListChangeListener.Change;
import javafx.collections.ObservableList;

class Path$2
  extends TrackableObservableList<PathElement>
{
  Path$2(Path paramPath) {}
  
  protected void onChanged(ListChangeListener.Change<PathElement> paramChange)
  {
    ObservableList localObservableList = paramChange.getList();
    int i = 0;
    while (paramChange.next())
    {
      List localList = paramChange.getRemoved();
      for (int k = 0; k < paramChange.getRemovedSize(); k++) {
        ((PathElement)localList.get(k)).removeNode(this$0);
      }
      for (k = paramChange.getFrom(); k < paramChange.getTo(); k++) {
        ((PathElement)localObservableList.get(k)).addNode(this$0);
      }
      i |= (paramChange.getFrom() == 0 ? 1 : 0);
    }
    if (Path.access$100(this$0) != null)
    {
      paramChange.reset();
      paramChange.next();
      if ((paramChange.getFrom() == paramChange.getList().size()) && (!paramChange.wasRemoved()) && (paramChange.wasAdded())) {
        for (int j = paramChange.getFrom(); j < paramChange.getTo(); j++) {
          ((PathElement)localObservableList.get(j)).impl_addTo(Path.access$100(this$0));
        }
      } else {
        Path.access$102(this$0, null);
      }
    }
    if (i != 0) {
      Path.access$202(this$0, Path.access$300(this$0));
    }
    this$0.impl_markDirty(DirtyBits.NODE_CONTENTS);
    Path.access$400(this$0);
  }
}

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

import com.sun.javafx.collections.TrackableObservableList;
import com.sun.javafx.css.StyleableProperty;
import com.sun.javafx.geom.Path2D;
import com.sun.javafx.scene.DirtyBits;
import com.sun.javafx.scene.shape.PathUtils;
import com.sun.javafx.sg.PGNode;
import com.sun.javafx.sg.PGPath;
import com.sun.javafx.sg.PGPath.FillRule;
import com.sun.javafx.tk.Toolkit;
import java.io.PrintStream;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ObjectPropertyBase;
import javafx.collections.ListChangeListener.Change;
import javafx.collections.ObservableList;
import javafx.geometry.BoundingBox;
import javafx.geometry.Bounds;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;

public class Path
  extends Shape
{
  private Path2D path2d = null;
  private ObjectProperty<FillRule> fillRule;
  private boolean isPathValid;
  private final ObservableList<PathElement> elements;
  
  public Path()
  {
    StyleableProperty localStyleableProperty1 = StyleableProperty.getStyleableProperty(fillProperty());
    localStyleableProperty1.set(this, null);
    StyleableProperty localStyleableProperty2 = StyleableProperty.getStyleableProperty(strokeProperty());
    localStyleableProperty2.set(this, Color.BLACK);
    elements = new TrackableObservableList()
    {
      protected void onChanged(ListChangeListener.Change<PathElement> paramAnonymousChange)
      {
        ObservableList localObservableList = paramAnonymousChange.getList();
        int i = 0;
        while (paramAnonymousChange.next())
        {
          List localList = paramAnonymousChange.getRemoved();
          for (int k = 0; k < paramAnonymousChange.getRemovedSize(); k++) {
            ((PathElement)localList.get(k)).removeNode(Path.this);
          }
          for (k = paramAnonymousChange.getFrom(); k < paramAnonymousChange.getTo(); k++) {
            ((PathElement)localObservableList.get(k)).addNode(Path.this);
          }
          i |= (paramAnonymousChange.getFrom() == 0 ? 1 : 0);
        }
        if (path2d != null)
        {
          paramAnonymousChange.reset();
          paramAnonymousChange.next();
          if ((paramAnonymousChange.getFrom() == paramAnonymousChange.getList().size()) && (!paramAnonymousChange.wasRemoved()) && (paramAnonymousChange.wasAdded())) {
            for (int j = paramAnonymousChange.getFrom(); j < paramAnonymousChange.getTo(); j++) {
              ((PathElement)localObservableList.get(j)).impl_addTo(path2d);
            }
          } else {
            path2d = null;
          }
        }
        if (i != 0) {
          isPathValid = Path.this.impl_isFirstPathElementValid();
        }
        impl_markDirty(DirtyBits.NODE_CONTENTS);
        impl_geomChanged();
      }
    };
  }
  
  p
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