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 class
A 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 TypeMethodDescriptionvoid
void
copy()
Copies the current viewer document selection.Creates bottom tool bar.Creates the top tool bar.protected JComponent
createUI()
Initializes the UI.protected RMViewer
Creates 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 WebURL
Returns the document source.Returns the top controls.Returns the viewer for this viewer pane.Returns the viewer shape.protected void
loadPopupMenu
(JPopupMenu popupMenu) Returns a popup menu.void
Previews the current viewer document as pdf.void
print()
Prints the current viewer document.void
propertyChange
(PropertyChangeEvent anEvent) ResetUI on PropertyChange.void
protected void
resetUI()
Resets UI.protected void
respondUI
(SwingEvent anEvent) Respond to UI controls.void
save()
Saves the current viewer document.protected void
Sets 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, 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, 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:
createUI
in 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:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
respondUI
Respond to UI controls.- Overrides:
respondUI
in classUIOwner<SwingEvent,
JComponent>
-
propertyChange
ResetUI on PropertyChange.- Specified by:
propertyChange
in interfacePropertyChangeListener
-
loadPopupMenu
Returns a popup menu. -
addPropertyChangeListener
-
removePropertyChangeListener
-