Class RMViewerPane
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.viewer.RMViewerPane
- All Implemented Interfaces:
PropertyChangeListener,EventListener
- Direct Known Subclasses:
RMEditorPane
This class is a container for a viewer and tool bars. The default tool bars add document controls (save,
print, copy), input controls (select, pan, text select, image select), zoom controls and page controls.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classA dynamic popup menu class. -
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidvoidcopy()Copies the current viewer document selection.Creates bottom tool bar.Creates the top tool bar.protected JComponentcreateUI()Initializes the UI.protected RMViewerCreates the real viewer for this viewer plus.Returns the bottom controls.Returns the content shape.Returns the RMDocument associated with this viewer.Returns the scroll pane for this viewer plus.protected WebURLReturns the document source.Returns the top controls.Returns the viewer for this viewer pane.Returns the viewer shape.protected voidloadPopupMenu(JPopupMenu popupMenu) Returns a popup menu.voidPreviews the current viewer document as pdf.voidprint()Prints the current viewer document.voidpropertyChange(PropertyChangeEvent anEvent) ResetUI on PropertyChange.voidprotected voidresetUI()Resets UI.protected voidrespondUI(SwingEvent anEvent) Respond to UI controls.voidsave()Saves the current viewer document.protected voidSets the viewer for this viewer pane.Methods inherited from class com.inductiveautomation.snap.swing.SwingOwner
addKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleMethods 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, 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
-
Field Details
-
propertyChangeSupport
-
-
Constructor Details
-
RMViewerPane
public RMViewerPane()
-
-
Method Details
-
createUI
Initializes the UI.- Overrides:
createUIin classSwingOwner
-
getViewer
Returns the viewer for this viewer pane. -
setViewer
Sets the viewer for this viewer pane. -
createViewer
Creates the real viewer for this viewer plus. -
getScrollPane
Returns the scroll pane for this viewer plus. -
getViewerShape
Returns the viewer shape. -
getContent
Returns the content shape. -
getDocument
Returns the RMDocument associated with this viewer. -
getSourceURL
Returns the document source. -
getTopToolBar
Returns the top controls. -
createTopToolBar
Creates the top tool bar. -
getBottomToolBar
Returns the bottom controls. -
createBottomToolBar
Creates bottom tool bar. -
save
public void save()Saves the current viewer document. -
print
public void print()Prints the current viewer document.Changed in 7.8.0 to catch exception now thrown by getViewer.print
-
copy
public void copy()Copies the current viewer document selection. -
previewPDF
public void previewPDF()Previews the current viewer document as pdf. -
resetUI
protected void resetUI()Resets UI.- Overrides:
resetUIin classUIOwner<SwingEvent,JComponent>
-
respondUI
Respond to UI controls.- Overrides:
respondUIin classUIOwner<SwingEvent,JComponent>
-
propertyChange
ResetUI on PropertyChange.- Specified by:
propertyChangein interfacePropertyChangeListener
-
loadPopupMenu
Returns a popup menu. -
addPropertyChangeListener
-
removePropertyChangeListener
-