public interface TablePlotter
Modifier and Type | Method and Description |
---|---|
void |
addSymbolSelectionListener(SymbolSelectionListener listener)
Add a listener for selection events on symbols
|
void |
addTableSelectionListener(TableSelectionListener listener)
Add a listener for selection events on tables
|
void |
deselectSymbol(TableQueryResult table,
int tableRow)
Deselect the symbol corresponding to the given table row
|
CanvasGraphics |
getCanvasGraphics()
Return the object to use to draw catalog symbols
|
NamedCoordinates |
getCatalogPosition(Point2D.Double p)
If the given screen coordinates point is within a displayed catalog symbol, set it to
point to the center of the symbol and return the name and coordinates
from the catalog table row.
|
JPanel |
getConfigPanel(TableQueryResult table)
Return a panel to use to configure the plot symbols for the given table.
|
CoordinateConverter |
getCoordinateConverter()
Return the object used to convert to screen coordinates for drawing
|
TablePlotSymbol[] |
getPlotSymbolInfo(TableQueryResult table)
Return the plot symbol info for the given table.
|
TableQueryResult[] |
getTables()
Return an array containing the tables managed by this object.
|
void |
paintSymbols(Graphics2D g,
Rectangle2D region)
Paint the catalog symbols using the given graphics object.
|
void |
plot(TableQueryResult table)
Plot the given table data
|
void |
removeSymbolSelectionListener(SymbolSelectionListener listener)
Remove a listener for selection events on symbols
|
void |
removeTableSelectionListener(TableSelectionListener listener)
Remove a listener for selection events on tables
|
void |
replotAll()
Recalculate the coordinates and replot all symbols after a change in the coordinate system.
|
void |
selectSymbol(TableQueryResult table,
int tableRow)
Select the symbol corresponding to the given table row
|
void |
setCanvasGraphics(CanvasGraphics canvasGraphics)
Set the object to use to draw catalog symbols
|
void |
setCoordinateConverter(CoordinateConverter c)
Set the object used to convert to screen coordinates for drawing
|
void |
setPlotSymbolInfo(TableQueryResult table,
TablePlotSymbol[] symbols)
Set the plot symbol info for the given table
|
void |
setVisible(boolean isVisible)
If the given argument is false, hide all plot symbols managed by this object,
otherwise show them again.
|
void |
transformGraphics(AffineTransform trans)
Transform the plot symbols using the given AffineTransform
(called when the image is transformed, to keep the plot symbols up to date).
|
void |
unplot(TableQueryResult table)
Erase the plot of the given table data
|
void |
unplotAll()
Erase all plot symbols
|
void plot(TableQueryResult table)
void unplot(TableQueryResult table)
void unplotAll()
void replotAll()
TableQueryResult[] getTables()
void selectSymbol(TableQueryResult table, int tableRow)
void deselectSymbol(TableQueryResult table, int tableRow)
void setPlotSymbolInfo(TableQueryResult table, TablePlotSymbol[] symbols)
TablePlotSymbol[] getPlotSymbolInfo(TableQueryResult table)
table
- object representing the catalog tablevoid setVisible(boolean isVisible)
void setCanvasGraphics(CanvasGraphics canvasGraphics)
CanvasGraphics getCanvasGraphics()
void setCoordinateConverter(CoordinateConverter c)
NamedCoordinates getCatalogPosition(Point2D.Double p)
CoordinateConverter getCoordinateConverter()
void addSymbolSelectionListener(SymbolSelectionListener listener)
void removeSymbolSelectionListener(SymbolSelectionListener listener)
void addTableSelectionListener(TableSelectionListener listener)
void removeTableSelectionListener(TableSelectionListener listener)
JPanel getConfigPanel(TableQueryResult table)
table
- the result of a queryvoid paintSymbols(Graphics2D g, Rectangle2D region)
g2D
- the graphics contextregion
- if not null, the region to paintvoid transformGraphics(AffineTransform trans)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.