Class JSVDialog

All Implemented Interfaces:
AnnotationData
Direct Known Subclasses:
IntegrationDialog, MeasurementsDialog, OverlayLegendDialog, PeakListDialog, ViewsDialog

public abstract class JSVDialog extends Annotation implements AnnotationData
  • Field Details

    • optionKey

      public String optionKey
    • options

      public Map<String,Object> options
    • type

      protected Annotation.AType type
    • title

      protected String title
    • vwr

      protected JSViewer vwr
    • spec

      protected Spectrum spec
    • manager

      protected DialogManager manager
    • dialog

      protected PlatformDialog dialog
    • jsvp

      protected JSVPanel jsvp
    • txt1

      protected Object txt1
    • txt2

      protected Object txt2
    • txt3

      protected Object txt3
    • combo1

      protected Object combo1
    • xyData

      protected MeasurementData xyData
    • myParams

      protected Parameters myParams
    • precision

      protected int precision
    • addApplyBtn

      protected boolean addApplyBtn
    • lastNorm

      protected double lastNorm
    • iRowColSelected

      protected int iRowColSelected
    • iSelected

      protected int iSelected
  • Constructor Details

    • JSVDialog

      public JSVDialog()
  • Method Details

    • getPosXY

      public abstract int[] getPosXY()
    • isDialog

      public boolean isDialog()
      Specified by:
      isDialog in interface AnnotationData
    • addUniqueControls

      protected abstract void addUniqueControls()
    • callback

      public abstract boolean callback(String id, String msg)
    • setParams

      public JSVDialog setParams(String title, JSViewer viewer, Spectrum spec)
      required initializer; from JSViewer
      Parameters:
      title -
      viewer -
      spec -
      Returns:
      this
    • layoutDialog

      protected void layoutDialog()
    • callbackAD

      protected boolean callbackAD(String id, String msg)
      Parameters:
      id -
      msg -
      Returns:
      true if consumed
    • addUniqueControls

      protected void addUniqueControls(DialogManager dialogHelper)
      Parameters:
      dialogHelper -
    • getAType

      public Annotation.AType getAType()
      Specified by:
      getAType in interface AnnotationData
    • getGraphSetKey

      public String getGraphSetKey()
      Specified by:
      getGraphSetKey in interface AnnotationData
    • setGraphSetKey

      public void setGraphSetKey(String key)
      Specified by:
      setGraphSetKey in interface AnnotationData
    • getSpectrum

      public Spectrum getSpectrum()
      Specified by:
      getSpectrum in interface AnnotationData
    • getState

      public boolean getState()
      Specified by:
      getState in interface AnnotationData
    • setState

      public void setState(boolean b)
      Specified by:
      setState in interface AnnotationData
    • checkEnables

      public void checkEnables()
    • createTable

      public void createTable(Object[][] data, String[] header, int[] widths)
    • setTableSelectionEnabled

      public void setTableSelectionEnabled(boolean enabled)
    • getParameters

      public Parameters getParameters()
      Specified by:
      getParameters in interface AnnotationData
    • showMessage

      public void showMessage(String msg, String title, int msgType)
    • setThreshold

      protected void setThreshold(double y)
    • setComboSelected

      public void setComboSelected(int i)
    • applyFromFields

      public void applyFromFields()
    • reEnable

      public JSVDialog reEnable()
    • dispose

      public void dispose()
    • setVisible

      public void setVisible(boolean visible)
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface AnnotationData
    • selectTableRow

      public void selectTableRow(int i)
    • repaint

      public void repaint()
    • setFields

      public void setFields()
    • setFocus

      public void setFocus(boolean tf)
    • update

      public void update(Coordinate clicked, double xRange, int yOffset)
    • getPeakData

      public MeasurementData getPeakData()
    • getData

      public MeasurementData getData()
      Specified by:
      getData in interface AnnotationData
    • setData

      public void setData(AnnotationData data)
    • setSpecShift

      public void setSpecShift(double dx)
      Specified by:
      setSpecShift in interface AnnotationData
    • setType

      public void setType(Annotation.AType type)
    • apply

      protected void apply(Object[] objects)
    • done

      protected void done()
    • eventFocus

      protected void eventFocus()
    • eventApply

      protected void eventApply()
    • loadData

      protected void loadData()