public Timeline(Object mainTimelineObject) { this.mainObject = mainTimelineObject; for (UIToolkitHandler uiToolkitHandler : TridentConfig.getInstance() .getUIToolkitHandlers()) { if (uiToolkitHandler.isHandlerFor(mainTimelineObject)) { this.uiToolkitHandler = uiToolkitHandler; break; } } // if the main timeline object is handled by a UI toolkit handler, // the setters registered with the different addProperty // APIs need to run with the matching threading policy TimelineCallback setterCallback = (this.uiToolkitHandler != null) ? new UISetter() : new Setter(); this.callback = new Chain(setterCallback); this.duration = 500; this.propertiesToInterpolate = new ArrayList<AbstractFieldInfo>(); this.id = Timeline.getId(); // this.loopsToLive = -1; this.stateStack = new Stack<TimelineState>(); this.stateStack.push(TimelineState.IDLE); this.doneCount = 0; this.ease = new Linear(); }
public Timeline(Object mainTimelineObject) { this.mainObject = mainTimelineObject; for (UIToolkitHandler uiToolkitHandler : TridentConfig.getInstance() .getUIToolkitHandlers()) { if (uiToolkitHandler.isHandlerFor(mainTimelineObject)) { this.uiToolkitHandler = uiToolkitHandler; break; } } // if the main timeline object is handled by a UI toolkit handler, // the setters registered with the different addProperty // APIs need to run with the matching threading policy TimelineCallback setterCallback = (this.uiToolkitHandler != null) ? new UISetter() : new Setter(); this.callback = new Chain(setterCallback); this.duration = 500; this.propertiesToInterpolate = new ArrayList<AbstractFieldInfo>(); this.id = Timeline.getId(); // this.loopsToLive = -1; this.stateStack = new Stack<TimelineState>(); this.stateStack.push(TimelineState.IDLE); this.doneCount = 0; this.ease = new Linear(); }
public Timeline(Object mainTimelineObject) { this.mainObject = mainTimelineObject; for (UIToolkitHandler uiToolkitHandler : TridentConfig.getInstance() .getUIToolkitHandlers()) { if (uiToolkitHandler.isHandlerFor(mainTimelineObject)) { this.uiToolkitHandler = uiToolkitHandler; break; } } // if the main timeline object is handled by a UI toolkit handler, // the setters registered with the different addProperty // APIs need to run with the matching threading policy TimelineCallback setterCallback = (this.uiToolkitHandler != null) ? new UISetter() : new Setter(); this.callback = new Chain(setterCallback); this.duration = 500; this.propertiesToInterpolate = new ArrayList<AbstractFieldInfo>(); this.id = Timeline.getId(); // this.loopsToLive = -1; this.stateStack = new Stack<TimelineState>(); this.stateStack.push(TimelineState.IDLE); this.doneCount = 0; this.ease = new Linear(); }