jfxrt

ing toString()
  {
    return "KeyFrame [time=" + time + ", values=" + values + ", onFinished=" + onFinished + ", name=" + name + "]";
  }
  
  public int hashCode()
  {
    assert ((time != null) && (values != null));
    int i = 1;
    i = 31 * i + time.hashCode();
    i = 31 * i + (name == null ? 0 : name.hashCode());
    i = 31 * i + (onFinished == null ? 0 : onFinished.hashCode());
    i = 31 * i + values.hashCode();
    return i;
  }
  
  public boolean equals(Object paramObject)
  {
    if (this == paramObject) {
      return true;
    }
    if ((paramObject instanceof KeyFrame))
    {
      KeyFrame localKeyFrame = (KeyFrame)paramObject;
      assert ((time != null) && (values != null) && (time != null) && (values != null));
      return (time.equals(time)) && (name == null ? name == null : name.equals(name)) && (onFinished == null ? onFinished == null : onFinished.equals(onFinished)) && (values.equals(values));
    }
    return false;
  }
}

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

@Deprecated
public enum KeyValue$Type
{
  BOOLEAN,  DOUBLE,  FLOAT,  INTEGER,  LONG,  OBJECT;
  
  private KeyValue$Type() {}
}

/* Location:
 * Qualified Name:     javafx.animation.KeyValue.Type
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.animation;

import javafx.beans.value.WritableBooleanValue;
import javafx.beans.value.WritableDoubleValue;
import javafx.beans.value.WritableFloatValue;
import javafx.beans.value.WritableIntegerValue;
import javafx.beans.value.WritableLongValue;
import javafx.beans.value.WritableNumberValue;
import javafx.beans.value.WritableValue;

public final class KeyValue
{
  private static final Interpolator DEFAULT_INTERPOLATOR = Interpolator.LINEAR;
  private final Type type;
  private final WritableValue<?> target;
  private final Object endValue;
  private final Interpolator interpolator;
  
  @Deprecated
  public Type getType()
  {
    return type;
  }
  
  public WritableValue<?> getTarget()
  {
    return target;
  }
  
  public Object getEndValue()
  {
    return endValue;
  }
  
  public Interpolator getInterpolator()
  {
    return interpolator;
  }
  
  public <T> KeyValue(WritableValue<T> paramWritableValue, T paramT, Interpolator paramInterpolator)
  {
    if (paramWritableValue == null) {
      throw new NullPointerException("Target needs to be specified");
    }
    if (paramInterpolator == null) {
      throw new NullPointerException("Interpolator needs to be specified");
    }
    target = paramWritableValue;
    endValue = paramT;
    interpolator = paramInterpolator;
    type = ((paramWritableValue instanceof WritableBooleanValue) ? Type.BOOLEAN : (paramWritableValue instanceof WritableNumberValue) ? Type.OBJECT : (paramWritableValue instanceof WritableLongValue) ? Type.LONG : (paramWritableValue instanceof WritableFloatValue) ? Type.FLOAT : (paramWritableValue instanceof WritableIntegerValue) ? Type.INTEGER : (paramWritableValue instanceof WritableDoubleValue) ? Type.DOUBLE : Type.OBJECT);
  }
  
  public <T> KeyValue(WritableValue<T> paramWritableValue, T paramT)
  {
    this(paramWritableValue, paramT, DEFAULT_INTERPOLATOR);
  }
  
  public String toString()
  {
    return "KeyValue [target=" + target + ", endValue=" + endValue + ", interpolator=" + interpolator + "]";
  }
  
  public int hashCode()
  {
    assert ((target != null) && (interpolator != null));
    int i = 1;
    i = 31 * i + target.hashCode();
    i = 31 * i + (endValue == null ? 0 : endValue.hashCode());
    i = 31 * i + interpolator.hashCode();
    return i;
  }
  
  public boolean equals(Object paramObject)
  {
    if (this == paramObject) {
      return true;
    }
    if ((paramObject instanceof KeyValue))
    {
      KeyValue localKeyValue = (KeyValue)paramObject;
      assert ((target != null) && (interpolator != null) && (target != null) && (interpolator != null));
      return (target.equals(target)) && (endValue == null ? endValue == null : endValue.equals(endValue)) && (interpolator.equals(interpolator));
    }
    return false;
  }
  
  @Deprecated
  public static enum Type
  {
    BOOLEAN,  DOUBLE,  FLOAT,  INTEGER,  LONG,  OBJECT;
    
    private Type() {}
  }
}

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

import javafx.beans.InvalidationListener;
import javafx.beans.Observable;

class ParallelTransition$1
  implements InvalidationListener
{
  ParallelTransition$1(ParallelTransition paramParallelTransition) {}
  
  public void invalidated(Observable paramObservable)
  {
    ParallelTransition.access$002(this$0, true);
    if (this$0.getStatus() == Animation.Status.STOPPED) {
      this$0.setCycleDuration(ParallelTransition.access$100(this$0));
    }
  }
}

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

import com.sun.javafx.collections.TrackableObservableList;
import java.util.Iterator;
import java.util.List;
import javafx.beans.InvalidationListener;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.collections.ListChangeListener.Change;

class ParallelTransition$2
  extends TrackableObservableList<Animation>
{
  ParallelTransition$2(ParallelTransition paramParallelTransition) {}
  
  protected void onChanged(ListChangeListener.Change<Animation> paramChange)
  {
    while (paramChange.next())
    {
      Iterator localIterator = paramChange.getRemoved().iterator();
      Animation localAnimation;
      while (localIterator.hasNext())
      {
        localAnimation = (Animation)localIterator.next();
        if ((localAnimation instanceof Transition))
        {
          Transition localTransition = (Transition)localAnimation;
          if (parent == this$0) {
            parent = null;
          }
        }
        localAnimation.rateProperty().removeListener(ParallelTransition.access$200(this$0));
        localAnimation.totalDurationProperty().removeListener(ParallelTransition.access$200(this$0));
        localAnimation.delayProperty().removeListener(ParallelTransition.access$200(this$0));
      }
      localIterator = paramChange.getAddedSubList().iterator();
      while (localIterator.hasNext())
      {
        localAnimation = (Animation)localIterator.next();
        if ((localAnimation instanceof Transition)) {
          parent = this$0;
        }
        localAnimation.rateProperty().addListener(ParallelTransition.access$200(this$0));
        localAnimation.totalDurationProperty().addListener(ParallelTransition.access$200(this$0));
        localAnimation.delayProperty().addListener(ParallelTransition.access$200(this$0));
      }
    }
    ParallelTransition.access$200(this$0).invalidated(ParallelTransition.access$300(this$0));
  }
}

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

import com.sun.javafx.animation.TickCalculation;
import com.sun.javafx.collections.TrackableObservableList;
import java.util.Iterator;
import java.util.List;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.ListChangeListener.Change;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Node;
import javafx.util.Duration;

public final class ParallelTransition
  extends Transition
{
  private static final Animation[] EMPTY_ANIMATION_ARRAY = new Animation[0];
  private static final double EPSILON = 1.0E-12D;
  private Animation[] cachedChildren = EMPTY_ANIMATION_ARRAY;
  private long[] durations;
  private long[] delays;
  private double[] rates;
  private long[] offsetTicks;
  private boolean[] forceChildSync;
  private long oldTicks;
  private boolean childrenChanged = true;
  private final InvalidationListener childrenListener = new InvalidationListener()
  {
    public void invalidated(Observable paramAnonymousObservable)
    {
      childrenChanged = true;
      if (getStatus() == Animation.Status.STOPPED) {
        setCycleDuration(ParallelTransition.this.computeCycleDuration());
      }
    }
  };
  private ObjectProperty<Node> node;
  private static final Node DEFAULT_NODE = null;
  private final ObservableList<Animation> children = new TrackableObservableList()
  {
    protected void onChanged(ListChangeListener.Change<Animation> paramAnonymousChange)
    {
      while (paramAnonymousChange.next())
      {
        Iterator localIterator = paramAnonymousChange.getRemoved().iterator();
        Animation localAnimation;
        while (localIterator.hasNext())
        {
          localAnimation = (Animation)localIterator.next();
          if ((localAnimation instanceof Transition))
          {
            Transition localTransition = (Transition)localAnimation;
            if (parent == ParallelTransition.this) {
              parent = null;
            }
          }
          localAnimation.rateProperty().removeListener(childrenListener);
          localAnimation.totalDurationProperty().removeListener(childrenListener);
          localAnimation.delayProperty().removeListener(childrenListener);
        }
        localIterator = paramAnonymousChange.getAddedSubList().iterator();
        while (localIterator.hasNext())
        {
          localAnimation = (Animation)localIterator.next();
          if ((localAnimation instanceof Transition)) {
            parent = ParallelTransition.this;
          }
          localAnimation.rateProperty().addListener(childrenListener);
          localAnimation.totalDurationProperty().addListener(childrenListener);
          localAnimation.delayProperty().addListener(childrenListener);
        }
      }
      childrenListener.invalidated(children);
    }
  };
  
  public final void setNode(Node paramNode)
  {
    if ((node != null) || (paramNode != null)) {
      nodeProperty().set(paramNode);
    }
  }
  
  public final Node getNode()
  {
    return node == null ? DEFAULT_NODE : (Node)node.get();
  }
  
  public final ObjectProperty<Node> nodeProperty()
  {
    if (node == null) {
      node = new SimpleObjectProperty(this, "node", DEFAULT_NODE);
    }
    return node;
  }
  
  public final ObservableList<Animation> getChildren()
  {
    return children;
  }
  
  public ParallelTransition(Node paramNode, Animation... paramVarArgs)
  {
    setInterpolator(Interpolator.LINEAR);
    setNode(paramNode);
    getChildren().setAll(paramVarArgs);
  }
  
  public ParallelTransition(Animation... paramVarArgs)
  {
    this(null, paramVarArgs);
  }
  
  public ParallelTransition(Node paramNode)
  {
    setInterpolator(Interpolator.LINEAR);
    setNode(paramNode);
  }
  
  public ParallelTransition()
  {
    this((Node)null);
  }
  
  protected Node getParentTargetNode()
  {
    Node localNode = getNode();
    return parent != null ? parent.getParentTargetNode() : localNode != null ? localNode : null;
  }
  
  private Duration computeCycleDuration()
  {
    Object localObject = Duration.ZERO;
    Iterator localIterator = getChildren().iterator();
    while (localIterator.hasNext())
    {
      Animation localAnimation = (Animation)localIterator.next();
      double d = Math.abs(localAnimation.getRate());
      Duration localDuration1 = d < 1.0E-12D ? localAnimation.getTotalDuration() : localAnimation.getTotalDuration().divide(d);
      Duration localDuration2 = localDuration1.add(localAnimation.getDelay());
      if (localDuration2.isIndefinite()) {
        return Duration.INDEFINITE;
      }
      if (localDuration2.greaterThan((Duration)localObject)) {
        localObject = localDuration2;
      }
    }
    return (Duration)localObject;
  }
  
  private double calculateFraction(long paramLong1, long paramLong2)
  {
    double d = paramLong1 / paramLong2;
    return d >= 1.0D ? 1.0D : d <= 0.0D ? 0.0D : d;
  }
  
  private boolean startChild(Animation paramAnimation, int paramInt)
  {
    int i = forceChildSync[paramInt];
    if (paramAnimation.impl_startable(i))
    {
      paramAnimation.setRate(rates[paramInt] * Math.signum(getCurrentRate()));
      paramAnimation.impl_start(i);
      forceChildSync[paramInt] = false;
      return true;
    }
    return false;
  }
  
  void impl_sync(boolean paramBoolean)
  {
    super.impl_sync(paramBoolean);
    int i;
    int j;
    if (((paramBoolean) && (childrenChanged)) || (durations == null))
    {
      cachedChildren = ((Animation[])getChildren().toArray(EMPTY_ANIMATION_ARRAY));
      i = cachedChildren.length;
      durations = new long[i];
      delays = new long[i];
      rates = new double[i];
      offsetTicks = new long[i];
      forceChildSync = new boolean[i];
      j = 0;
      for (Animation localAnimation : cachedChildren)
      {
        rates[j] = localAnimation.getRate();
        if (rates[j] < 1.0E-12D) {
          rates[j] = 1.0D;
        }
        durations[j] = TickCalculation.fromDuration(localAnimation.getTotalDuration(), rates[j]);
        delays[j] = TickCalculation.fromDuration(localAnimation.getDelay());
        forceChildSync[j] = true;
        j++;
      }
      childrenChanged = false;
    }
    else if (paramBoolean)
    {
      i = forceChildSync.length;
      for (j = 0; j < i; j++) {
        forceChildSync[j] = true;
      }
    }
  }
  
  void impl_pause()
  {
    super.impl_pause();
    for (Animation localAnimation : cachedChildren) {
      if (localAnimation.getStatus() == Animation.Status.RUNNING) {
        localAnimation.impl_pause();
      }
    }
  }
  
  void impl_resume()
  {
    super.impl_resume();
    for (Animation localAnimation : cachedChildren) {
      if (localAnimation.getStatus() == Animation.Status.PAUSED) {
        localAnimation.impl_resume();
      }
    }
  }
  
  void impl_stop()
  {
    super.impl_stop();
    for (Animation localAnimation : cachedChildren) {
      if (localAnimation.getStatus() != Animation.Status.STOPPED) {
        localAnimation.impl_stop();
      }
    }
    if (childrenChanged) {
      setCycleDuration(computeCycleDuration());
    }
  }
  
  @Deprecated
  public void impl_playTo(long paramLong1, long paramLong2)
  {
    impl_setCurrentTicks(paramLong1);
    double d = calculateFraction(paramLong1, paramLong2);
    long l = Math.max(0L, Math.min(getCachedInterpolator().interpolate(0L, paramLong2, d), paramLong2));
    int i;
    Animation localAnimation;
    int m;
    EventHandler localEventHandler;
    if (getCurrentRate() > 0.0D)
    {
      i = 0;
      for (localAnimation : cachedChildren)
      {
        if ((l >= delays[i]) && ((oldTicks <= delays[i]) || ((oldTicks < TickCalculation.add(delays[i], durations[i])) && (localAnimation.getStatus() == Animation.Status.STOPPED))))
        {
          m = oldTicks <= delays[i] ? 1 : 0;
          if (m != 0) {
            localAnimation.jumpTo(Duration.ZERO);
          }
          if (!startChild(localAnimation, i))
          {
            if (m == 0) {
              continue;
            }
            localEventHandler = localAnimation.getOnFinished();
            if (localEventHandler != null) {
              localEventHandler.handle(new ActionEvent(this, null));
            }
            continue;
          }
        }
        if (l >= TickCalculation.add(durations[i], delays[i]))
        {
          if (localAnimation.getStatus() == Animation.Status.RUNNING)
          {
            localAnimation.impl_timePulse(calcTimePulse(durations[i], i));
            offsetTicks[i] = 0L;
          }
        }
        else if (l > delays[i]) {
          localAnimation.impl_timePulse(calcTimePulse(TickCalculation.sub(l, delays[i]), i));
        }
        i++;
      }
    }
    else
    {
      i = 0;
      for (localAnimation : cachedChildren)
      {
        if (l < TickCalculation.add(durations[i], delays[i]))
        {
          if ((oldTicks >= TickCalculation.add(durations[i], delays[i])) || ((oldTicks >= delays[i]) && (localAnimation.getStatus() == Animation.Status.STOPPED)))
          {
            m = oldTicks >= TickCalculation.add(durations[i], delays[i]) ? 1 : 0;
            if (m != 0) {
              localAnimation.jumpTo(TickCalculation.toDuration(durations[i], rates[i]));
            }
            if (!startChild(localAnimation, i))
            {
              if (m == 0) {
                continue;
              }
              localEventHandler = localAnimation.getOnFinished();
              if (localEventHandler != null) {
                localEventHandler.handle(new ActionEvent(this, null));
              }
              continue;
            }
          }
          if (l <= delays[i])
          {
            if (localAnimation.getStatus() == Animation.Status.RUNNING)
            {
              localAnimation.impl_timePulse(calcTimePulse(durations[i], i));
              offsetTicks[i] = 0L;
            }
          }
          else {
            localAnimation.impl_timePulse(calcTimePulse(TickCalculation.sub(TickCalculation.add(durations[i], delays[i]), l), i));
          }
        }
        i++;
      }
    }
    oldTicks = l;
  }
  
  @Deprecated
  public void impl_jumpTo(long paramLong1, long paramLong2)
  {
    impl_sync(false);
    double d = calculateFraction(paramLong1, paramLong2);
    long l = Math.max(0L, Math.min(getCachedInterpolator().interpolate(0L, paramLong2, d), paramLong2));
    int i = 0;
    for (Animation localAnimation : cachedChildren)
    {
      if (l <= delays[i])
      {
        offsetTicks[i] = 0L;
        localAnimation.jumpTo(Duration.ZERO);
        if ((localAnimation.getStatus() != Animation.Status.STOPPED) && (getCurrentRate() < 0.0D)) {
          localAnimation.impl_finished();
        }
      }
      else if (l >= TickCalculation.add(durations[i], delays[i]))
      {
        offsetTicks[i] = 0L;
        localAnimation.jumpTo(TickCalculation.toDuration(durations[i], rates[i]));
        if ((localAnimation.getStatus() != Animation.Status.STOPPED) && (getCurrentRate() > 0.0D)) {
          localAnimation.impl_finished();
        }
      }
      else
      {
        offsetTicks[i] = (getCurrentRate() < 0.0D ? TickCalculation.sub(TickCalculation.add(durations[i], delays[i]), l) : TickCalculation.sub(l, delays[i]));
        localAnimation.jumpTo(TickCalculation.toDuration(TickCalculation.sub(l, delays[i]), rates[i]));
      }
      i++;
    }
    oldTicks = l;
  }
  
  protected void interpolate(double paramDouble) {}
  
  private long calcTimePulse(long paramLong, int paramInt)
  {
    return TickCalculation.sub(Math.round(paramLong * Math.abs(rates[paramInt])), offsetTicks[paramInt]);
  }
}

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

import java.util.Arrays;
import java.util.Collection;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.util.Builder;

public final class ParallelTransitionBuilder
  extends TransitionBuilder<ParallelTransitionBuilder>
  implements Builder<ParallelTransition>
{
  private int __set;
  private Collection<? extends Animation> children;
  private Node node;
  
  public static ParallelTransitionBuilder create()
  {
    return new ParallelTransitionBuilder();
  }
  
  public void applyTo(ParallelTransition paramParallelTransition)
  {
    super.applyTo(paramParallelTransition);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramParallelTransition.getChildren().addAll(children);
    }
    if ((i & 0x2) != 0) {
      paramParallelTransition.setNode(node);
    }
  }
  
  public ParallelTransitionBuilder children(Collection<? extends Animation> paramCollection)
  {
    children = paramCollection;
    __set |= 0x1;
    return this;
  }
  
  public ParallelTransitionBuilder children(Animation... paramVarArgs)
  {
    return children(Arrays.asList(paramVarArgs));
  }
  
  public ParallelTransitionBuilder node(Node paramNode)
  {
    node = paramNode;
    __set |= 0x2;
    return this;
  }
  
  public ParallelTransition build()
  {
    ParallelTransition localParallelTransition = new ParallelTransition();
    applyTo(localParallelTransition);
    return localParallelTransition;
  }
}

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

import javafx.beans.property.ObjectPropertyBase;
import javafx.util.Duration;

class PathTransition$1
  extends ObjectPropertyBase<Duration>
{
  PathTransition$1(PathTransition paramPathTransition, Duration paramDuration)
  {
    super(paramDuration);
  }
  
  public void invalidated()
  {
    this$0.setCycleDuration(this$0.getDuration());
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "duration";
  }
}

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

public enum PathTransition$OrientationType
{
  NONE,  ORTHOGONAL_TO_TANGENT;
  
  private PathTransition$OrientationType() {}
}

/* Location:
 * Qualified Name:     javafx.animation.PathTransition.OrientationType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package javafx.animation;

import com.sun.javafx.animation.transition.AnimationPathHelper;
import com.sun.javafx.animation.transition.Position2D;
import com.sun.javafx.geom.Path2D;
import com.sun.javafx.geom.transform.BaseTransform;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ObjectPropertyBase;
import javafx.beans.property.SimpleObjectProperty;
import javafx.geometry.Bounds;
import javafx.scene.Node;
import javafx.scene.shape.Shape;
import javafx.util.Duration;

public final class PathTransition
  extends Transition
{
  private ObjectProperty<Node> node;
  private static final Node DEFAULT_NODE = null;
  private Node cachedNode;
  private ObjectProperty<Duration> duration;
  private static final Duration DEFAULT_DURATION = Duration.millis(400.0D);
  private ObjectProperty<Shape> path;
  private static final Shape DEFAULT_PATH = null;
  private ObjectProperty<OrientationType> orientation;
  private static final OrientationType DEFAULT_ORIENTATION = OrientationType.NONE;
  private boolean cachedIsNormalRequired;
  private final Position2D posResult = new Position2D();
  private AnimationPathHelper apHelper;
  
  public final void setNode(Node paramNode)
  {
    if ((node != null) || (paramNode != null)) {
      nodeProperty().set(paramNode);
    }
  }
  
  public final Node getNode()
  {
    return node == null ? DEFAULT_NODE : (Node)node.get();
  }
  
  public final ObjectProperty<Node> nodeProperty()
  {
    if (node == null) {
      node = new SimpleObjectProperty(this, "node", DEFAULT_NODE);
    }
    return node;
  }
  
  public final void setDuration(Duration paramDuration)
  {
    if ((duration != null) || (!DEFAULT_DURATION.equals(paramDuration))) {
      durationProperty().set(paramDuration);
    }
  }
  
  public final Duration getDuration()
  {
    return duration == null ? DEFAULT_DURATION : (Duration)duration.get();
  }
  
  public final ObjectProperty<Duration> durationProperty()
  {
    if (duration == null) {
      duration = new ObjectPropertyBase(DEFAULT_DURATION)
      {
        public void invalidated()
        {
          setCycleDuration(getDuration());
        }
        
        public Object getBean()
        {
          return PathTransition.this;
        }
        
        public String getName()
        {
          return "duration";
        }
      };
    }
    return duration;
  }
  
  public final void setPath(Shape paramShape)
  {
    if ((path != null) || (paramShape != null)) {
      pathProperty().set(paramShape);
    }
  }
  
  public final Shape getPath()
  {
    return path == null ? DEFAULT_PATH : (Shape)path.get();
  }
  
  public final ObjectProperty<Shape> pathProperty()
  {
    if (path == null) {
      path = new SimpleObjectProperty(this, "path", DEFAULT_PATH);
    }
    return path;
  }
  
  public final void setOrientation(OrientationType paramOrientationType)
  {
    if ((orientation != null) || (!DEFAULT_ORIENTATION.equals(paramOrientationType))) {
      orientationProperty().set(paramOrientationType);
    }
  }
  
  public final OrientationType getOrientation()
  {
    return orientation == null ? OrientationType.NONE : (OrientationType)orientation.get();
  }
  
  public final ObjectProperty<OrientationType> orientationProperty()
  {
    if (orientation == null) {
      orientation = new SimpleObjectProperty(this, "orientation", DEFAULT_ORIENTATION);
    }
    return orientation;
  }
  
  public PathTransition(Duration paramDuration, Shape paramShape, Node paramNode)
  {
    setDuration(paramDuration);
    setPath(paramShape);
    setNode(paramNode);
    setCycleDuration(paramDuration);
  }
  
  public PathTransition(Duration paramDuration, Shape paramShape)
  {
    this(paramDuration, paramShape, null);
  }
  
  public PathTransition()
  {
    this(DEFAULT_DURATION, null, null);
  }
  
  public void interpolate(double paramDouble)
  {
    apHelper.getPosition2D(paramDouble, cachedIsNormalRequired, posResult);
    cachedNode.setTranslateX(posResult.x - cachedNode.impl_getPivotX());
    cachedNode.setTranslateY(posResult.y - cachedNode.impl_getPivotY());
    if (cachedIsNormalRequired) {
      cachedNode.setRotate(posResult.rotateAngle);
    }
  }
  
  private Node getTargetNode()
  {
    Node localNode = getNode();
    return localNode != null ? localNode : getParentTargetNode();
  }
  
  boolean impl_startable(boolean paramBoolean)
  {
    return (super.impl_startable(paramBoolean)) && (((getTargetNode() != null) && (getPath() != null) && (!getPath().getLayoutBounds().isEmpty())) || ((!paramBoolean) && (cachedNode != null) && (apHelper != null)));
  }
  
  void impl_sync(boolean paramBoolean)
  {
    super.impl_sync(paramBoolean);
    if ((paramBoolean) || (cachedNode == null))
    {
      cachedNode = getTargetNode();
      Shape localShape = getPath();
      Path2D localPath2D = new Path2D(localShape.impl_configShape());
      BaseTransform localBaseTransform = localShape.impl_getLeafTransform();
      apHelper = new AnimationPathHelper(localPath2D, localBaseTransform, 1.0D);
      cachedIsNormalRequired = (getOrientation() == OrientationType.ORTHOGONAL_TO_TANGENT);
    }
  }
  
  public static enum OrientationType
  {
    NONE,  ORTHOGONAL_TO_TANGENT;
    
    private OrientationType() {}
  }
}

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

import javafx.scene.Node;
import javafx.scene.shape.Shape;
import javafx.util.Builder;
import javafx.util.Duration;

public final class PathTransitionBuilder
  extends TransitionBuilder<PathTransitionBuilder>
  implements Builder<PathTransition>
{
  private int __set;
  private Duration duration;
  private Node node;
  private PathTransition.OrientationType orientation;
  private Shape path;
  
  public static PathTransitionBuilder create()
  {
    return new PathTransitionBuilder();
  }
  
  public void applyTo(PathTransition paramPathTransition)
  {
    super.applyTo(paramPathTransition);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramPathTransition.setDuration(duration);
    }
    if ((i & 0x2) != 0) {
      paramPathTransition.setNode(node);
    }
    if ((i & 0x4) != 0) {
      paramPathTransition.setOrientation(orientation);
    }
    if ((i & 0x8) != 0) {
      paramPathTransition.setPath(path);
    }
  }
  
  public PathTransitionBuilder duration(Duration paramDuration)
  {
    duration = paramDuration;
    __set |= 0x1;
    return this;
  }
  
  public PathTransitionBuilder node(Node paramNode)
  {
    node = paramNode;
    __set |= 0x2;
    return this;
  }
  
  public PathTransitionBuilder orientation(PathTransition.OrientationType paramOrientationType)
  {
    orientation = paramOrientationType;
    __set |= 0x4;
    return this;
  }
  
  public PathTransitionBuilder path(Shape paramShape)
  {
    path = paramShape;
    __set |= 0x8;
    return this;
  }
  
  public PathTransition build()
  {
    PathTransition localPathTransition = new PathTransition();
    applyTo(localPathTransition);
    return localPathTransition;
  }
}

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

import javafx.beans.property.ObjectPropertyBase;
import javafx.util.Duration;

class PauseTransition$1
  extends ObjectPropertyBase<Duration>
{
  PauseTransition$1(PauseTransition paramPauseTransition, Duration paramDuration)
  {
    super(paramDuration);
  }
  
  public void invalidated()
  {
    this$0.setCycleDuration(this$0.getDuration());
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "duration";
  }
}

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

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ObjectPropertyBase;
import javafx.util.Duration;

public final class PauseTransition
  extends Transition
{
  private ObjectProperty<Duration> duration;
  private static final Duration DEFAULT_DURATION = Duration.millis(400.0D);
  
  public final void setDuration(Duration paramDuration)
  {
    if ((duration != null) || (!DEFAULT_DURATION.equals(paramDuration))) {
      durationProperty().set(paramDuration);
    }
  }
  
  public final Duration getDuration()
  {
    return duration == null ? DEFAULT_DURATION : (Duration)duration.get();
  }
  
  public final ObjectProperty<Duration> durationProperty()
  {
    if (duration == null) {
      duration = new ObjectPropertyBase(DEFAULT_DURATION)
      {
        public void invalidated()
        {
          setCycleDuration(getDuration());
        }
        
        public Object getBean()
        {
          return PauseTransition.this;
        }
        
        public String getName()
        {
          return "duration";
        }
      };
    }
    return duration;
  }
  
  public PauseTransition(Duration paramDuration)
  {
    setDuration(paramDuration);
    setCycleDuration(paramDuration);
  }
  
  public PauseTransition()
  {
    this(DEFAULT_DURATION);
  }
  
  public void interpolate(double paramDouble) {}
}

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

import javafx.util.Builder;
import javafx.util.Duration;

public final class PauseTransitionBuilder
  extends TransitionBuilder<PauseTransitionBuilder>
  implements Builder<PauseTransition>
{
  private boolean __set;
  private Duration duration;
  
  public static PauseTransitionBuilder create()
  {
    return new PauseTransitionBuilder();
  }
  
  public void applyTo(PauseTransition paramPauseTransition)
  {
    super.applyTo(paramPauseTransition);
    if (__set) {
      paramPauseTransition.setDuration(duration);
    }
  }
  
  public PauseTransitionBuilder duration(Duration paramDuration)
  {
    duration = paramDuration;
    __set = true;
    return this;
  }
  
  public PauseTransition build()
  {
    PauseTransition localPauseTransition = new PauseTransition();
    applyTo(localPauseTransition);
    return localPauseTransition;
  }
}

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

import javafx.beans.property.ObjectPropertyBase;
import javafx.util.Duration;

class RotateTransition$1
  extends ObjectPropertyBase<Duration>
{
  RotateTransition$1(RotateTransition paramRotateTransition, Duration paramDuration)
  {
    super(paramDuration);
  }
  
  public void invalidated()
  {
    this$0.setCycleDuration(this$0.getDuration());
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "duration";
  }
}

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

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ObjectPropertyBase;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.geometry.Point3D;
import javafx.scene.Node;
import javafx.util.Duration;

public final class RotateTransition
  extends Transition
{
  private static final double EPSILON = 1.0E-12D;
  private double start;
  private double delta;
  private ObjectProperty<Node> node;
  private static final Node DEFAULT_NODE = null;
  private Node cachedNode;
  private ObjectProperty<Duration> duration;
  private static final Duration DEFAULT_DURATION = Duration.millis(400.0D);
  private ObjectProperty<Point3D> axis;
  private static final Point3D DEFAULT_AXIS = null;
  private DoubleProperty fromAngle;
  private static final double DEFAULT_FROM_ANGLE = NaN.0D;
  private DoubleProperty toAngle;
  private static final double DEFAULT_TO_ANGLE = NaN.0D;
  private DoubleProperty byAngle;
  private static final double DEFAULT_BY_ANGLE = 0.0D;
  
  public final void setNode(Node paramNode)
  {
    if ((node != null) || (paramNode != null)) {
      nodeProperty().set(paramNode);
    }
  }
  
  public final Node getNode()
  {
    return node == null ? DEFAULT_NODE : (Node)node.get();
  }
  
  public final ObjectProperty<Node> nodeProperty()
  {
    if (node == null) {
      node = new SimpleObjectProperty(this, "node", DEFAULT_NODE);
    }
    return node;
  }
  
  public final void setDuration(Duration paramDuration)
  {
    if ((duration != null) || (!DEFAULT_DURATION.equals(paramDuration))) {
      durationProperty().set(paramDuration);
    }
  }
  
  public final Duration getDuration()
  {
    return duration == null ? DEFAULT_DURATION : (Duration)duration.get();
  }
  
  public final ObjectProperty<Duration> durationProperty()
  {
    if (duration == null) {
      duration = new ObjectPropertyBase(DEFAULT_DURATION)
      {
        public void invalidated()
        {
          setCycleDuration(getDuration());
        }
        
        public Object getBean()
        {
          return RotateTransition.this;
        }
        
        public String getName()
        {
          return "duration";
        }
      };
    }
    return duration;
  }
  
  public final void setAxis(Point3D paramPoint3D)
  {
    if ((axis != null) || (paramPoint3D != null)) {
      axisProperty().set(paramPoint3D);
    }
  }
  
  public final Point3D getAxis()
  {
    return axis == null ? DEFAULT_AXIS : (Point3D)axis.get();
  }
  
  public final ObjectProperty<Point3D> axisProperty()
  {
    if (axis == null) {
      axis = new SimpleObjectProperty(this, "axis", DEFAULT_AXIS);
    }
    return axis;
  }
  
  public final void setFromAngle(double paramDouble)
  {
    if ((fromAngle != null) || (!Double.isNaN(paramDouble))) {
      fromAngleProperty().set(paramDouble);
    }
  }
  
  public final double getFromAngle()
  {
    return fromAngle == null ? NaN.0D : fromAngle.get();
  }
  
  public final DoubleProperty fromAngleProperty()
  {
    if (fromAngle == null) {
      fromAngle = new SimpleDoubleProperty(this, "fromAngle", NaN.0D);
    }
    return fromAngle;
  }
  
  public final void setToAngle(double paramDouble)
  {
    if ((toAngle != null) || (!Double.isNaN(paramDouble))) {
      toAngleProperty().set(paramDouble);
    }
  }
  
  public final double getToAngle()
  {
    return toAngle == null ? NaN.0D : toAngle.get();
  }
  
  public final DoubleProperty toAngleProperty()
  {
    if (toAngle == null) {
      toAngle = new SimpleDoubleProperty(this, "toAngle", NaN.0D);
    }
    return toAngle;
  }
  
  public final void setByAngle(double paramDouble)
  {
    if ((byAngle != null) || (Math.abs(paramDouble - 0.0D) > 1.0E-12D)) {
      byAngleProperty().set(paramDouble);
    }
  }
  
  public final double getByAngle()
  {
    return byAngle == null ? 0.0D : byAngle.get();
  }
  
  public final DoubleProperty byAngleProperty()
  {
    if (byAngle == null) {
      byAngle = new SimpleDoubleProperty(this, "byAngle", 0.0D);
    }
    return byAngle;
  }
  
  public RotateTransition(Duration paramDuration, Node paramNode)
  {
    setDuration(paramDuration);
    setNode(paramNode);
    setCycleDuration(paramDuration);
  }
  
  public RotateTransition(Duration paramDuration)
  {
    this(paramDuration, null);
  }
  
  public RotateTransition()
  {
    this(DEFAULT_DURATION, null);
  }
  
  protected void interpolate(double paramDouble)
  {
    cachedNode.setRotate(start + paramDouble * delta);
  }
  
  private Node getTargetNode()
  {
    Node localNode = getNode();
    return localNode != null ? localNode : getParentTargetNode();
  }
  
  boolean impl_startable(boolean paramBoolean)
  {
    return (super.impl_startable(paramBoolean)) && ((getTargetNode() != null) || ((!paramBoolean) && (cachedNode != null)));
  }
  
  void impl_sync(boolean paramBoolean)
  {
    super.impl_sync(paramBoolean);
    if ((paramBoolean) || (cachedNode == null))
    {
      cachedNode = getTargetNode();
      double d1 = getFromAngle();
      double d2 = getToAngle();
      start = (!Double.isNaN(d1) ? d1 : cachedNode.getRotate());
      delta = (!Double.isNaN(d2) ? d2 - start : getByAngle());
      Point3D localPoint3D = getAxis();
      if (localPoint3D != null) {
        ((Node)node.get()).setRotationAxis(localPoint3D);
      }
    }
  }
}

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

import javafx.geometry.Point3D;
import javafx.scene.Node;
import javafx.util.Builder;
import javafx.util.Duration;

public final class RotateTransitionBuilder
  extends TransitionBuilder<RotateTransitionBuilder>
  implements Builder<RotateTransition>
{
  private int __set;
  private Point3D axis;
  private double byAngle;
  private Duration duration;
  private double fromAngle;
  private Node node;
  private double toAngle;
  
  public static RotateTransitionBuilder create()
  {
    return new RotateTransitionBuilder();
  }
  
  public void applyTo(RotateTransition paramRotateTransition)
  {
    super.applyTo(paramRotateTransition);
    int i = __set;
    if ((i & 0x1) != 0) {
      paramRotateTransition.setAxis(axis);
    }
    if ((i & 0x2) != 0) {
      paramRotateTransition.setByAngle(byAngle);
    }
    if ((i & 0x4) != 0) {
      paramRotateTransition.setDuration(duration);
    }
    if ((i & 0x8) != 0) {
      paramRotateTransition.setFromAngle(fromAngle);
    }
    if ((i & 0x10) != 0) {
      paramRotateTransition.setNode(node);
    }
    if ((i & 0x20) != 0) {
      paramRotateTransition.setToAngle(toAngle);
    }
  }
  
  public RotateTransitionBuilder axis(Point3D paramPoint3D)
  {
    axis = paramPoint3D;
    __set |= 0x1;
    return this;
  }
  
  public RotateTransitionBuilder byAngle(double paramDouble)
  {
    byAngle = paramDouble;
    __set |= 0x2;
    return this;
  }
  
  public RotateTransitionBuilder duration(Duration paramDuration)
  {
    duration = paramDuration;
    __set |= 0x4;
    return thi
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