private void initAnimationTimers() { this.showAnimation = new Timeline(this); this.showAnimation.setDuration(SHOW_TIME); this.showAnimation.addPropertyToInterpolate("opacity", this.minOpacity, this.maxOpacity); this.hideAnimation = new Timeline(this); this.hideAnimation.setDuration(HIDE_TIME); this.hideAnimation.addPropertyToInterpolate("opacity", this.maxOpacity, this.minOpacity); }
public AirCompass() { super(); rotateTickmarks = true; value = 0; rotationAngle = 0; CENTER = new Point2D.Double(); timeline = new Timeline(this); init(getInnerBounds().width, getInnerBounds().height); setLcdVisible(true); } // </editor-fold>
public RadialCounter() { super(); rotateTickmarks = true; oldValue = 0; rotationAngle = 0; CENTER = new Point2D.Double(); timeline = new Timeline(this); init(getInnerBounds().width, getInnerBounds().height); setLcdVisible(true); } // </editor-fold>
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); } }
/** * Installs defaults on the associated color selector component. */ protected void installDefaults() { this.rolloverTimeline = new Timeline(this); this.rolloverTimeline.addPropertyToInterpolate("rollover", 0.0f, 1.0f); this.rolloverTimeline.addCallback(new SwingRepaintCallback( this.colorSelectorComponent)); this.rolloverTimeline.setDuration(150); }
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); }
@Override public void setLcdValueAnimated(final double LCD_VALUE) { if (lcdTimeline.getState() == Timeline.TimelineState.PLAYING_FORWARD || lcdTimeline.getState() == Timeline.TimelineState.PLAYING_REVERSE) { lcdTimeline.abort(); } lcdTimeline = new Timeline(this); lcdTimeline.addPropertyToInterpolate("lcdValue", this.lcdValue, LCD_VALUE); lcdTimeline.setEase(new Spline(0.5f)); lcdTimeline.play(); }
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); } }
public IconGlowTracker(Component component) { this.component = component; this.iconGlowTimeline = new Timeline(this.component); AnimationConfigurationManager.getInstance().configureTimeline( this.iconGlowTimeline); this.iconGlowTimeline.setDuration(10 * this.iconGlowTimeline .getDuration()); this.iconGlowTimeline.addCallback(new SwingRepaintCallback(component)); this.iconGlowTimeline.setName("Icon glow"); }
@Override public void setLcdValueAnimated(final double LCD_VALUE) { if (lcdTimeline.getState() == Timeline.TimelineState.PLAYING_FORWARD || lcdTimeline.getState() == Timeline.TimelineState.PLAYING_REVERSE) { lcdTimeline.abort(); } lcdTimeline = new Timeline(this); lcdTimeline.addPropertyToInterpolate("lcdValue", this.lcdValue, LCD_VALUE); lcdTimeline.setEase(new Spline(0.5f)); lcdTimeline.play(); }
public IconGlowTracker(Component component) { this.component = component; this.iconGlowTimeline = new Timeline(this.component); AnimationConfigurationManager.getInstance().configureTimeline( this.iconGlowTimeline); this.iconGlowTimeline.setDuration(10 * this.iconGlowTimeline .getDuration()); this.iconGlowTimeline.addCallback(new SwingRepaintCallback(component)); this.iconGlowTimeline.setName("Icon glow"); }
@Override public void setLcdValueAnimated(final double LCD_VALUE) { if (lcdTimeline.getState() == Timeline.TimelineState.PLAYING_FORWARD || lcdTimeline.getState() == Timeline.TimelineState.PLAYING_REVERSE) { lcdTimeline.abort(); } lcdTimeline = new Timeline(this); lcdTimeline.addPropertyToInterpolate("lcdValue", this.lcdValue, LCD_VALUE); lcdTimeline.setEase(new Spline(0.5f)); lcdTimeline.play(); }
@Override public void setLcdValueAnimated(final double LCD_VALUE) { if (lcdTimeline.getState() == Timeline.TimelineState.PLAYING_FORWARD || lcdTimeline.getState() == Timeline.TimelineState.PLAYING_REVERSE) { lcdTimeline.abort(); } lcdTimeline = new Timeline(this); lcdTimeline.addPropertyToInterpolate("lcdValue", this.lcdValue, LCD_VALUE); lcdTimeline.setEase(new Spline(0.5f)); lcdTimeline.play(); }
@Override public void setValueAnimated(final double VALUE) { if (timeline.getState() == Timeline.TimelineState.PLAYING_FORWARD || timeline.getState() == Timeline.TimelineState.PLAYING_REVERSE) { timeline.abort(); } timeline = new Timeline(this); timeline.addPropertyToInterpolate("value", this.oldValue, VALUE); timeline.setEase(new Spline(0.5f)); timeline.setDuration(1500); timeline.play(); }
@Override public void setValueAnimated(final double VALUE) { if (timeline.getState() == Timeline.TimelineState.PLAYING_FORWARD || timeline.getState() == Timeline.TimelineState.PLAYING_REVERSE) { timeline.abort(); } timeline = new Timeline(this); timeline.addPropertyToInterpolate("value", value, VALUE); timeline.setEase(new Spline(0.5f)); timeline.setDuration(800); timeline.play(); }
public void setRollAnimated(final double ROLL) { if (isEnabled()) { if (timelineRoll.getState() == Timeline.TimelineState.PLAYING_FORWARD || timelineRoll.getState() == Timeline.TimelineState.PLAYING_REVERSE) { timelineRoll.abort(); } timelineRoll = new Timeline(this); timelineRoll.addPropertyToInterpolate("roll", this.oldRoll, ROLL); timelineRoll.setEase(new Spline(0.5f)); timelineRoll.setDuration(800); timelineRoll.play(); } }
public void setPitchAnimated(final double PITCH) { if (isEnabled()) { if (timelinePitch.getState() == Timeline.TimelineState.PLAYING_FORWARD || timelinePitch.getState() == Timeline.TimelineState.PLAYING_REVERSE) { timelinePitch.abort(); } timelinePitch = new Timeline(this); timelinePitch.addPropertyToInterpolate("pitch", this.oldPitch, PITCH); timelinePitch.setEase(new Spline(0.5f)); timelinePitch.setDuration(800); timelinePitch.play(); } }
public void setPitchAnimated(final double PITCH) { if (isEnabled()) { if (timelinePitch.getState() == Timeline.TimelineState.PLAYING_FORWARD || timelinePitch.getState() == Timeline.TimelineState.PLAYING_REVERSE) { timelinePitch.abort(); } timelinePitch = new Timeline(this); timelinePitch.addPropertyToInterpolate("pitch", this.oldPitch, PITCH); timelinePitch.setEase(new Spline(0.5f)); timelinePitch.setDuration(800); timelinePitch.play(); } }