/** * Adds the specified timeline. * * @param timeline * Timeline to add. */ private void addTimeline(Timeline timeline) { synchronized (LOCK) { FullObjectID cid = new FullObjectID(timeline.mainObject, timeline.secondaryId); timeline.fullObjectID = cid; this.runningTimelines.add(timeline); // this.nothingTracked = false; if (DEBUG_MODE) { System.out.println("Added (" + timeline.id + ") on " + timeline.fullObjectID + "]. Fade " // + timeline.timelineKind.toString() + " with state " + timeline.getState().name() + ". Callback - " + (timeline.callback == null ? "no" : "yes")); } } }
System.out.println("Ending " + timeline.id + " on " + " in state " + timeline.getState().name() + " at position " + timeline.durationFraction);
System.out.println("Ending " + timeline.id + " on " + " in state " + timeline.getState().name() + " at position " + timeline.durationFraction);
System.out.println("Ending " + timeline.id + " on " + " in state " + timeline.getState().name() + " at position " + timeline.durationFraction);
/** * Adds the specified timeline. * * @param timeline * Timeline to add. */ private void addTimeline(Timeline timeline) { synchronized (LOCK) { FullObjectID cid = new FullObjectID(timeline.mainObject, timeline.secondaryId); timeline.fullObjectID = cid; this.runningTimelines.add(timeline); // this.nothingTracked = false; if (DEBUG_MODE) { System.out.println("Added (" + timeline.id + ") on " + timeline.fullObjectID + "]. Fade " // + timeline.timelineKind.toString() + " with state " + timeline.getState().name() + ". Callback - " + (timeline.callback == null ? "no" : "yes")); } } }
/** * Adds the specified timeline. * * @param timeline * Timeline to add. */ private void addTimeline(Timeline timeline) { synchronized (LOCK) { timeline.fullObjectID = new FullObjectID(timeline.mainObject, timeline.secondaryId); this.runningTimelines.add(timeline); checkAnimatorThread(); // this.nothingTracked = false; if (DEBUG_MODE) { System.out.println("Added (" + timeline.id + ") on " + timeline.fullObjectID + "]. Fade " // + timeline.timelineKind.toString() + " with state " + timeline.getState().name() + ". Callback - " + (timeline.callback == null ? "no" : "yes")); } } }
@Override public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) { if (newState.equals(Timeline.TimelineState.IDLE) && !inSettings) { if (!descriptor.isAlwaysVisible()) { setVisible(false); } else { tracker.setStringPainted(!descriptor.isAlwaysVisible()); tracker.setMaskPainted(!descriptor.isAlwaysVisible()); } MercuryStoreUI.adrRepaintSubject.onNext(true); } else if (newState.equals(Timeline.TimelineState.PLAYING_FORWARD)) { setVisible(true); JFrame parent = (JFrame) SwingUtilities.getWindowAncestor(AdrDurationCellPanel.this); parent.pack(); } } });
@Override public String toString() { StringBuffer res = new StringBuffer(); if (this.name != null) { res.append(this.name); } if (this.mainObject != null) { res.append(":" + this.mainObject.getClass().getName()); } if (this.secondaryId != null) { res.append(":" + this.secondaryId.toString()); } res.append(" " + this.getState().name()); res.append(":" + this.timelinePosition); return res.toString(); }
@Override public String toString() { StringBuffer res = new StringBuffer(); if (this.name != null) { res.append(this.name); } if (this.mainObject != null) { res.append(":" + this.mainObject.getClass().getName()); } if (this.secondaryId != null) { res.append(":" + this.secondaryId.toString()); } res.append(" " + this.getState().name()); res.append(":" + this.timelinePosition); return res.toString(); }
@Override public String toString() { StringBuffer res = new StringBuffer(); if (this.mainObject != null) { res.append(this.mainObject.getClass().getName()); } if (this.secondaryId != null) { res.append(":" + this.secondaryId.toString()); } res.append(" " + this.getState().name()); res.append(":" + this.timelinePosition); return res.toString(); }
@Override public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) { if (newState.equals(Timeline.TimelineState.IDLE)) { if (descriptor.isInvertTimer()) { value = 0; } else { value = maximum; } } }
@Override public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) { if (newState.equals(Timeline.TimelineState.DONE)) { setAlwaysOnTop(false); setVisible(false); loadingTracker.abort(); } }
@Override public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) { if (newState.equals(Timeline.TimelineState.DONE)) { NotificationAlertFrame.this.setAlwaysOnTop(false); NotificationAlertFrame.this.setVisible(false); NotificationAlertFrame.this.setOpacity(0.9f); messageLabel.setText(""); } }