|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jsky.catalog.gui.TableDisplayTool
public class TableDisplayTool
Combines a TableDisplay component for displaying query results in tabular form with a title and some buttons to perform various actions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TableDisplayTool(TableQueryResult table,
QueryResultDisplay queryResultDisplay,
TablePlotter plotter)
Create a TableDisplayTool for viewing the given table data. |
Method Summary | |
---|---|
protected void |
addPlotterConfigPanel()
Add a panel to the config window to configure the symbol plotting |
void |
addRow()
Add an empty row to the table. |
void |
addRow(Vector v)
Add a row to the table. |
protected void |
addTableColumnConfigPanel()
Add a panel to the config window to configure the table columns |
void |
configure()
Pop up a dialog to configure the plot symbols and table display. |
void |
deleteSelectedRows()
Delete the selected rows. |
JPanel |
getButtonPanel()
Return the button panel |
JButton |
getConfigButton()
|
TabbedPanel |
getConfigPanel()
Panel used to configure the table and plot symbol display |
String |
getName()
Return the name of this component (based on the data being displayed) |
JButton |
getPlotButton()
|
TablePlotter |
getPlotter()
Return the object to use to plot the table data |
Vector |
getRow(int rowIndex)
Return the vector for the given row. |
int |
getRowCount()
Return the number of rows in the table. |
protected SortedJTable |
getSortedJTable()
Return the table for displaying query results |
TableQueryResult |
getTable()
Return the TableQueryResult corresponding to this object |
TableDisplay |
getTableDisplay()
Return the table for displaying query results |
JButton |
getUnplotAllButton()
|
JButton |
getUnplotButton()
|
void |
hidePopups()
Hide any popup windows associated with this window |
protected JPanel |
makeButtonPanel()
make and return the button panel |
protected void |
makeLayout(QueryResultDisplay queryResultDisplay)
Do the window layout |
void |
plot()
Plot the contents of the table. |
void |
print()
Display a print dialog to print the contents of this object. |
void |
replot()
Replot any plot symbols for this table. |
void |
saveAs(String filename)
Save the table to the given file. |
void |
saveAsHTML(String filename)
Save the table to the given file in HTML format. |
void |
setPlotter(TablePlotter plotter)
Set the object to use to plot the table data |
void |
setQueryResult(QueryResult queryResult)
Display the given query results. |
void |
setTableCellsEditable(boolean b)
Set the editable state of the cells in the displayed table. |
void |
unplot()
Remove any plot symbols for this table. |
void |
unplotAll()
Remove all plot symbols. |
void |
updateRow(int rowIndex,
Vector v)
Update a row in the table with the new data. |
protected void |
updateTitle()
Update the table and frame titles to show the table title and number of rows |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableDisplayTool(TableQueryResult table, QueryResultDisplay queryResultDisplay, TablePlotter plotter)
table
- the table dataqueryResultDisplay
- object used to display any query results resulting from following linksplotter
- object used to plot the table dataMethod Detail |
---|
protected void makeLayout(QueryResultDisplay queryResultDisplay)
queryResultDisplay
- object used to display any query results resulting from following linkspublic TableDisplay getTableDisplay()
protected JPanel makeButtonPanel()
public JPanel getButtonPanel()
public JButton getPlotButton()
public JButton getUnplotButton()
public JButton getUnplotAllButton()
public JButton getConfigButton()
public void plot()
public void unplot()
public void unplotAll()
public void replot()
public TableQueryResult getTable()
protected SortedJTable getSortedJTable()
public TablePlotter getPlotter()
public void setPlotter(TablePlotter plotter)
public void configure()
protected void addPlotterConfigPanel()
protected void addTableColumnConfigPanel()
public TabbedPanel getConfigPanel()
public void hidePopups()
public String getName()
getName
in class Component
public void setQueryResult(QueryResult queryResult)
setQueryResult
in interface QueryResultDisplay
queryResult
- an object returned from the Catalog query method.public void saveAs(String filename)
saveAs
in interface Saveable
public void saveAsHTML(String filename)
saveAsHTML
in interface SaveableAsHTML
public void print() throws PrinterException
print
in interface PrintableWithDialog
PrinterException
protected void updateTitle()
public void addRow()
public void addRow(Vector v)
public void updateRow(int rowIndex, Vector v)
public Vector getRow(int rowIndex)
public void deleteSelectedRows()
public void setTableCellsEditable(boolean b)
public int getRowCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |