Class RMViewerPane

All Implemented Interfaces:
PropertyChangeListener, EventListener
Direct Known Subclasses:
RMEditorPane

public class RMViewerPane extends SwingOwner implements PropertyChangeListener
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.
  • Field Details

  • Constructor Details

    • RMViewerPane

      public RMViewerPane()
  • Method Details

    • createUI

      protected JComponent createUI()
      Initializes the UI.
      Overrides:
      createUI in class SwingOwner
    • getViewer

      public RMViewer getViewer()
      Returns the viewer for this viewer pane.
    • setViewer

      protected void setViewer(RMViewer aViewer)
      Sets the viewer for this viewer pane.
    • createViewer

      protected RMViewer createViewer()
      Creates the real viewer for this viewer plus.
    • getScrollPane

      public JScrollPane getScrollPane()
      Returns the scroll pane for this viewer plus.
    • getViewerShape

      public RMViewerShape getViewerShape()
      Returns the viewer shape.
    • getContent

      public RMParentShape getContent()
      Returns the content shape.
    • getDocument

      @Nullable public RMDocument getDocument()
      Returns the RMDocument associated with this viewer.
    • getSourceURL

      protected WebURL getSourceURL()
      Returns the document source.
    • getTopToolBar

      public SwingOwner getTopToolBar()
      Returns the top controls.
    • createTopToolBar

      public SwingOwner createTopToolBar()
      Creates the top tool bar.
    • getBottomToolBar

      public SwingOwner getBottomToolBar()
      Returns the bottom controls.
    • createBottomToolBar

      public SwingOwner 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 class UIOwner<SwingEvent,JComponent>
    • respondUI

      protected void respondUI(SwingEvent anEvent)
      Respond to UI controls.
      Overrides:
      respondUI in class UIOwner<SwingEvent,JComponent>
    • propertyChange

      public void propertyChange(PropertyChangeEvent anEvent)
      ResetUI on PropertyChange.
      Specified by:
      propertyChange in interface PropertyChangeListener
    • loadPopupMenu

      protected void loadPopupMenu(JPopupMenu popupMenu)
      Returns a popup menu.
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)