|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.compomics.util.gui.XYPlottingDialog
public class XYPlottingDialog
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 and StartIndexes. For XYDataPoint the x value is used, while for StartIndexes the first index is used.
Nested Class Summary | |
---|---|
class |
XYPlottingDialog.NormalKernelDensityEstimator
This class makes use of "SSJ: Stochastic Simulation in Java" library from iro.umontreal.ca to estimate probability density function of an array of double. |
class |
XYPlottingDialog.SelectedValuesTableFilter
A filter that filters the table based on if the data point is selected in the plot or not. |
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
XYPlottingDialog(Frame dialogParent,
JTable table,
ArrayList<String> tableToolTips,
Image normalIcon,
Image waitingIcon,
boolean modal)
Creates a new XYPlottingDialog. |
Method Summary | |
---|---|
void |
filterTable()
Filters the selected values table according to the currently selected values and the current data filters. |
ArrayList<TableColumn> |
getAllTableColumns()
Returns all the table columns, both visible and hidden. |
Vector<String> |
getColummnNames()
Return the column names. |
HashMap<String,String> |
getDataFilters()
Return the data filters. |
String |
getDefaultExportFolder()
Returns the default folder used for the export. |
ArrayList<org.jfree.chart.entity.ChartEntity> |
getEntitiesForPoint(int viewX,
int viewY)
Returns a list of the entities at the given x, y view location. |
Image |
getNormalIcon()
Returns the normal icon. |
JTable |
getTable()
Returns the JTable for which to hide/show the column for. |
HashMap<Integer,Boolean> |
getVisibleColumns()
Returns the list of visible columns. |
Image |
getWaitingIcon()
Returns the waiting icon. |
void |
mouseClickedInChart(org.jfree.chart.ChartMouseEvent event)
Handles mouse clicks in the chart panel. |
void |
mouseMovedInChart(org.jfree.chart.ChartMouseEvent event)
Handles mouse movements in the chart panel. |
void |
setDataFilters(HashMap<String,String> filters)
Set the data filters. |
void |
setSelectedExportFolder(String selectedFolder)
Set the default folder to use for exporting the graphics. |
void |
setVisibleColumns(HashMap<Integer,Boolean> showColumns)
Sets the list of visible columns. |
void |
updatePlot()
Update the plot. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XYPlottingDialog(Frame dialogParent, JTable table, ArrayList<String> tableToolTips, Image normalIcon, Image waitingIcon, boolean modal)
dialogParent
- the dialog parenttable
- the table to display the xy plot fortableToolTips
- the table tooltipsmodal
- normalIcon
- the normal icon for the parent dialogwaitingIcon
- the icon to use when busyMethod Detail |
---|
public void updatePlot()
public void mouseClickedInChart(org.jfree.chart.ChartMouseEvent event)
event
- public void mouseMovedInChart(org.jfree.chart.ChartMouseEvent event)
event
- public void filterTable()
public ArrayList<org.jfree.chart.entity.ChartEntity> getEntitiesForPoint(int viewX, int viewY)
viewX
- the x locationviewY
- the y location
public void setSelectedExportFolder(String selectedFolder)
ExportGraphicsDialogParent
setSelectedExportFolder
in interface ExportGraphicsDialogParent
selectedFolder
- the default folderpublic String getDefaultExportFolder()
ExportGraphicsDialogParent
getDefaultExportFolder
in interface ExportGraphicsDialogParent
public void setVisibleColumns(HashMap<Integer,Boolean> showColumns)
VisibleTableColumnsDialogParent
setVisibleColumns
in interface VisibleTableColumnsDialogParent
showColumns
- map of the visible columns, key: model column indexpublic HashMap<Integer,Boolean> getVisibleColumns()
VisibleTableColumnsDialogParent
getVisibleColumns
in interface VisibleTableColumnsDialogParent
public JTable getTable()
VisibleTableColumnsDialogParent
getTable
in interface VisibleTableColumnsDialogParent
public ArrayList<TableColumn> getAllTableColumns()
VisibleTableColumnsDialogParent
getAllTableColumns
in interface VisibleTableColumnsDialogParent
public Image getNormalIcon()
ExportGraphicsDialogParent
getNormalIcon
in interface ExportGraphicsDialogParent
public Image getWaitingIcon()
ExportGraphicsDialogParent
getWaitingIcon
in interface ExportGraphicsDialogParent
public Vector<String> getColummnNames()
public HashMap<String,String> getDataFilters()
public void setDataFilters(HashMap<String,String> filters)
filters
- the filters to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |