Java Code Examples for org.jdesktop.animation.timing.Animator#INFINITE
The following examples show how to use
org.jdesktop.animation.timing.Animator#INFINITE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PulseFieldDemo.java From filthy-rich-clients with BSD 3-Clause "New" or "Revised" License | 6 votes |
private JComponent buildPulsatingField() { JTextField field = new JTextField(20); PulsatingBorder border = new PulsatingBorder(field); field.setBorder(new CompoundBorder(field.getBorder(), border)); PropertySetter setter = new PropertySetter( border, "thickness", 0.0f, 1.0f); Animator animator = new Animator(900, Animator.INFINITE, Animator.RepeatBehavior.REVERSE, setter); animator.start(); JPanel panel = new JPanel(new FlowLayout()); panel.add(field); panel.add(new JButton("OK")); panel.add(new JButton("Cancel")); return panel; }
Example 2
Source File: DemoPanel.java From littleluck with Apache License 2.0 | 5 votes |
public LoadAnimationPanel() { super(10); setBorder(roundedBorder); setBackground(Utilities.deriveColorHSB( UIManager.getColor("Panel.background"), 0, 0, -.06f)); // remind(aim): get from resource map message = "demo loading"; PropertySetter rotator = new PropertySetter(this, "triState", 0, 3); animator = new Animator(500, Animator.INFINITE, Animator.RepeatBehavior.LOOP, rotator); // Don't animate gears if loading is quick animator.setStartDelay(200); }
Example 3
Source File: DemoPanel.java From beautyeye with Apache License 2.0 | 5 votes |
public LoadAnimationPanel() { super(10); setBorder(roundedBorder); setBackground(Utilities.deriveColorHSB( UIManager.getColor("Panel.background"), 0, 0, -.06f)); // remind(aim): get from resource map message = "demo loading"; PropertySetter rotator = new PropertySetter(this, "triState", 0, 3); animator = new Animator(500, Animator.INFINITE, Animator.RepeatBehavior.LOOP, rotator); // Don't animate gears if loading is quick animator.setStartDelay(200); }
Example 4
Source File: FadingButtonTF.java From filthy-rich-clients with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** Creates a new instance of FadingButtonTF */ public FadingButtonTF(String label) { super(label); setOpaque(false); animator = new Animator(animationDuration/2, Animator.INFINITE, RepeatBehavior.REVERSE, this); animator.setStartFraction(1.0f); animator.setStartDirection(Direction.BACKWARD); addActionListener(this); }
Example 5
Source File: PulseDemo.java From filthy-rich-clients with BSD 3-Clause "New" or "Revised" License | 5 votes |
private void startAnimator() { PropertySetter setter = new PropertySetter(this, "alpha", 0.0f, 1.0f); Animator animator = new Animator(600, Animator.INFINITE, Animator.RepeatBehavior.REVERSE, setter); animator.start(); }
Example 6
Source File: DemoPanel.java From Darcula with Apache License 2.0 | 5 votes |
public LoadAnimationPanel() { super(10); setBorder(roundedBorder); setBackground(Utilities.deriveColorHSB( UIManager.getColor("Panel.background"), 0, 0, -.06f)); // remind(aim): get from resource map message = "demo loading"; PropertySetter rotator = new PropertySetter(this, "triState", 0, 3); animator = new Animator(500, Animator.INFINITE, Animator.RepeatBehavior.LOOP, rotator); // Don't animate gears if loading is quick animator.setStartDelay(200); }