623 public final void setAutoReverse(boolean value) {
624 if ((autoReverse != null) || (value != DEFAULT_AUTO_REVERSE)) {
625 autoReverseProperty().set(value);
626 }
627 }
628
629 public final boolean isAutoReverse() {
630 return (autoReverse == null)? DEFAULT_AUTO_REVERSE : autoReverse.get();
631 }
632
633 public final BooleanProperty autoReverseProperty() {
634 if (autoReverse == null) {
635 autoReverse = new SimpleBooleanProperty(this, "autoReverse", DEFAULT_AUTO_REVERSE);
636 }
637 return autoReverse;
638 }
639
640 /**
641 * The status of the {@code Animation}.
642 *
643 * In {@code Animation} can be in one of three states:
644 * {@link Status#STOPPED}, {@link Status#PAUSED} or {@link Status#RUNNING}.
645 */
646 private ReadOnlyObjectProperty<Status> status;
647 private static final Status DEFAULT_STATUS = Status.STOPPED;
648
649 protected final void setStatus(Status value) {
650 if ((status != null) || (!DEFAULT_STATUS.equals(value))) {
651 ((AnimationReadOnlyProperty<Status>)statusProperty()).set(value);
652 }
653 }
654
655 public final Status getStatus() {
656 return (status == null)? DEFAULT_STATUS : status.get();
657 }
658
659 public final ReadOnlyObjectProperty<Status> statusProperty() {
660 if (status == null) {
661 status = new AnimationReadOnlyProperty<Status>("status", Status.STOPPED);
662 }
663 return status;
|
623 public final void setAutoReverse(boolean value) {
624 if ((autoReverse != null) || (value != DEFAULT_AUTO_REVERSE)) {
625 autoReverseProperty().set(value);
626 }
627 }
628
629 public final boolean isAutoReverse() {
630 return (autoReverse == null)? DEFAULT_AUTO_REVERSE : autoReverse.get();
631 }
632
633 public final BooleanProperty autoReverseProperty() {
634 if (autoReverse == null) {
635 autoReverse = new SimpleBooleanProperty(this, "autoReverse", DEFAULT_AUTO_REVERSE);
636 }
637 return autoReverse;
638 }
639
640 /**
641 * The status of the {@code Animation}.
642 *
643 * An {@code Animation} can be in one of three states:
644 * {@link Status#STOPPED}, {@link Status#PAUSED} or {@link Status#RUNNING}.
645 */
646 private ReadOnlyObjectProperty<Status> status;
647 private static final Status DEFAULT_STATUS = Status.STOPPED;
648
649 protected final void setStatus(Status value) {
650 if ((status != null) || (!DEFAULT_STATUS.equals(value))) {
651 ((AnimationReadOnlyProperty<Status>)statusProperty()).set(value);
652 }
653 }
654
655 public final Status getStatus() {
656 return (status == null)? DEFAULT_STATUS : status.get();
657 }
658
659 public final ReadOnlyObjectProperty<Status> statusProperty() {
660 if (status == null) {
661 status = new AnimationReadOnlyProperty<Status>("status", Status.STOPPED);
662 }
663 return status;
|