Class RMEditor
- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- javax.swing.JComponent
- 
- com.inductiveautomation.rm.viewer.RMViewer
- 
- com.inductiveautomation.rm.editor.RMEditor
 
 
 
 
 
- 
- All Implemented Interfaces:
- DeepChangeListener,- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.beans.PropertyChangeListener,- java.io.Serializable,- java.util.EventListener,- javax.swing.Scrollable
 
 public class RMEditor extends RMViewer implements DeepChangeListener This class subclasses RMViewer to support RMDocument editing.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.rm.viewer.RMViewerRMViewer.PhantomPane, RMViewer.RMVPrintable, RMViewer.ZoomMode
 - 
Nested classes/interfaces inherited from class javax.swing.JComponentjavax.swing.JComponent.AccessibleJComponent
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCurrentTool_Propstatic java.lang.StringPageSelection_Propstatic java.lang.StringSelectedShapes_Propstatic java.lang.StringSuperSelectedShape_Propstatic java.lang.StringTextSelection_Prop- 
Fields inherited from class com.inductiveautomation.rm.viewer.RMViewerContent_Prop, PRINT_MODE_RASTER, PRINT_MODE_VECTOR, ZOOM_CHANGE
 - 
Fields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMEditor()Creates a new editor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPage()Adds a page to the document after current page.voidaddPage(RMPage aPage, int anIndex)Adds a given page to the current document at the given index.voidaddPagePrevious()Adds a page to the document before current page.voidaddSelectedShape(RMShape aShape)Add a shape to the selected shapes list and ensures the super selected is added as well on the first run.voidaddShapesToShape(java.util.List<? extends RMShape> theShapes, RMParentShape aShape, boolean withCorrection)Adds shapes as children to given shape.voidcopy()Standard clipboard copy functionality.java.awt.dnd.DropTargetcreateDropTarget()Called to enabled drag and drop.RMViewerInputAdaptercreateInputAdapter()Creates an editor input adapter for viewer adapter.protected RMShapePainterJ2DcreateShapePainter(java.awt.Graphics2D aGr)Creates the object that is actually responsible for paining shapes in the viewer.RMEditorShapescreateShapesHelper()Creates the shapes helper.protected RMViewerShapecreateViewerShape()Creates the viewer shape.voidcut()Standard clipboard cut functionality.voiddeepChange(java.beans.PropertyChangeListener aShape, java.beans.PropertyChangeEvent anEvent)Property change.voiddelete()Deletes all the currently selected shapes.RMParentShapefirstSuperSelectedShapeThatAcceptsChildren()Returns the first SuperSelectedShape that accepts children.RMShapefirstSuperSelectedShapeThatAcceptsChildrenAtPoint(RMPoint aPoint)Returns the first SuperSelected shape that accepts children at a given point.RMParentShapefirstSuperSelectedShapeThatAcceptsChildrenSafe()Returns the first SuperSelectedShape that accepts children, or the currently selected page if N/AvoidflushEditingChanges()This method finalizes any (potentially cached) changes in progress in the editor (like from text editing).RMShapegetChildShapeAtPoint(RMShape aShape, RMPoint aPoint)Returns the child of the given shape hit by the given point.RMToolgetCurrentTool()Tool method - returns the currently selected tool.RMDataSourcegetDataSource()Returns the datasource associated with the editor's document.java.lang.ObjectgetDataSourceDataset()Returns the sample dataset from the document's datasource.RMEditorInputAdaptergetEditorInputAdapter()Returns the even helper object.RMEditorPanegetEditorPane()Returns the editor pane for this editor, if there is one.static RMEditorgetMainEditor()Returns the editor that was most recently activated.protected java.awt.DimensiongetPrefSize()Returns the ideal size of the viewer.RMRectgetRepaintBoundsForShape(RMShape aShape)Overrides RMViewer implementation to account for selected shapes potentially having different bounds.RMShapegetSelectedOrSuperSelectedShape()Returns the currently selected shape or, if none, the super-selected shape.RMShapegetSelectedOrSuperSelectedShape(int anIndex)Returns the currently selected shape at the given index, or the super-selected shape.intgetSelectedOrSuperSelectedShapeCount()Returns the number of currently selected shapes or simply 1, if a shape is super-selected.java.util.List<RMShape>getSelectedOrSuperSelectedShapes()Returns the currently selected shapes or, if none, the super-selected shape in a list.RMShapegetSelectedShape()Returns the first selected shape.RMShapegetSelectedShape(int anIndex)Returns the selected shape at the given index.intgetSelectedShapeCount()Returns the number of selected shapes.java.util.List<RMShape>getSelectedShapes()Returns the selected shapes list.RMRectgetSelectedShapesBounds()Scrolls selected shapes to visible.RMShapegetShapeAtPoint(java.awt.geom.Point2D aPoint)Returns first shape hit by point given in View coords.RMEditorShapesgetShapesHelper()Returns the shapes helper.RMParentShapegetSuperSelectedParentShape()Returns the first super selected shape, if parent shape.RMShapegetSuperSelectedShape()Returns the first super-selected shape.RMShapegetSuperSelectedShape(int anIndex)Returns the super-selected shape at the given index.intgetSuperSelectedShapeCount()Returns the number of super-selected shapes.java.util.List<RMShape>getSuperSelectedShapes()Returns the super selected shape list.RMEditorTextEditorgetTextEditor()Returns the text editor (or null if not editing).RMEditorTextEditorgetTextEditor(boolean evenIfNotActive)Returns the text editor (even if not editing).RMEditorTextEditorgetTextEditor(RMTextShape aText)Returns the text editor, primed for editing the given text shape.java.lang.StringgetToolTipText(java.awt.event.MouseEvent anEvent)Returns a tool tip string by asking deepest shape's tool.booleangetValueIsAdjusting()Returns whether the editor is in a state of constant change, like during a mouse drag loop.RMEditorShapegetViewerShape()Override to return as editor shape.java.awt.RectanglegetZoomFocusRect()Override to have zoom focus on selected shapes rect.booleanisCurrentToolSelectTool()Returns whether the select tool is currently selected.booleanisCurrentToolSelectToolAndSelecting()Tool method - Returns whether the select tool is currently selected and if it's currently being used to select.booleanisEditing()Returns whether viewer is really doing editing.booleanisSelected(RMShape aShape)Returns whether a given shape is selected in the editor.booleanisSuperSelected(RMShape aShape)Returns whether a given shape is super-selected in the editor.voidpaintComponent(java.awt.Graphics g)Overrides JComponent implementation to paint viewer shapes and page, margin, grid, etc.voidpaste()Standard clipbard paste functionality.voidpopSelection()Un-SuperSelect currently super selected shape.protected voidprocessEvent(java.awt.AWTEvent e)Override to revalidate when ideal size changes.voidredo()Called to redo the last undo operation in the editor.voidremovePage()Removes current page from document.voidremovePage(int anIndex)Removes the document page at the given index.voidremoveSelectedShape(RMShape aShape)Remove a shape from the selected shapes list.voidresetCurrentTool()Resets the currently selected tool.protected voidsaveUndoerChanges()Saves Undo Changes.protected voidsaveUndoerChangesLater()Saves undo changes after a delay.voidselectAll()Causes all the children of the current super selected shape to become selected.voidsetCurrentTool(RMTool aTool)Tool method - sets the currently select tool to the given tool.voidsetCurrentToolToSelectTool()Sets the current tool to the select tool.voidsetDataSource(RMDataSource aDataSource)Sets the datasource associated with the editor's document.voidsetEditing(boolean aFlag)Sets whether viewer is really doing editing.voidsetSelectedPageIndex(int anIndex)Override viewer method to reset selected shapes on page change.voidsetSelectedShape(RMShape aShape)Selects the given shape.voidsetSelectedShapes(java.util.List<RMShape> theShapes)Selects the shapes in the given list.voidsetSuperSelectedShape(RMShape aShape)Super select a shape.protected voidsetTextSelection(int aStart, int anEnd)Called to notify the TextEditor has changed selection.protected voidsetUndoSelection(java.lang.Object aSelection)Sets the undo selection.voidundo()Called to undo the last edit operation in the editor.- 
Methods inherited from class com.inductiveautomation.rm.viewer.RMViewerconvertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, docShapeRepaint, firstPage, flushShapeRepaints, getBook, getContent, getContentX, getContentY, getCopies, getDocument, getDocumentBounds, getDrawsBackground, getHoverShape, getInputAdapter, getlastZoomFactor, getPageBounds, getPageCount, getPageOrientation, getPaintFrameRate, getPhantomPane, getPreferredScrollableViewportSize, getPreferredSize, getPrefSize, getPrintingDPI, getPrintingMode, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedPage, getSelectedPageIndex, getShape, getShapeAtPoint, getShapePainter, getShapeRepaintEnabled, getShown, getSourceURL, getTransformFromShape, getUndoer, getZoomFactor, getZoomFactor, getZoomMode, getZoomToActualSizeFactor, isCollate, isPreview, isPrintBothSides, isUseAutoLandscape, isZoomToFactor, lastPage, mouseDragged, mouseMoved, mousePressed, mouseReleased, pageBack, pageForward, paintBackground, performActionURLClick, play, print, print, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, propertyChange, repaint, runZoomPanel, setBounds, setCollate, setContent, setContent, setCopies, setInputAdapter, setPageOrientation, setPaintFrameRate, setPrintBothSides, setPrintingDPI, setPrintingMode, setShapeRepaintEnabled, setShown, setUseAutoLandscape, setZoomFactor, setZoomFactorImpl, setZoomMode, setZoomToFitFactor, stop, undoerHasUndos, undoerSetUndoTitle, viewerHidden, viewerShown, zoomToggleLast
 - 
