|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TablePlotter
This defines the interface for plotting the contents of a catalog table.
Method Summary | |
---|---|
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(java.awt.geom.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. |
javax.swing.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(java.awt.Graphics2D g,
java.awt.geom.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(java.awt.geom.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 |
Method Detail |
---|
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 table
void setVisible(boolean isVisible)
void setCanvasGraphics(CanvasGraphics canvasGraphics)
CanvasGraphics getCanvasGraphics()
void setCoordinateConverter(CoordinateConverter c)
NamedCoordinates getCatalogPosition(java.awt.geom.Point2D.Double p)
CoordinateConverter getCoordinateConverter()
void addSymbolSelectionListener(SymbolSelectionListener listener)
void removeSymbolSelectionListener(SymbolSelectionListener listener)
void addTableSelectionListener(TableSelectionListener listener)
void removeTableSelectionListener(TableSelectionListener listener)
javax.swing.JPanel getConfigPanel(TableQueryResult table)
table
- the result of a queryvoid paintSymbols(java.awt.Graphics2D g, java.awt.geom.Rectangle2D region)
g
- the graphics contextregion
- if not null, the region to paintvoid transformGraphics(java.awt.geom.AffineTransform trans)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |