AnimatedPainter:

- renamed `getValues()` to `getAnimatableValues()`
- renamed `getClientPropertyKey()` to `getAnimationClientPropertyKey()`
- AnimatedPainterSupport improvements
This commit is contained in:
Karl Tauber
2025-03-13 11:46:14 +01:00
parent 23fc3674c9
commit 4d7a6ff331
6 changed files with 100 additions and 66 deletions

View File

@@ -244,7 +244,7 @@ public class FlatAnimatedBorderTest
}
@Override
public float[] getValues( Component c ) {
public float[] getAnimatableValues( Component c ) {
return new float[] { FlatUIUtils.isPermanentFocusOwner( c ) ? 1 : 0 };
}
@@ -315,7 +315,7 @@ public class FlatAnimatedBorderTest
}
@Override
public float[] getValues( Component c ) {
public float[] getAnimatableValues( Component c ) {
return new float[] { FlatUIUtils.isPermanentFocusOwner( c ) ? 1 : 0 };
}
@@ -416,7 +416,7 @@ public class FlatAnimatedBorderTest
}
@Override
public float[] getValues( Component c ) {
public float[] getAnimatableValues( Component c ) {
return new float[] { FlatUIUtils.isPermanentFocusOwner( c ) ? 1 : 0 };
}

View File

@@ -221,7 +221,7 @@ public class FlatAnimatedIconTest
}
@Override
public float[] getValues( Component c ) {
public float[] getAnimatableValues( Component c ) {
return new float[] { ((JRadioButton)c).isSelected() ? 1 : 0 };
}
@@ -266,7 +266,7 @@ public class FlatAnimatedIconTest
}
@Override
public float[] getValues( Component c ) {
public float[] getAnimatableValues( Component c ) {
return new float[] { ((AbstractButton)c).isSelected() ? 1 : 0 };
}
@@ -342,7 +342,7 @@ public class FlatAnimatedIconTest
}
@Override
public float[] getValues( Component c ) {
public float[] getAnimatableValues( Component c ) {
AbstractButton b = (AbstractButton) c;
ButtonModel bm = b.getModel();
@@ -392,7 +392,7 @@ public class FlatAnimatedIconTest
}
@Override
public float[] getValues( Component c ) {
public float[] getAnimatableValues( Component c ) {
return new float[] { ((AbstractButton)c).isSelected() ? 1 : 0 };
}