当前位置: 首页>>代码示例>>Java>>正文


Java Animator.INFINITE属性代码示例

本文整理汇总了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;
}
 
开发者ID:romainguy,项目名称:filthy-rich-clients,代码行数:18,代码来源:PulseFieldDemo.java

示例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);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:15,代码来源:DemoPanel.java

示例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);
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:14,代码来源:DemoXPanel.java

示例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);
}
 
开发者ID:romainguy,项目名称:filthy-rich-clients,代码行数:10,代码来源:FadingButtonTF.java

示例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();
}
 
开发者ID:romainguy,项目名称:filthy-rich-clients,代码行数:6,代码来源:PulseDemo.java


注:本文中的org.jdesktop.animation.timing.Animator.INFINITE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。