Methods inherited from class javax.swing.JComponentaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 - 
Methods inherited from class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 - 
Methods inherited from class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
- 
 
- 
- 
- 
Field Detail- 
CurrentTool_Proppublic static final java.lang.String CurrentTool_Prop - See Also:
- Constant Field Values
 
 - 
SelectedShapes_Proppublic static final java.lang.String SelectedShapes_Prop - See Also:
- Constant Field Values
 
 - 
SuperSelectedShape_Proppublic static final java.lang.String SuperSelectedShape_Prop - See Also:
- Constant Field Values
 
 - 
TextSelection_Proppublic static final java.lang.String TextSelection_Prop - See Also:
- Constant Field Values
 
 - 
PageSelection_Proppublic static final java.lang.String PageSelection_Prop - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getMainEditorpublic static RMEditor getMainEditor() Returns the editor that was most recently activated.
 - 
getEditorPanepublic RMEditorPane getEditorPane() Returns the editor pane for this editor, if there is one.
 - 
getViewerShapepublic RMEditorShape getViewerShape() Override to return as editor shape.- Overrides:
- getViewerShapein class- RMViewer
 
 - 
createViewerShapeprotected RMViewerShape createViewerShape() Creates the viewer shape.- Overrides:
- createViewerShapein class- RMViewer
 
 - 
