本文整理汇总了Java中org.jdesktop.animation.timing.Animator.INFINITE属性的典型用法代码示例。如果您正苦于以下问题:Java Animator.INFINITE属性的具体用法?Java Animator.INFINITE怎么用?Java Animator.INFINITE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.jdesktop.animation.timing.Animator
的用法示例。
在下文中一共展示了Animator.INFINITE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildPulsatingField
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;
}
示例2: LoadAnimationPanel
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);
}
示例3: LoadAnimationPanel
public LoadAnimationPanel() {
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);
}
示例4: FadingButtonTF
/** 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);
}
示例5: startAnimator
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();
}