/** * Starts the associated timer. */ private void startTimer() { this.timeline.playLoop(RepeatBehavior.REVERSE); }
public void play() { this.iconGlowTimeline.playLoop(RepeatBehavior.REVERSE); }
/** * Starts the associated timer. */ private void startTimer() { this.timeline.playLoop(RepeatBehavior.REVERSE); }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void playLoop(int loopCount, RepeatBehavior repeatBehavior) { if (loopCount >= 0) { throw new UnsupportedOperationException( "Only infinite looping is supported"); } super.playLoop(loopCount, repeatBehavior); } }
@Override public void disableSettings() { super.disableSettings(); this.progressTl.playLoop(Timeline.RepeatBehavior.LOOP); this.setVisible(this.descriptor.isVisible()); }
@Override public void updateStatus(String text, int level) { label.setText(text); if (level == LEVEL_NORMAL) { label.setBackground(colorNormal); } else { Color blinkColor = (level == LEVEL_WARNING) ? colorWarning : colorError; Timeline timeline = new Timeline(label); timeline.setDuration(200); timeline.setEase(new Sine()); timeline.addPropertyToInterpolate("background", colorNormal, blinkColor); timeline.playLoop(8, RepeatBehavior.REVERSE); } }
private void trackTabModification(int tabIndex, Component tabComponent) { Timeline modifiedTimeline = new Timeline(tabPane); AnimationConfigurationManager.getInstance().configureModifiedTimeline( modifiedTimeline); modifiedTimeline.addCallback(new TabRepaintCallback(tabPane, tabIndex)); modifiedTimeline.playLoop(RepeatBehavior.REVERSE); modifiedTimelines.put(tabComponent, modifiedTimeline); } }
private void trackTabModification(int tabIndex, Component tabComponent) { Timeline modifiedTimeline = new Timeline(tabPane); AnimationConfigurationManager.getInstance().configureModifiedTimeline( modifiedTimeline); modifiedTimeline.addCallback(new TabRepaintCallback(tabPane, tabIndex)); modifiedTimeline.playLoop(RepeatBehavior.REVERSE); modifiedTimelines.put(tabComponent, modifiedTimeline); } }
@Override protected void onUpdate() { this.setVisible(this.descriptor.isVisible()); this.progressTl.abort(); this.progressTl.setDuration(1000 / this.descriptor.getFps()); this.progressTl.playLoop(Timeline.RepeatBehavior.LOOP); }
private void trackModificationFlag() { this.modifiedTimeline = new Timeline(this.button); AnimationConfigurationManager.getInstance().configureModifiedTimeline( modifiedTimeline); this.modifiedTimeline .addCallback(new SwingRepaintCallback(this.button)); this.modifiedTimeline.playLoop(RepeatBehavior.REVERSE); }
private void trackModificationFlag() { this.modifiedTimeline = new Timeline(this.button); AnimationConfigurationManager.getInstance().configureModifiedTimeline( modifiedTimeline); this.modifiedTimeline .addCallback(new SwingRepaintCallback(this.button)); this.modifiedTimeline.playLoop(RepeatBehavior.REVERSE); }
public static void blinkComponent(JComponent component){ final Timeline timeline = new Timeline(component); timeline.addPropertyToInterpolate("background", component.getBackground(), GuiUtils.getAverageColor(component.getBackground(), component.getForeground())); timeline.setDuration(150); timeline.playLoop(2, Timeline.RepeatBehavior.REVERSE); } }