AnimatedPainter: support individual animation duration, resolution and interpolator depending on value(s)

This commit is contained in:
Karl Tauber
2021-11-22 22:07:45 +01:00
parent 3b489e8e1a
commit 26d7008c04
6 changed files with 57 additions and 13 deletions

View File

@@ -171,7 +171,7 @@ public class FlatAnimatedBorderTest
add(durationLabel, "cell 0 11");
//---- durationField ----
durationField.setModel(new SpinnerNumberModel(200, 100, null, 50));
durationField.setModel(new SpinnerNumberModel(200, 0, null, 50));
add(durationField, "cell 0 11");
// JFormDesigner - End of component initialization //GEN-END:initComponents
}

View File

@@ -113,7 +113,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JSpinner" ) {
name: "durationField"
"model": new javax.swing.SpinnerNumberModel {
minimum: 100
minimum: 0
stepSize: 50
value: 200
}

View File

@@ -145,7 +145,7 @@ public class FlatAnimatedIconTest
add(durationLabel, "cell 0 7 3 1");
//---- durationField ----
durationField.setModel(new SpinnerNumberModel(200, 100, null, 50));
durationField.setModel(new SpinnerNumberModel(200, 0, null, 50));
add(durationField, "cell 0 7 3 1");
//---- buttonGroup1 ----

View File

@@ -88,7 +88,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JSpinner" ) {
name: "durationField"
"model": new javax.swing.SpinnerNumberModel {
minimum: 100
minimum: 0
stepSize: 50
value: 200
}