Class XYPlottingDialog

All Implemented Interfaces:
VisibleTableColumnsDialogParent, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class XYPlottingDialog extends JDialog implements VisibleTableColumnsDialogParent
A dialog that makes it straightforward to inspect compare the values of two columns in a table in a XY plot. Currently supported data types for the plots are Integer, Double, XYDataPoint, StartIndexes and ArrrayListDataPoints. For XYDataPoint the x value is used, while for StartIndexes the first index is used. For the ArrrayListDataPoints the ValueDisplayType is used.
Author:
Harald Barsnes
See Also:
  • Constructor Details

    • XYPlottingDialog

      public XYPlottingDialog(Frame dialogParent, JTable table, String selectedColumn, XYPlottingDialog.PlottingDialogPlotType plotType, ArrayList<String> tableToolTips, Image normalIcon, Image waitingIcon, boolean modal)
      Creates a new XYPlottingDialog.
      Parameters:
      dialogParent - the dialog parent
      table - the table to display the xy plot for
      selectedColumn - the column header for the selected column, can be null
      plotType - the plot type
      tableToolTips - the table tooltips
      normalIcon - the normal icon for the parent dialog
      waitingIcon - the icon to use when busy
      modal - if the dialog is to be modal or not
  • Method Details

    • updatePlot

      public void updatePlot()
      Update the plot.
    • filterTable

      public void filterTable()
      Filters the selected values table according to the currently selected values and the current data filters.
    • getEntitiesForPoint

      public ArrayList<org.jfree.chart.entity.ChartEntity> getEntitiesForPoint(int viewX, int viewY)
      Returns a list of the entities at the given x, y view location.
      Parameters:
      viewX - the x location
      viewY - the y location
      Returns:
      a list of the entities
    • setSelectedExportFolder

      public void setSelectedExportFolder(LastSelectedFolder selectedFolder)
      Set the export folder.
      Parameters:
      selectedFolder - the export folder to set
    • setVisibleColumns

      public void setVisibleColumns(HashMap<Integer,Boolean> showColumns)
      Description copied from interface: VisibleTableColumnsDialogParent
      Sets the list of visible columns.
      Specified by:
      setVisibleColumns in interface VisibleTableColumnsDialogParent
      Parameters:
      showColumns - map of the visible columns, key: model column index
    • getVisibleColumns

      public HashMap<Integer,Boolean> getVisibleColumns()
      Description copied from interface: VisibleTableColumnsDialogParent
      Returns the list of visible columns.
      Specified by:
      getVisibleColumns in interface VisibleTableColumnsDialogParent
      Returns:
      the list of visible columns, key: model column index
    • getTable

      public JTable getTable()
      Description copied from interface: VisibleTableColumnsDialogParent
      Returns the JTable for which to hide/show the column for.
      Specified by:
      getTable in interface VisibleTableColumnsDialogParent
      Returns:
      the table
    • getAllTableColumns

      public ArrayList<TableColumn> getAllTableColumns()
      Description copied from interface: VisibleTableColumnsDialogParent
      Returns all the table columns, both visible and hidden.
      Specified by:
      getAllTableColumns in interface VisibleTableColumnsDialogParent
      Returns:
      all the table columns
    • getNormalIcon

      public Image getNormalIcon()
      Returns the normal icon.
      Returns:
      the normal icon
    • getWaitingIcon

      public Image getWaitingIcon()
      Returns the waiting icon.
      Returns:
      the waiting icon
    • getColummnNames

      public Vector<String> getColummnNames()
      Return the column names.
      Returns:
      the column names
    • getDataFilters

      public HashMap<String,String> getDataFilters()
      Return the data filters.
      Returns:
      the data filters
    • setDataFilters

      public void setDataFilters(HashMap<String,String> filters)
      Set the data filters.
      Parameters:
      filters - the filters to set