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 final <T> void addPropertyToInterpolate(String propName, KeyFrames<T> keyFrames) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .goingThrough(keyFrames)); }
public final <T> void addPropertyToInterpolate(String propName, KeyFrames<T> keyFrames) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .goingThrough(keyFrames)); }
public final <T> void addPropertyToInterpolate(String propName, KeyFrames<T> keyFrames) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .goingThrough(keyFrames)); }
private void initCollapseAnimations(String state) { collapseAnimation = new Timeline(this); switch (state) { case "expand": { collapseAnimation.addPropertyToInterpolate("width", this.getWidth(), MAX_WIDTH); break; } case "collapse": { collapseAnimation.addPropertyToInterpolate("width", this.getWidth(), MIN_WIDTH); } } collapseAnimation.setEase(new Spline(1f)); collapseAnimation.setDuration(150); }
public final <T> void addPropertyToInterpolate(String propName, T from, T to) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .from(from).to(to)); }
/** * 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); }
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); } }
@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 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", value, VALUE); timeline.setEase(new Spline(0.5f)); timeline.setDuration(800); 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", 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(); }
@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(); }
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(); } }
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(); } }