isEditingpublic boolean isEditing() Returns whether viewer is really doing editing.
 - 
setEditingpublic void setEditing(boolean aFlag) Sets whether viewer is really doing editing.
 - 
getValueIsAdjustingpublic boolean getValueIsAdjusting() Returns whether the editor is in a state of constant change, like during a mouse drag loop.
 - 
createShapePainterprotected RMShapePainterJ2D createShapePainter(java.awt.Graphics2D aGr) Creates the object that is actually responsible for paining shapes in the viewer.- Overrides:
- createShapePainterin class- RMViewer
 
 - 
createDropTargetpublic java.awt.dnd.DropTarget createDropTarget() Called to enabled drag and drop.
 - 
getTextEditor@Nullable public RMEditorTextEditor getTextEditor() Returns the text editor (or null if not editing).
 - 
getTextEditorpublic RMEditorTextEditor getTextEditor(boolean evenIfNotActive) Returns the text editor (even if not editing).
 - 
getTextEditorpublic RMEditorTextEditor getTextEditor(RMTextShape aText) Returns the text editor, primed for editing the given text shape.
 - 
setTextSelectionprotected void setTextSelection(int aStart, int anEnd)Called to notify the TextEditor has changed selection.
 - 
getShapesHelperpublic RMEditorShapes getShapesHelper() Returns the shapes helper.
 - 
createShapesHelperpublic RMEditorShapes createShapesHelper() Creates the shapes helper.
 - 
getSelectedShape@Nullable public RMShape getSelectedShape() Returns the first selected shape.
 - 
setSelectedShapepublic void setSelectedShape(RMShape aShape) Selects the given shape.
 - 
