jfxrt

    {
      needRoom(false, 2);
      pointTypes[(numTypes++)] = 0;
      floatCoords[(numCoords++)] = (moveX = prevX = currX = paramFloat1);
      floatCoords[(numCoords++)] = (moveY = prevY = currY = paramFloat2);
    }
  }
  
  public final void moveToRel(float paramFloat1, float paramFloat2)
  {
    if ((numTypes > 0) && (pointTypes[(numTypes - 1)] == 0))
    {
      floatCoords[(numCoords - 2)] = (moveX = prevX = currX += paramFloat1);
      floatCoords[(numCoords - 1)] = (moveY = prevY = currY += paramFloat2);
    }
    else
    {
      needRoom(true, 2);
      pointTypes[(numTypes++)] = 0;
      floatCoords[(numCoords++)] = (moveX = prevX = currX += paramFloat1);
      floatCoords[(numCoords++)] = (moveY = prevY = currY += paramFloat2);
    }
  }
  
  public final void lineTo(float paramFloat1, float paramFloat2)
  {
    needRoom(true, 2);
    pointTypes[(numTypes++)] = 1;
    floatCoords[(numCoords++)] = (prevX = currX = paramFloat1);
    floatCoords[(numCoords++)] = (prevY = currY = paramFloat2);
  }
  
  public final void lineToRel(float paramFloat1, float paramFloat2)
  {
    needRoom(true, 2);
    pointTypes[(numTypes++)] = 1;
    floatCoords[(numCoords++)] = (prevX = currX += paramFloat1);
    floatCoords[(numCoords++)] = (prevY = currY += paramFloat2);
  }
  
  public final void quadTo(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    needRoom(true, 4);
    pointTypes[(numTypes++)] = 2;
    floatCoords[(numCoords++)] = (prevX = paramFloat1);
    floatCoords[(numCoords++)] = (prevY = paramFloat2);
    floatCoords[(numCoords++)] = (currX = paramFloat3);
    floatCoords[(numCoords++)] = (currY = paramFloat4);
  }
  
  public final void quadToRel(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    needRoom(true, 4);
    pointTypes[(numTypes++)] = 2;
    floatCoords[(numCoords++)] = (prevX = currX + paramFloat1);
    floatCoords[(numCoords++)] = (prevY = currY + paramFloat2);
    floatCoords[(numCoords++)] = (currX += paramFloat3);
    floatCoords[(numCoords++)] = (currY += paramFloat4);
  }
  
  public final void quadToSmooth(float paramFloat1, float paramFloat2)
  {
    needRoom(true, 4);
    pointTypes[(numTypes++)] = 2;
    floatCoords[(numCoords++)] = (prevX = currX * 2.0F - prevX);
    floatCoords[(numCoords++)] = (prevY = currY * 2.0F - prevY);
    floatCoords[(numCoords++)] = (currX = paramFloat1);
    floatCoords[(numCoords++)] = (currY = paramFloat2);
  }
  
  public final void quadToSmoothRel(float paramFloat1, float paramFloat2)
  {
    needRoom(true, 4);
    pointTypes[(numTypes++)] = 2;
    floatCoords[(numCoords++)] = (prevX = currX * 2.0F - prevX);
    floatCoords[(numCoords++)] = (prevY = currY * 2.0F - prevY);
    floatCoords[(numCoords++)] = (currX += paramFloat1);
    floatCoords[(numCoords++)] = (currY += paramFloat2);
  }
  
  public final void curveTo(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6)
  {
    needRoom(true, 6);
    pointTypes[(numTypes++)] = 3;
    floatCoords[(numCoords++)] = paramFloat1;
    floatCoords[(numCoords++)] = paramFloat2;
    floatCoords[(numCoords++)] = (prevX = paramFloat3);
    floatCoords[(numCoords++)] = (prevY = paramFloat4);
    floatCoords[(numCoords++)] = (currX = paramFloat5);
    floatCoords[(numCoords++)] = (currY = paramFloat6);
  }
  
  public final void curveToRel(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6)
  {
    needRoom(true, 6);
    pointTypes[(numTypes++)] = 3;
    floatCoords[(numCoords++)] = (currX + paramFloat1);
    floatCoords[(numCoords++)] = (currY + paramFloat2);
    floatCoords[(numCoords++)] = (prevX = currX + paramFloat3);
    floatCoords[(numCoords++)] = (prevY = currY + paramFloat4);
    floatCoords[(numCoords++)] = (currX += paramFloat5);
    floatCoords[(numCoords++)] = (currY += paramFloat6);
  }
  
  public final void curveToSmooth(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    needRoom(true, 6);
    pointTypes[(numTypes++)] = 3;
    floatCoords[(numCoords++)] = (currX * 2.0F - prevX);
    floatCoords[(numCoords++)] = (currY * 2.0F - prevY);
    floatCoords[(numCoords++)] = (prevX = paramFloat1);
    floatCoords[(numCoords++)] = (prevY = paramFloat2);
    floatCoords[(numCoords++)] = (currX = paramFloat3);
    floatCoords[(numCoords++)] = (currY = paramFloat4);
  }
  
  public final void curveToSmoothRel(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    needRoom(true, 6);
    pointTypes[(numTypes++)] = 3;
    floatCoords[(numCoords++)] = (currX * 2.0F - prevX);
    floatCoords[(numCoords++)] = (currY * 2.0F - prevY);
    floatCoords[(numCoords++)] = (prevX = currX + paramFloat1);
    floatCoords[(numCoords++)] = (prevY = currY + paramFloat2);
    floatCoords[(numCoords++)] = (currX += paramFloat3);
    floatCoords[(numCoords++)] = (currY += paramFloat4);
  }
  
  public final void ovalQuadrantTo(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6)
  {
    if (numTypes < 1) {
      throw new IllegalPathStateException("missing initial moveto in path definition");
    }
    appendOvalQuadrant(currX, currY, paramFloat1, paramFloat2, paramFloat3, paramFloat4, paramFloat5, paramFloat6, CornerPrefix.CORNER_ONLY);
  }
  
  public final void appendOvalQuadrant(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6, float paramFloat7, float paramFloat8, CornerPrefix paramCornerPrefix)
  {
    if ((paramFloat7 < 0.0F) || (paramFloat7 > paramFloat8) || (paramFloat8 > 1.0F)) {
      throw new IllegalArgumentException("0 <= tfrom <= tto <= 1 required");
    }
    float f1 = (float)(paramFloat1 + (paramFloat3 - paramFloat1) * 0.5522847498307933D);
    float f2 = (float)(paramFloat2 + (paramFloat4 - paramFloat2) * 0.5522847498307933D);
    float f3 = (float)(paramFloat5 + (paramFloat3 - paramFloat5) * 0.5522847498307933D);
    float f4 = (float)(paramFloat6 + (paramFloat4 - paramFloat6) * 0.5522847498307933D);
    if (paramFloat8 < 1.0F)
    {
      float f5 = 1.0F - paramFloat8;
      paramFloat5 += (f3 - paramFloat5) * f5;
      paramFloat6 += (f4 - paramFloat6) * f5;
      f3 += (f1 - f3) * f5;
      f4 += (f2 - f4) * f5;
      f1 += (paramFloat1 - f1) * f5;
      f2 += (paramFloat2 - f2) * f5;
      paramFloat5 += (f3 - paramFloat5) * f5;
      paramFloat6 += (f4 - paramFloat6) * f5;
      f3 += (f1 - f3) * f5;
      f4 += (f2 - f4) * f5;
      paramFloat5 += (f3 - paramFloat5) * f5;
      paramFloat6 += (f4 - paramFloat6) * f5;
    }
    if (paramFloat7 > 0.0F)
    {
      if (paramFloat8 < 1.0F) {
        paramFloat7 /= paramFloat8;
      }
      paramFloat1 += (f1 - paramFloat1) * paramFloat7;
      paramFloat2 += (f2 - paramFloat2) * paramFloat7;
      f1 += (f3 - f1) * paramFloat7;
      f2 += (f4 - f2) * paramFloat7;
      f3 += (paramFloat5 - f3) * paramFloat7;
      f4 += (paramFloat6 - f4) * paramFloat7;
      paramFloat1 += (f1 - paramFloat1) * paramFloat7;
      paramFloat2 += (f2 - paramFloat2) * paramFloat7;
      f1 += (f3 - f1) * paramFloat7;
      f2 += (f4 - f2) * paramFloat7;
      paramFloat1 += (f1 - paramFloat1) * paramFloat7;
      paramFloat2 += (f2 - paramFloat2) * paramFloat7;
    }
    if (paramCornerPrefix == CornerPrefix.MOVE_THEN_CORNER) {
      moveTo(paramFloat1, paramFloat2);
    } else if ((paramCornerPrefix == CornerPrefix.LINE_THEN_CORNER) && ((numTypes == 1) || (paramFloat1 != currX) || (paramFloat2 != currY))) {
      lineTo(paramFloat1, paramFloat2);
    }
    if ((paramFloat7 == paramFloat8) || ((paramFloat1 == f1) && (f1 == f3) && (f3 == paramFloat5) && (paramFloat2 == f2) && (f2 == f4) && (f4 == paramFloat6)))
    {
      if (paramCornerPrefix != CornerPrefix.LINE_THEN_CORNER) {
        lineTo(paramFloat5, paramFloat6);
      }
    }
    else {
      curveTo(f1, f2, f3, f4, paramFloat5, paramFloat6);
    }
  }
  
  public void arcTo(float paramFloat1, float paramFloat2, float paramFloat3, boolean paramBoolean1, boolean paramBoolean2, float paramFloat4, float paramFloat5)
  {
    if (numTypes < 1) {
      throw new IllegalPathStateException("missing initial moveto in path definition");
    }
    double d1 = Math.abs(paramFloat1);
    double d2 = Math.abs(paramFloat2);
    if ((d1 == 0.0D) || (d2 == 0.0D))
    {
      lineTo(paramFloat4, paramFloat5);
      return;
    }
    double d3 = currX;
    double d4 = currY;
    double d5 = paramFloat4;
    double d6 = paramFloat5;
    if ((d3 == d5) && (d4 == d6)) {
      return;
    }
    double d7;
    double d8;
    if (paramFloat3 == 0.0D)
    {
      d7 = 1.0D;
      d8 = 0.0D;
    }
    else
    {
      d7 = Math.cos(paramFloat3);
      d8 = Math.sin(paramFloat3);
    }
    double d9 = (d3 + d5) / 2.0D;
    double d10 = (d4 + d6) / 2.0D;
    double d11 = d3 - d9;
    double d12 = d4 - d10;
    double d13 = (d7 * d11 + d8 * d12) / d1;
    double d14 = (d7 * d12 - d8 * d11) / d2;
    double d15 = d13 * d13 + d14 * d14;
    if (d15 >= 1.0D)
    {
      d16 = d14 * d1;
      d17 = d13 * d2;
      if (paramBoolean2) {
        d16 = -d16;
      } else {
        d17 = -d17;
      }
      d18 = d7 * d16 - d8 * d17;
      d19 = d7 * d17 + d8 * d16;
      d20 = d9 + d18;
      d21 = d10 + d19;
      d22 = d3 + d18;
      double d23 = d4 + d19;
      appendOvalQuadrant((float)d3, (float)d4, (float)d22, (float)d23, (float)d20, (float)d21, 0.0F, 1.0F, CornerPrefix.CORNER_ONLY);
      d22 = d5 + d18;
      d23 = d6 + d19;
      appendOvalQuadrant((float)d20, (float)d21, (float)d22, (float)d23, (float)d5, (float)d6, 0.0F, 1.0F, CornerPrefix.CORNER_ONLY);
      return;
    }
    double d16 = Math.sqrt((1.0D - d15) / d15);
    double d17 = d16 * d14;
    double d18 = d16 * d13;
    if (paramBoolean1 == paramBoolean2) {
      d17 = -d17;
    } else {
      d18 = -d18;
    }
    d9 += d7 * d17 * d1 - d8 * d18 * d2;
    d10 += d7 * d18 * d2 + d8 * d17 * d1;
    double d19 = d13 - d17;
    double d20 = d14 - d18;
    double d21 = -(d13 + d17);
    double d22 = -(d14 + d18);
    int i = 0;
    float f = 1.0F;
    int j = 0;
    do
    {
      double d24 = d20;
      double d25 = d19;
      if (paramBoolean2) {
        d24 = -d24;
      } else {
        d25 = -d25;
      }
      if (d24 * d21 + d25 * d22 > 0.0D)
      {
        d26 = d19 * d21 + d20 * d22;
        if (d26 >= 0.0D)
        {
          f = (float)(Math.acos(d26) / 1.5707963267948966D);
          i = 1;
        }
        j = 1;
      }
      else
      {
        if (j != 0) {
          break;
        }
      }
      double d26 = d7 * d24 * d1 - d8 * d25 * d2;
      double d27 = d7 * d25 * d2 + d8 * d24 * d1;
      double d28 = d9 + d26;
      double d29 = d10 + d27;
      double d30 = d3 + d26;
      double d31 = d4 + d27;
      appendOvalQuadrant((float)d3, (float)d4, (float)d30, (float)d31, (float)d28, (float)d29, 0.0F, f, CornerPrefix.CORNER_ONLY);
      d3 = d28;
      d4 = d29;
      d19 = d24;
      d20 = d25;
    } while (i == 0);
  }
  
  public void arcToRel(float paramFloat1, float paramFloat2, float paramFloat3, boolean paramBoolean1, boolean paramBoolean2, float paramFloat4, float paramFloat5)
  {
    arcTo(paramFloat1, paramFloat2, paramFloat3, paramBoolean1, paramBoolean2, currX + paramFloat4, currY + paramFloat5);
  }
  
  int pointCrossings(float paramFloat1, float paramFloat2)
  {
    float[] arrayOfFloat = floatCoords;
    float f1;
    float f3 = f1 = arrayOfFloat[0];
    float f2;
    float f4 = f2 = arrayOfFloat[1];
    int i = 0;
    int j = 2;
    for (int k = 1; k < numTypes; k++)
    {
      float f5;
      float f6;
      switch (pointTypes[k])
      {
      case 0: 
        if (f4 != f2) {
          i += Shape.pointCrossingsForLine(paramFloat1, paramFloat2, f3, f4, f1, f2);
        }
        f1 = f3 = arrayOfFloat[(j++)];
        f2 = f4 = arrayOfFloat[(j++)];
        break;
      case 1: 
        i += Shape.pointCrossingsForLine(paramFloat1, paramFloat2, f3, f4, f5 = arrayOfFloat[(j++)], f6 = arrayOfFloat[(j++)]);
        f3 = f5;
        f4 = f6;
        break;
      case 2: 
        i += Shape.pointCrossingsForQuad(paramFloat1, paramFloat2, f3, f4, arrayOfFloat[(j++)], arrayOfFloat[(j++)], f5 = arrayOfFloat[(j++)], f6 = arrayOfFloat[(j++)], 0);
        f3 = f5;
        f4 = f6;
        break;
      case 3: 
        i += Shape.pointCrossingsForCubic(paramFloat1, paramFloat2, f3, f4, arrayOfFloat[(j++)], arrayOfFloat[(j++)], arrayOfFloat[(j++)], arrayOfFloat[(j++)], f5 = arrayOfFloat[(j++)], f6 = arrayOfFloat[(j++)], 0);
        f3 = f5;
        f4 = f6;
        break;
      case 4: 
        if (f4 != f2) {
          i += Shape.pointCrossingsForLine(paramFloat1, paramFloat2, f3, f4, f1, f2);
        }
        f3 = f1;
        f4 = f2;
      }
    }
    if (f4 != f2) {
      i += Shape.pointCrossingsForLine(paramFloat1, paramFloat2, f3, f4, f1, f2);
    }
    return i;
  }
  
  int rectCrossings(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    float[] arrayOfFloat = floatCoords;
    float f3;
    float f1 = f3 = arrayOfFloat[0];
    float f4;
    float f2 = f4 = arrayOfFloat[1];
    int i = 0;
    int j = 2;
    for (int k = 1; (i != Integer.MIN_VALUE) && (k < numTypes); k++)
    {
      float f5;
      float f6;
      switch (pointTypes[k])
      {
      case 0: 
        if ((f1 != f3) || (f2 != f4)) {
          i = Shape.rectCrossingsForLine(i, paramFloat1, paramFloat2, paramFloat3, paramFloat4, f1, f2, f3, f4);
        }
        f3 = f1 = arrayOfFloat[(j++)];
        f4 = f2 = arrayOfFloat[(j++)];
        break;
      case 1: 
        i = Shape.rectCrossingsForLine(i, paramFloat1, paramFloat2, paramFloat3, paramFloat4, f1, f2, f5 = arrayOfFloat[(j++)], f6 = arrayOfFloat[(j++)]);
        f1 = f5;
        f2 = f6;
        break;
      case 2: 
        i = Shape.rectCrossingsForQuad(i, paramFloat1, paramFloat2, paramFloat3, paramFloat4, f1, f2, arrayOfFloat[(j++)], arrayOfFloat[(j++)], f5 = arrayOfFloat[(j++)], f6 = arrayOfFloat[(j++)], 0);
        f1 = f5;
        f2 = f6;
        break;
      case 3: 
        i = Shape.rectCrossingsForCubic(i, paramFloat1, paramFloat2, paramFloat3, paramFloat4, f1, f2, arrayOfFloat[(j++)], arrayOfFloat[(j++)], arrayOfFloat[(j++)], arrayOfFloat[(j++)], f5 = arrayOfFloat[(j++)], f6 = arrayOfFloat[(j++)], 0);
        f1 = f5;
        f2 = f6;
        break;
      case 4: 
        if ((f1 != f3) || (f2 != f4)) {
          i = Shape.rectCrossingsForLine(i, paramFloat1, paramFloat2, paramFloat3, paramFloat4, f1, f2, f3, f4);
        }
        f1 = f3;
        f2 = f4;
      }
    }
    if ((i != Integer.MIN_VALUE) && ((f1 != f3) || (f2 != f4))) {
      i = Shape.rectCrossingsForLine(i, paramFloat1, paramFloat2, paramFloat3, paramFloat4, f1, f2, f3, f4);
    }
    return i;
  }
  
  public final void append(PathIterator paramPathIterator, boolean paramBoolean)
  {
    float[] arrayOfFloat = new float[6];
    while (!paramPathIterator.isDone())
    {
      switch (paramPathIterator.currentSegment(arrayOfFloat))
      {
      case 0: 
        if ((!paramBoolean) || (numTypes < 1) || (numCoords < 1)) {
          moveTo(arrayOfFloat[0], arrayOfFloat[1]);
        } else {
          if ((pointTypes[(numTypes - 1)] != 4) && (floatCoords[(numCoords - 2)] == arrayOfFloat[0]) && (floatCoords[(numCoords - 1)] == arrayOfFloat[1])) {
            break;
          }
        }
        break;
      case 1: 
        lineTo(arrayOfFloat[0], arrayOfFloat[1]);
        break;
      case 2: 
        quadTo(arrayOfFloat[0], arrayOfFloat[1], arrayOfFloat[2], arrayOfFloat[3]);
        break;
      case 3: 
        curveTo(arrayOfFloat[0], arrayOfFloat[1], arrayOfFloat[2], arrayOfFloat[3], arrayOfFloat[4], arrayOfFloat[5]);
        break;
      case 4: 
        closePath();
      }
      paramPathIterator.next();
      paramBoolean = false;
    }
  }
  
  public final void transform(BaseTransform paramBaseTransform)
  {
    if (numCoords == 0) {
      return;
    }
    needRoom(false, 6);
    floatCoords[(numCoords + 0)] = moveX;
    floatCoords[(numCoords + 1)] = moveY;
    floatCoords[(numCoords + 2)] = prevX;
    floatCoords[(numCoords + 3)] = prevY;
    floatCoords[(numCoords + 4)] = currX;
    floatCoords[(numCoords + 5)] = currY;
    paramBaseTransform.transform(floatCoords, 0, floatCoords, 0, numCoords / 2 + 3);
    moveX = floatCoords[(numCoords + 0)];
    moveY = floatCoords[(numCoords + 1)];
    prevX = floatCoords[(numCoords + 2)];
    prevY = floatCoords[(numCoords + 3)];
    currX = floatCoords[(numCoords + 4)];
    currY = floatCoords[(numCoords + 5)];
  }
  
  public final RectBounds getBounds()
  {
    int i = numCoords;
    float f4;
    float f2;
    float f3;
    if (i > 0)
    {
      f2 = f4 = floatCoords[(--i)];
      f1 = f3 = floatCoords[(--i)];
      while (i > 0)
      {
        float f5 = floatCoords[(--i)];
        float f6 = floatCoords[(--i)];
        if (f6 < f1) {
          f1 = f6;
        }
        if (f5 < f2) {
          f2 = f5;
        }
        if (f6 > f3) {
          f3 = f6;
        }
        if (f5 > f4) {
          f4 = f5;
        }
      }
    }
    float f1 = f2 = f3 = f4 = 0.0F;
    return new RectBounds(f1, f2, f3, f4);
  }
  
  public final int getNumCommands()
  {
    return numTypes;
  }
  
  public final byte[] getCommandsNoClone()
  {
    return pointTypes;
  }
  
  public final float[] getFloatCoordsNoClone()
  {
    return floatCoords;
  }
  
  public PathIterator getPathIterator(BaseTransform paramBaseTransform)
  {
    if (paramBaseTransform == null) {
      return new CopyIterator(this);
    }
    return new TxIterator(this, paramBaseTransform);
  }
  
  public final void closePath()
  {
    if ((numTypes == 0) || (pointTypes[(numTypes - 1)] != 4))
    {
      needRoom(true, 0);
      pointTypes[(numTypes++)] = 4;
      prevX = (currX = moveX);
      prevY = (currY = moveY);
    }
  }
  
  public void pathDone() {}
  
  public final void append(Shape paramShape, boolean paramBoolean)
  {
    append(paramShape.getPathIterator(null), paramBoolean);
  }
  
  public final void appendSVGPath(String paramString)
  {
    SVGParser localSVGParser = new SVGParser(paramString);
    for (allowcomma = false; !localSVGParser.isDone(); allowcomma = false)
    {
      allowcomma = false;
      char c = localSVGParser.getChar();
      switch (c)
      {
      case 'M': 
        moveTo(localSVGParser.f(), localSVGParser.f());
      }
      while (localSVGParser.nextIsNumber())
      {
        lineTo(localSVGParser.f(), localSVGParser.f());
        continue;
        if (numTypes > 0) {
          moveToRel(localSVGParser.f(), localSVGParser.f());
        } else {
          moveTo(localSVGParser.f(), localSVGParser.f());
        }
        while (localSVGParser.nextIsNumber())
        {
          lineToRel(localSVGParser.f(), localSVGParser.f());
          continue;
          do
          {
            lineTo(localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            lineToRel(localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            lineTo(localSVGParser.f(), currY);
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            lineToRel(localSVGParser.f(), 0.0F);
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            lineTo(currX, localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            lineToRel(0.0F, localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            quadTo(localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            quadToRel(localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            quadToSmooth(localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            quadToSmoothRel(localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            curveTo(localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            curveToRel(localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            curveToSmooth(localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            curveToSmoothRel(localSVGParser.f(), localSVGParser.f(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            arcTo(localSVGParser.f(), localSVGParser.f(), localSVGParser.a(), localSVGParser.b(), localSVGParser.b(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          do
          {
            arcToRel(localSVGParser.f(), localSVGParser.f(), localSVGParser.a(), localSVGParser.b(), localSVGParser.b(), localSVGParser.f(), localSVGParser.f());
          } while (localSVGParser.nextIsNumber());
          break;
          closePath();
          break;
          throw new IllegalArgumentException("invalid command (" + c + ") in SVG path at pos=" + pos);
        }
      }
    }
  }
  
  public final int getWindingRule()
  {
    return windingRule;
  }
  
  public final void setWindingRule(int paramInt)
  {
    if ((paramInt != 0) && (paramInt != 1)) {
      throw new IllegalArgumentException("winding rule must be WIND_EVEN_ODD or WIND_NON_ZERO");
    }
    windingRule = paramInt;
  }
  
  public final Point2D getCurrentPoint()
  {
    if (numTypes < 1) {
      return null;
    }
    return new Point2D(currX, currY);
  }
  
  public final float getCurrentX()
  {
    if (numTypes < 1) {
      throw new IllegalPathStateException("no current point in empty path");
    }
    return currX;
  }
  
  public final float getCurrentY()
  {
    if (numTypes < 1) {
      throw new IllegalPathStateException("no current point in empty path");
    }
    return currY;
  }
  
  public final void reset()
  {
    numTypes = (numCoords = 0);
    moveX = (moveY = prevX = prevY = currX = currY = 0.0F);
  }
  
  public final Shape createTransformedShape(BaseTransform paramBaseTransform)
  {
    return new Path2D(this, paramBaseTransform);
  }
  
  public Path2D copy()
  {
    return new Path2D(this);
  }
  
  public boolean equals(Object paramObject)
  {
    if (paramObject == this) {
      return true;
    }
    if ((paramObject instanceof Path2D))
    {
      Path2D localPath2D = (Path2D)paramObject;
      if ((numTypes == numTypes) && (numCoords == numCoords) && (windingRule == windingRule))
      {
        for (int i = 0; i < numTypes; i++) {
          if (pointTypes[i] != pointTypes[i]) {
            return false;
          }
        }
        for (i = 0; i < numCoords; i++) {
          if (floatCoords[i] != floatCoords[i]) {
            return false;
          }
        }
        return true;
      }
    }
    return false;
  }
  
  public int hashCode()
  {
    int i = 7;
    i = 11 * i + numTypes;
    i = 11 * i + numCoords;
    i = 11 * i + windingRule;
    for (int j = 0; j < numTypes; j++) {
      i = 11 * i + pointTypes[j];
    }
    for (j = 0; j < numCoords; j++) {
      i = 11 * i + Float.floatToIntBits(floatCoords[j]);
    }
    return i;
  }
  
  public static boolean contains(PathIterator paramPathIterator, float paramFloat1, float paramFloat2)
  {
    if (paramFloat1 * 0.0F + paramFloat2 * 0.0F == 0.0F)
    {
      int i = paramPathIterator.getWindingRule() == 1 ? -1 : 1;
      int j = Shape.pointCrossingsForPath(paramPathIterator, paramFloat1, paramFloat2);
      return (j & i) != 0;
    }
    return false;
  }
  
  public static boolean contains(PathIterator paramPathIterator, Point2D paramPoint2D)
  {
    return contains(paramPathIterator, x, y);
  }
  
  public final boolean contains(float paramFloat1, float paramFloat2)
  {
    if (paramFloat1 * 0.0F + paramFloat2 * 0.0F == 0.0F)
    {
      if (numTypes < 2) {
        return false;
      }
      int i = windingRule == 1 ? -1 : 1;
      return (pointCrossings(paramFloat1, paramFloat2) & i) != 0;
    }
    return false;
  }
  
  public final boolean contains(Point2D paramPoint2D)
  {
    return contains(x, y);
  }
  
  public static boolean contains(PathIterator paramPathIterator, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    if ((Float.isNaN(paramFloat1 + paramFloat3)) || (Float.isNaN(paramFloat2 + paramFloat4))) {
      return false;
    }
    if ((paramFloat3 <= 0.0F) || (paramFloat4 <= 0.0F)) {
      return false;
    }
    int i = paramPathIterator.getWindingRule() == 1 ? -1 : 2;
    int j = Shape.rectCrossingsForPath(paramPathIterator, paramFloat1, paramFloat2, paramFloat1 + paramFloat3, paramFloat2 + paramFloat4);
    return (j != Integer.MIN_VALUE) && ((j & i) != 0);
  }
  
  public final boolean contains(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    if ((Float.isNaN(paramFloat1 + paramFloat3)) || (Float.isNaN(paramFloat2 + paramFloat4))) {
      return false;
    }
    if ((paramFloat3 <= 0.0F) || (paramFloat4 <= 0.0F)) {
      return false;
    }
    int i = windingRule == 1 ? -1 : 2;
    int j = rectCrossings(paramFloat1, paramFloat2, paramFloat1 + paramFloat3, paramFloat2 + paramFloat4);
    return (j != Integer.MIN_VALUE) && ((j & i) != 0);
  }
  
  public static boolean intersects(PathIterator paramPathIterator, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    if ((Float.isNaN(paramFloat1 + paramFloat3)) || (Float.isNaN(paramFloat2 + paramFloat4))) {
      return false;
    }
    if ((paramFloat3 <= 0.0F) || (paramFloat4 <= 0.0F)) {
      return false;
    }
    int i = paramPathIterator.getWindingRule() == 1 ? -1 : 2;
    int j = Shape.rectCrossingsForPath(paramPathIterator, paramFloat1, paramFloat2, paramFloat1 + paramFloat3, paramFloat2 + paramFloat4);
    return (j == Integer.MIN_VALUE) || ((j & i) != 0);
  }
  
  public final boolean intersects(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    if ((Float.isNaN(paramFloat1 + paramFloat3)) || (Float.isNaN(paramFloat2 + paramFloat4))) {
      return false;
    }
    if ((paramFloat3 <= 0.0F) || (paramFloat4 <= 0.0F)) {
      return false;
    }
    int i = windingRule == 1 ? -1 : 2;
    int j = rectCrossings(paramFloat1, paramFloat2, paramFloat1 + paramFloat3, paramFloat2 + paramFloat4);
    return (j == Integer.MIN_VALUE) || ((j & i) != 0);
  }
  
  public PathIterator getPathIterator(BaseTransform paramBaseTransform, float paramFloat)
  {
    return new FlatteningPathIterator(getPathIterator(paramBaseTransform), paramFloat);
  }
  
  static byte[] copyOf(byte[] paramArrayOfByte, int paramInt)
  {
    byte[] arrayOfByte = new byte[paramInt];
    System.arraycopy(paramArrayOfByte, 0, arrayOfByte, 0, Math.min(paramArrayOfByte.length, paramInt));
    return arrayOfByte;
  }
  
  static float[] copyOf(float[] paramArrayOfFloat, int paramInt)
  {
    float[] arrayOfFloat = new float[paramInt];
    System.arraycopy(paramArrayOfFloat, 0, arrayOfFloat, 0, Math.min(paramArrayOfFloat.length, paramInt));
    return arrayOfFloat;
  }
  
  public void setTo(Path2D paramPath2D)
  {
    numTypes = numTypes;
    numCoords = numCoords;
    if (numTypes > pointTypes.length) {
      pointTypes = new byte[numTypes];
    }
    System.arraycopy(pointTypes, 0, pointTypes, 0, numTypes);
    if (numCoords > floatCoords.length) {
      floatCoords = new float[numCoords];
    }
    System.arraycopy(floatCoords, 0, floatCoords, 0, numCoords);
    windingRule = windingRule;
    moveX = moveX;
    moveY = moveY;
    prevX = prevX;
    prevY = prevY;
    currX = currX;
    currY = currY;
  }
  
  static class CopyIterator
    extends Path2D.Iterator
  {
    float[] floatCoords;
    
    CopyIterator(Path2D paramPath2D)
    {
      super();
      floatCoords = floatCoords;
    }
    
    public int currentSegment(float[] paramArrayOfFloat)
    {
      int i = path.pointTypes[typeIdx];
      int j = Path2D.curvecoords[i];
      if (j > 0) {
        System.arraycopy(floatCoords, pointIdx, paramArrayOfFloat, 0, j);
      }
      return i;
    }
    
    public int currentSegment(double[] paramArrayOfDouble)
    {
      int i = path.pointTypes[typeIdx];
      int j = Path2D.curvecoords[i];
      if (j > 0) {
        for (int k = 0; k < j; k++) {
          paramArrayOfDouble[k] = floatCoords[(pointIdx + k)];
        }
      }
      return i;
    }
  }
  
  public static enum CornerPrefix
  {
    CORNER_ONLY,  MOVE_THEN_CORNER,  LINE_THEN_CORNER;
    
    private CornerPrefix() {}
  }
  
  static abstract class Iterator
    implements PathIterator
  {
    int typeIdx;
    int pointIdx;
    Path2D path;
    
    Iterator(Path2D paramPath2D)
    {
      path = paramPath2D;
    }
    
    public int getWindingRule()
    {
      return path.getWindingRule();
    }
    
    public boolean isDone()
    {
      return typeIdx >= path.numTypes;
    }
    
    public void next()
    {
      int i = path.pointTypes[(typeIdx++)];
      pointIdx += Path2D.curvecoords[i];
    }
  }
  
  static class SVGParser
  {
    final String svgpath;
    final int len;
    int pos;
    boolean allowcomma;
    
    public SVGParser(String paramString)
    {
      svgpath = paramString;
      len = paramString.length();
    }
    
    public boolean isDone()
    {
      return toNextNonWsp() >= len;
    }
    
    public char getChar()
    {
      return svgpath.charAt(pos++);
    }
    
    public boolean nextIsNumber()
    {
      if (toNextNonWsp() < len) {
        switch (svgpath.charAt(pos))
        {
        case '+': 
        case '-': 
        case '.': 
        case '0': 
        case '1': 
        case '2': 
        case '3': 
        case '4': 
        case '5': 
        case '6': 
        case '7': 
        case '8': 
        case '9': 
          return true;
        }
      }
      return false;
    }
    
    public float f()
    {
      return getFloat();
    }
    
    public float a()
    {
      return (float)Math.toRadians(getFloat());
    }
    
    public float getFloat()
    {
      int i = toNextNonWsp();
      allowcomma = true;
      int j = toNumberEnd();
      if (i < j)
      {
        String str = svgpath.substring(i, j);
        try
        {
          return Float.parseFloat(str);
        }
        catch (NumberFormatException localNumberFormatException)
        {
          throw new IllegalArgumentException("invalid float (" + str + ") in path at pos=" + i);
        }
      }
      throw new IllegalArgumentException("end of path looking for float");
    }
    
    public boolean b()
    {
      toNextNonWsp();
      allowcomma = true;
      if (pos < len)
      {
        char c = svgpath.charAt(pos);
        switch (c)
        {
        case '0': 
          pos += 1;
          return false;
        case '1': 
          pos += 1;
          return true;
        }
        throw new IllegalArgumentException("invalid boolean flag (" + c + ") in path at pos=" + pos);
      }
      throw new IllegalArgumentException("end of path looking for boolean");
    }
    
    private int toNextNonWsp()
    {
      boolean bool = allowcomma;
      while (pos < len)
      {
        switch (svgpath.charAt(pos))
        {
        case ',': 
          if (!bool) {
            return pos;
          }
          bool = false;
          break;
        case '\t': 
        case '\n': 
        case '\r': 
        case ' ': 
          break;
        default: 
          return pos;
        }
        pos += 1;
      }
      return pos;
    }
    
    private int toNumberEnd()
    {
      int i = 1;
      int j = 0;
      int k = 0;
      while (pos < len)
      {
        switch (svgpath.charAt(pos))
        {
        case '+': 
        case '-': 
          if (i == 0) {
            return pos;
          }
          i = 0;
          break;
        case '0': 
        case '1': 
        case '2': 
        case '3': 
        case '4': 
        case '5': 
        case '6': 
        case '7': 
        case '8': 
        case '9': 
          i = 0;
          break;
        case 'E': 
        case 'e': 
          if (j != 0) {
            return pos;
          }
          j = i = 1;
          break;
        case '.': 
          if ((j != 0) || (k != 0)) {
            return pos;
          }
          k = 1;
          i = 0;
          break;
        case ',': 
        case '/': 
        case ':': 
        case ';': 
        case '<': 
        case '=': 
        case '>': 
        case '?': 
        case '@': 
        case 'A': 
        case 'B': 
        case 'C': 
        case 'D': 
        case 'F': 
        case 'G': 
        case 'H': 
        case 'I': 
        case 'J': 
        case 'K': 
        case 'L': 
        case 'M': 
        case 'N': 
        case 'O': 
        case 'P': 
        case 'Q': 
        case 'R': 
        case 'S': 
        case 'T': 
        case 'U': 
        case 'V': 
        case 'W': 
        case 'X': 
        case 'Y': 
        case 'Z': 
        case '[': 
        case '\\': 
        case ']': 
        case '^': 
        case '_': 
        case '`': 
        case 'a': 
        case 'b': 
        case 'c': 
        case 'd': 
        default: 
          return pos;
        }
        pos += 1;
      }
      return pos;
    }
  }
  
  static class TxIterator
    extends Path2D.Iterator
  {
    float[] floatCoords;
    BaseTransform transform;
    
    TxIterator(Path2D paramPath2D, BaseTransform paramBaseTransform)
    {
      super();
      floatCoords = floatCoords;
      transform = paramBaseTransform;
    }
    
    public int currentSegment(float[] paramArrayOfFloat)
    {
      int i = path.pointTypes[typeIdx];
      int j = Path2D.curvecoords[i];
      if (j > 0) {
        transform.transform(floatCoords, pointIdx, paramArrayOfFloat, 0, j / 2);
      }
      return i;
    }
    
    public int currentSegment(double[] paramArrayOfDouble)
    {
      int i = path.pointTypes[typeIdx];
      int j = Path2D.curvecoords[i];
      if (j > 0) {
        transform.transform(floatCoords, pointIdx, paramArrayOfDouble, 0, j / 2);
      }
      return i;
    }
  }
}

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

public abstract interface PathConsumer2D
{
  public abstract void moveTo(float paramFloat1, float paramFloat2);
  
  public abstract void lineTo(float paramFloat1, float paramFloat2);
  
  public abstract void quadTo(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4);
  
  public abstract void curveTo(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6);
  
  public abstract void closePath();
  
  public abstract void pathDone();
}

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

public abstract interface PathIterator
{
  public static final int WIND_EVEN_ODD = 0;
  public static final int WIND_NON_ZERO = 1;
  public static final int SEG_MOVETO = 0;
  public static final int SEG_LINETO = 1;
  public static final int SEG_QUADTO = 2;
  public static final int SEG_CUBICTO = 3;
  public static final int SEG_CLOSE = 4;
  
  public abstract int getWindingRule();
  
  public abstract boolean isDone();
  
  public abstract void next();
  
  public abstract int currentSegment(float[] paramArrayOfFloat);
}

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

public abstract interface PerspectiveCameraImpl
  extends CameraImpl
{
  public abstract void setFieldOfView(float paramFloat);
}

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

import com.sun.javafx.geom.transform.BaseTransform;

public class PickRay
{
  private Vec3d origin = new Vec3d();
  private Vec3d direction = new Vec3d();
  static final double EPS = 9.999999747378752E-6D;
  private static final double EPSILON_ABSOLUTE = 1.0E-5D;
  private final Vec3d tempV3d = new Vec3d();
  private final Vec3d vec0 = new Vec3d();
  private final Vec3d vec1 = new Vec3d();
  private final Vec3d pNrm = new Vec3d();
  private final Vec3d endPt = new Vec3d();
  
  public PickRay() {}
  
  public PickRay(Vec3d paramVec3d1, Vec3d paramVec3d2)
  {
    setOrigin(paramVec3d1);
    setDirection(paramVec3d2);
  }
  
  public PickRay copy()
  {
    return new PickRay(origin, direction);
  }
  
  public void setOrigin(Vec3d paramVec3d)
  {
    origin.set(paramVec3d);
  }
  
  public Vec3d getOrigin(Vec3d paramVec3d)
  {
    if (paramVec3d == null) {
      paramVec3d = new Vec3d();
    }
    paramVec3d.set(origin);
    return paramVec3d;
  }
  
  public Vec3d getOriginNoClone()
  {
    return origin;
  }
  
  public void setDirection(Vec3d paramVec3d)
  {
    direction.set(paramVec3d);
  }
  
  public Vec3d getDirection(Vec3d paramVec3d)
  {
    if (paramVec3d == null) {
      paramVec3d = new Vec3d();
    }
    paramVec3d.set(direction);
    return paramVec3d;
  }
  
  public Vec3d getDirectionNoClone()
  {
    return direction;
  }
  
  public double distance(Vec3d paramVec3d)
  {
    double d1 = x - origin.x;
    double d2 = y - origin.y;
    double d3 = z - origin.z;
    return Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);
  }
  
  public boolean intersect(Vec3f[] paramArrayOfVec3f, double[] paramArrayOfDouble, Vec3d paramVec3d)
  {
    return intersectRayOrSegment(paramArrayOfVec3f, origin, direction, paramArrayOfDouble, paramVec3d, false);
  }
  
  public Point2D projectToZeroPlane(BaseTransform paramBaseTransform, boolean paramBoolean, Vec3d paramVec3d, Point2D paramPoint2D)
  {
    if (paramVec3d == null) {
      paramVec3d = new Vec3d();
    }
    paramBaseTransform.transform(origin, paramVec3d);
    double d1 = x;
    double d2 = y;
    double d3 = z;
    paramVec3d.add(origin, direction);
    paramBaseTransform.transform(paramVec3d, paramVec3d);
    double d4 = x - d1;
    double d5 = y - d2;
    double d6 = z - d3;
    if (almostZero(d6)) {
      return null;
    }
    double d7 = -d3 / d6;
    if ((paramBoolean) && (d7 < 0.0D)) {
      return null;
    }
    if (paramPoint2D == null) {
      paramPoint2D = new Point2D();
    }
    paramPoint2D.setLocation((float)(d1 + d4 * d7), (float)(d2 + d5 * d7));
    return paramPoint2D;
  }
  
  static boolean almostZero(double paramDouble)
  {
    return (paramDouble < 1.0E-5D) && (paramDouble > -1.0E-5D);
  }
  
  boolean intersectRayOrSegment(Vec3f[] paramArrayOfVec3f, Vec3d paramVec3d1, Vec3d paramVec3d2, double[] paramArrayOfDouble, Vec3d paramVec3d3, boolean paramBoolean)
  {
    double d4 = 0.0D;
    double d5 = 0.0D;
    b
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