< prev index next >
modules/graphics/src/main/java/javafx/animation/StrokeTransition.java
Print this page
*** 307,318 ****
}
return shape;
}
@Override
! boolean impl_startable(boolean forceSync) {
! if (!super.impl_startable(forceSync)) {
return false;
}
// check if synchronization is not forced and cached values are valid
if (!forceSync && (cachedShape != null)) {
return true;
--- 307,318 ----
}
return shape;
}
@Override
! boolean startable(boolean forceSync) {
! if (!super.startable(forceSync)) {
return false;
}
// check if synchronization is not forced and cached values are valid
if (!forceSync && (cachedShape != null)) {
return true;
*** 331,342 ****
// Color?
&& (getToValue() != null)); // toValue defined?
}
@Override
! void impl_sync(boolean forceSync) {
! super.impl_sync(forceSync);
if (forceSync || (cachedShape == null)) {
cachedShape = getTargetShape();
final Color _fromValue = getFromValue();
start = (_fromValue != null) ? _fromValue : (Color) cachedShape
.getStroke();
--- 331,342 ----
// Color?
&& (getToValue() != null)); // toValue defined?
}
@Override
! void sync(boolean forceSync) {
! super.sync(forceSync);
if (forceSync || (cachedShape == null)) {
cachedShape = getTargetShape();
final Color _fromValue = getFromValue();
start = (_fromValue != null) ? _fromValue : (Color) cachedShape
.getStroke();
< prev index next >