Class ResultView

All Implemented Interfaces:
ActionListener, ItemListener, MouseListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CaretListener, RootPaneContainer, WindowConstants

Complex result panel.
Since:
Marvin 3.0
See Also:
  • Constructor Details

    • ResultView

      public ResultView(String title)
      Constructor.
      Parameters:
      title - is the frame title
    • ResultView

      public ResultView(String title, chemaxon.marvin.common.swing.MolPanel mpan)
      Constructor.
      Parameters:
      title - is the frame title
      mpan - is the parent MolPanel used for image saving
    • ResultView

      public ResultView(Dialog parent, String title, chemaxon.marvin.common.swing.MolPanel mpan)
      Constructor.
      Parameters:
      parent - the Dialog from which the dialog is displayed
      title - is the frame title
      mpan - is the parent MolPanel used for image saving
    • ResultView

      public ResultView(Frame parent, String title, chemaxon.marvin.common.swing.MolPanel mpan)
      Constructor.
      Parameters:
      parent - the Frame from which the dialog is displayed
      title - is the frame title
      mpan - is the parent MolPanel used for image saving
  • Method Details

    • getDim

      public static Dimension getDim(String text)
      Returns the text width - height in a Dimension.
      Parameters:
      text - is the text
      Returns:
      the text width - height
    • setMenu

      public void setMenu()
      Sets File/Edit menu.
    • setMenu

      public void setMenu(String[] view)
      Sets File/Edit/View menu.
      Parameters:
      view - is the view menu config string array of length 2:
      • view[0] is the reset menu string (sets result mol or textarea)
      • view[1] is the "open viewer" menu string (for result mol and legend mols)
      or null if no view menu
    • setBottomTextArea

      public void setBottomTextArea(String text)
      Sets text area in bottom-left corner.
      Parameters:
      text - is the text to be displayed
    • setTopTextArea

      public void setTopTextArea(String text)
      Sets text area in top-left corner.
      Parameters:
      text - is the text to be displayed
    • setTopMolViewer

      public void setTopMolViewer(Molecule mol)
      Sets molecule viewer in top-left corner.
      Parameters:
      mol - is the molecule to be displayed
    • setTopMolViewer

      public void setTopMolViewer(Molecule mol, String text)
      Sets molecule viewer in top-left corner.
      Parameters:
      mol - is the molecule to be displayed
      text - is the text to be displayed
    • setChart

      public void setChart(MChart chart)
      Sets chart.
      Parameters:
      chart - is the chart module
    • build

      public void build()
      Sets sizes, builds split panes.
    • windowOpened

      public void windowOpened(WindowEvent e)
      Do nothing.
      Specified by:
      windowOpened in interface WindowListener
    • windowClosing

      public void windowClosing(WindowEvent e)
      Close the window.
      Specified by:
      windowClosing in interface WindowListener
    • windowClosed

      public void windowClosed(WindowEvent e)
      Do nothing.
      Specified by:
      windowClosed in interface WindowListener
    • windowIconified

      public void windowIconified(WindowEvent e)
      Do nothing.
      Specified by:
      windowIconified in interface WindowListener
    • windowDeiconified

      public void windowDeiconified(WindowEvent e)
      Do nothing.
      Specified by:
      windowDeiconified in interface WindowListener
    • windowActivated

      public void windowActivated(WindowEvent e)
      Do nothing.
      Specified by:
      windowActivated in interface WindowListener
    • windowDeactivated

      public void windowDeactivated(WindowEvent e)
      Do nothing.
      Specified by:
      windowDeactivated in interface WindowListener
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Do nothing.
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Do nothing.
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Do nothing.
      Specified by:
      mouseExited in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent e)
      Shows / hides popup.
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Shows / hides popup.
      Specified by:
      mouseReleased in interface MouseListener
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handles window closing and format choice events.
      Specified by:
      actionPerformed in interface ActionListener
    • caretUpdate

      public void caretUpdate(CaretEvent ev)
      Specified by:
      caretUpdate in interface CaretListener
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      The ItemListener interface: invoked when a legend image is selected or deselected.
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      e - is the event object