getSelectedShapeCountpublic int getSelectedShapeCount() Returns the number of selected shapes.
 - 
getSelectedShapepublic RMShape getSelectedShape(int anIndex) Returns the selected shape at the given index.
 - 
getSelectedShapespublic java.util.List<RMShape> getSelectedShapes() Returns the selected shapes list.
 - 
setSelectedShapespublic void setSelectedShapes(java.util.List<RMShape> theShapes) Selects the shapes in the given list.
 - 
addSelectedShapepublic void addSelectedShape(RMShape aShape) Add a shape to the selected shapes list and ensures the super selected is added as well on the first run.
 - 
removeSelectedShapepublic void removeSelectedShape(RMShape aShape) Remove a shape from the selected shapes list.
 - 
getSuperSelectedShape@Nullable public RMShape getSuperSelectedShape() Returns the first super-selected shape.
 - 
getSuperSelectedParentShapepublic RMParentShape getSuperSelectedParentShape() Returns the first super selected shape, if parent shape.
 - 
setSuperSelectedShapepublic void setSuperSelectedShape(RMShape aShape) Super select a shape.
 - 
isSelectedpublic boolean isSelected(RMShape aShape) Returns whether a given shape is selected in the editor.
 - 
isSuperSelectedpublic boolean isSuperSelected(RMShape aShape) Returns whether a given shape is super-selected in the editor.
 - 
getSuperSelectedShapeCountpublic int getSuperSelectedShapeCount() Returns the number of super-selected shapes.
 - 
getSuperSelectedShapepublic RMShape getSuperSelectedShape(int anIndex) Returns the super-selected shape at the given index.
 - 
getSuperSelectedShapespublic java.util.List<RMShape> getSuperSelectedShapes() Returns the super selected shape list.
 - 
getSelectedOrSuperSelectedShapeCountpublic int getSelectedOrSuperSelectedShapeCount() Returns the number of currently selected shapes or simply 1, if a shape is super-selected.
 - 
getSelectedOrSuperSelectedShapepublic RMShape getSelectedOrSuperSelectedShape(int anIndex) Returns the currently selected shape at the given index, or the super-selected shape.
 - 
getSelectedOrSuperSelectedShape@Nullable public RMShape getSelectedOrSuperSelectedShape() Returns the currently selected shape or, if none, the super-selected shape.
 - 
getSelectedOrSuperSelectedShapespublic java.util.List<RMShape> getSelectedOrSuperSelectedShapes() Returns the currently selected shapes or, if none, the super-selected shape in a list.
 - 
popSelectionpublic void popSelection() Un-SuperSelect currently super selected shape.
 - 
getRepaintBoundsForShapepublic RMRect getRepaintBoundsForShape(RMShape aShape) Overrides RMViewer implementation to account for selected shapes potentially having different bounds.- Overrides:
- getRepaintBoundsForShapein class- RMViewer
 
 - 
flushEditingChangespublic void flushEditingChanges() This method finalizes any (potentially cached) changes in progress in the editor (like from text editing).
 - 
getShapeAtPointpublic RMShape getShapeAtPoint(java.awt.geom.Point2D aPoint) Returns first shape hit by point given in View coords.
 - 
getChildShapeAtPointpublic RMShape getChildShapeAtPoint(RMShape aShape, RMPoint aPoint) Returns the child of the given shape hit by the given point.
 - 
firstSuperSelectedShapeThatAcceptsChildren@Nullable public RMParentShape firstSuperSelectedShapeThatAcceptsChildren() Returns the first SuperSelectedShape that accepts children.
 - 
firstSuperSelectedShapeThatAcceptsChildrenSafe@Nullable public RMParentShape firstSuperSelectedShapeThatAcceptsChildrenSafe() Returns the first SuperSelectedShape that accepts children, or the currently selected page if N/A
 - 
firstSuperSelectedShapeThatAcceptsChildrenAtPointpublic RMShape firstSuperSelectedShapeThatAcceptsChildrenAtPoint(RMPoint aPoint) Returns the first SuperSelected shape that accepts children at a given point.
 - 
cutpublic void cut() Standard clipboard cut functionality.
 - 
copypublic void copy() Standard clipboard copy functionality.
 - 
pastepublic void paste() Standard clipbard paste functionality.
 - 
