Package com.inductiveautomation.rm.app
Class Animation
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.app.Animation
- All Implemented Interfaces:
RMAnimator.Listener
,EventListener
This class provides Swing UI editing for shape animation.
-
Field Summary
Fields inherited from class com.inductiveautomation.snap.ui.UIOwner
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
animatorStarted
(RMAnimator anAnimator) Animator Listener method.void
animatorStopped
(RMAnimator anAnimator) void
animatorUpdated
(RMAnimator anAnimator) Animator Listener method : updates time slider and time text when animator has been updated.void
delete()
Handles delete of key frame(s) or change(s).Returns the name for this inspector.protected void
initUI()
Initialize UI for this inspector.void
resetUI()
Updates the UI panel controls from the current selection.void
respondUI
(SwingEvent anEvent) Responds to changes from UI controls.void
setTime
(int aTime) Sets the time of the current animator to the given time.void
setTimeForScopedKeyFrame
(int aTime, Integer aScope) Sets the time of the current animator to the given time.void
setTimeSeconds
(float aTime) Sets the time of the current animator to the given time.void
Populates the combobox with all the interpolator names if necessary.Methods inherited from class com.inductiveautomation.snap.swing.SwingOwner
addKeyActionEvent, createTimer, createUI, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
Methods inherited from class com.inductiveautomation.snap.ui.UIOwner
addNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
-
Constructor Details
-
Animation
public Animation()
-
-
Method Details
-
initUI
protected void initUI()Initialize UI for this inspector.- Overrides:
initUI
in classUIOwner<SwingEvent,
JComponent>
-
updateInterpolatorCombobox
public void updateInterpolatorCombobox()Populates the combobox with all the interpolator names if necessary. -
resetUI
public void resetUI()Updates the UI panel controls from the current selection.- Overrides:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
respondUI
Responds to changes from UI controls.- Overrides:
respondUI
in classUIOwner<SwingEvent,
JComponent>
-
setTime
public void setTime(int aTime) Sets the time of the current animator to the given time. -
setTimeForScopedKeyFrame
Sets the time of the current animator to the given time. -
setTimeSeconds
public void setTimeSeconds(float aTime) Sets the time of the current animator to the given time. -
delete
public void delete()Handles delete of key frame(s) or change(s). -
animatorStarted
Animator Listener method.- Specified by:
animatorStarted
in interfaceRMAnimator.Listener
-
animatorStopped
- Specified by:
animatorStopped
in interfaceRMAnimator.Listener
-
animatorUpdated
Animator Listener method : updates time slider and time text when animator has been updated.- Specified by:
animatorUpdated
in interfaceRMAnimator.Listener
-
getWindowTitle
Returns the name for this inspector.
-