< prev index next >
modules/graphics/src/main/java/javafx/animation/Transition.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -189,33 +189,33 @@
final double frac = cycleTicks <= 0 ? 1.0 : (double) currentTicks / cycleTicks;
return cachedInterpolator.interpolate(0.0, 1.0, frac);
}
@Override
- boolean impl_startable(boolean forceSync) {
- return super.impl_startable(forceSync)
+ boolean startable(boolean forceSync) {
+ return super.startable(forceSync)
&& ((getInterpolator() != null) || (!forceSync && (cachedInterpolator != null)));
}
@Override
- void impl_sync(boolean forceSync) {
- super.impl_sync(forceSync);
+ void sync(boolean forceSync) {
+ super.sync(forceSync);
if (forceSync || (cachedInterpolator == null)) {
cachedInterpolator = getInterpolator();
}
}
@Override
- void impl_playTo(long currentTicks, long cycleTicks) {
- impl_setCurrentTicks(currentTicks);
+ void doPlayTo(long currentTicks, long cycleTicks) {
+ setCurrentTicks(currentTicks);
interpolate(calculateFraction(currentTicks, cycleTicks));
}
@Override
- void impl_jumpTo(long currentTicks, long cycleTicks, boolean forceJump) {
- impl_setCurrentTicks(currentTicks);
+ void doJumpTo(long currentTicks, long cycleTicks, boolean forceJump) {
+ setCurrentTicks(currentTicks);
if (getStatus() != Status.STOPPED || forceJump) {
- impl_sync(false);
+ sync(false);
interpolate(calculateFraction(currentTicks, cycleTicks));
}
}
}
< prev index next >