selectAllpublic void selectAll() Causes all the children of the current super selected shape to become selected.
 - 
deletepublic void delete() Deletes all the currently selected shapes.
 - 
addShapesToShapepublic void addShapesToShape(java.util.List<? extends RMShape> theShapes, RMParentShape aShape, boolean withCorrection) Adds shapes as children to given shape.
 - 
addPagepublic void addPage() Adds a page to the document after current page.
 - 
addPagePreviouspublic void addPagePrevious() Adds a page to the document before current page.
 - 
addPagepublic void addPage(RMPage aPage, int anIndex) Adds a given page to the current document at the given index.
 - 
removePagepublic void removePage() Removes current page from document.
 - 
removePagepublic void removePage(int anIndex) Removes the document page at the given index.
 - 
getCurrentToolpublic RMTool getCurrentTool() Tool method - returns the currently selected tool.
 - 
setCurrentToolpublic void setCurrentTool(RMTool aTool) Tool method - sets the currently select tool to the given tool.
 - 
isCurrentToolSelectToolpublic boolean isCurrentToolSelectTool() Returns whether the select tool is currently selected.
 - 
setCurrentToolToSelectToolpublic void setCurrentToolToSelectTool() Sets the current tool to the select tool.
 - 
isCurrentToolSelectToolAndSelectingpublic boolean isCurrentToolSelectToolAndSelecting() Tool method - Returns whether the select tool is currently selected and if it's currently being used to select.
 - 
resetCurrentToolpublic void resetCurrentTool() Resets the currently selected tool.
 - 
setSelectedPageIndexpublic void setSelectedPageIndex(int anIndex) Override viewer method to reset selected shapes on page change.- Overrides:
- setSelectedPageIndexin class- RMViewer
 
 - 
getSelectedShapesBoundspublic RMRect getSelectedShapesBounds() Scrolls selected shapes to visible.
 - 
getZoomFocusRectpublic java.awt.Rectangle getZoomFocusRect() Override to have zoom focus on selected shapes rect.- Overrides:
- getZoomFocusRectin class- RMViewer
 
 - 
paintComponentpublic void paintComponent(java.awt.Graphics g) Overrides JComponent implementation to paint viewer shapes and page, margin, grid, etc.- Overrides:
- paintComponentin class- RMViewer
 
 - 
createInputAdapterpublic RMViewerInputAdapter createInputAdapter() Creates an editor input adapter for viewer adapter.- Overrides:
- createInputAdapterin class- RMViewer
 
 - 
getEditorInputAdapterpublic RMEditorInputAdapter getEditorInputAdapter() Returns the even helper object.
 - 
processEventprotected void processEvent(java.awt.AWTEvent e) Override to revalidate when ideal size changes.- Overrides:
- processEventin class- java.awt.Container
 
 - 
getPrefSizeprotected java.awt.Dimension getPrefSize() Returns the ideal size of the viewer.- Overrides:
- getPrefSizein class- RMViewer
 
 - 
getToolTipTextpublic java.lang.String getToolTipText(java.awt.event.MouseEvent anEvent) Returns a tool tip string by asking deepest shape's tool.- Overrides:
- getToolTipTextin class- javax.swing.JComponent
 
 - 
getDataSourcepublic RMDataSource getDataSource() Returns the datasource associated with the editor's document.
 - 
setDataSourcepublic void setDataSource(RMDataSource aDataSource) Sets the datasource associated with the editor's document.
 - 
getDataSourceDatasetpublic java.lang.Object getDataSourceDataset() Returns the sample dataset from the document's datasource.
 - 
undopublic void undo() Called to undo the last edit operation in the editor.
 - 
redopublic void redo() Called to redo the last undo operation in the editor.
 - 
setUndoSelectionprotected void setUndoSelection(java.lang.Object aSelection) Sets the undo selection.
 - 
deepChangepublic void deepChange(java.beans.PropertyChangeListener aShape, java.beans.PropertyChangeEvent anEvent)Property change.- Specified by:
- deepChangein interface- DeepChangeListener
 
 - 
saveUndoerChangesprotected void saveUndoerChanges() Saves Undo Changes.
 - 
saveUndoerChangesLaterprotected void saveUndoerChangesLater() Saves undo changes after a delay.
 
- 
 
-