public final class GUITools extends Object
| Modifier and Type | Field and Description |
|---|---|
private static TableDisplayFrame |
currTableJFrame
The frame for displaying a result from an operator in a table.
|
private static org.apache.log4j.Logger |
logger |
private static LogFrame |
logWindow
The instance of the user log window.
|
private static MainFrame |
mainFrame
The top-most GUI component of IQM.
|
private static StatusPanel |
statusPanel
The status panel.
|
private static TCTool |
tcTool
The TileCache Tool to be displayed.
|
| Constructor and Description |
|---|
GUITools() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
calcAngleAndLegLenghts(AngleROI s)
This method calculates the angle value of a given shape object.
|
static double |
calcLength(Vector<Float> coords)
This method prints the length value of a line
|
static void |
centerFrameOnScreen(Window w)
Centers a specified
Window on the screen. |
static void |
disableMainFrameInteraction()
Starts a wait cursor on the specified
JFrame. |
static void |
disableUserInteraction(JFrame window)
Starts a wait cursor on the specified
JFrame. |
static void |
displayJoinedTables(List<IqmDataBox> boxList)
This method displays joined rows in a
JTable. |
static void |
displayTableData(JTable table)
This method displays the Table data
|
static void |
enableMainFrameInteraction()
Stops the wait cursor and re-enables the user interaction on a given
JFrame. |
static void |
enableUserInteraction(JFrame window)
Stops the wait cursor and re-enables the user interaction on a given
JFrame. |
static TableDisplayFrame |
getCurrTableJFrame()
This method gets current frame for displaying a
TableModel. |
static LogFrame |
getLogFrame() |
static MainFrame |
getMainFrame()
This method gets the
MainFrame. |
static Point |
getRealPixelPosition(Point p,
double zoom)
This method calculates the real image pixel position.
|
static Vector<Float> |
getShapeCoordinates(javax.media.jai.ROIShape roiShape)
This method gets the Polygon (shape) coordinates.
|
static IStatusPanel |
getStatusPanel() |
static TCTool |
getTcTool() |
static void |
setCurrTableJFrame(TableDisplayFrame fr)
This method sets current JTable JFrame
|
static void |
setLogFrame(LogFrame logWindow) |
static void |
setMainFrame(MainFrame arg)
This method sets the IqmFrame
|
static void |
setStatusPanel(StatusPanel statusPanel) |
static void |
setTcTool(TCTool tcTool) |
static void |
showAboutDialog()
Shows the 'About IQM' dialog.
|
static void |
showImage(BufferedImage image,
String title)
Displays the
BufferedImage in a separate JFrame. |
static void |
showTable(JTable table)
|
static javax.media.jai.PlanarImage |
zoomImage(javax.media.jai.PlanarImage pi,
double zoom)
This method zooms an image.
|
private static final org.apache.log4j.Logger logger
private static MainFrame mainFrame
private static StatusPanel statusPanel
private static TableDisplayFrame currTableJFrame
private static TCTool tcTool
private static LogFrame logWindow
public static void showImage(BufferedImage image, String title)
BufferedImage in a separate JFrame.image - public static void showTable(JTable table)
table - public static Point getRealPixelPosition(Point p, double zoom)
p - pixel position of devicezoom - the zoom value in double precisionpublic static javax.media.jai.PlanarImage zoomImage(javax.media.jai.PlanarImage pi,
double zoom)
pi - - the source imagepublic static Vector<Float> getShapeCoordinates(javax.media.jai.ROIShape roiShape)
ROIShapepublic static double calcLength(Vector<Float> coords)
coords - public static double[] calcAngleAndLegLenghts(AngleROI s)
s - a shape object, e.g. AngleROI0,
the large angle on index 1, the first leg length on
index 2, and the second leg length on index
3public static void displayTableData(JTable table)
table - public static void displayJoinedTables(List<IqmDataBox> boxList)
JTable.boxList - the list of IqmDataBoxes containing the
TableModelspublic static MainFrame getMainFrame()
MainFrame.public static void setMainFrame(MainFrame arg)
arg - public static IStatusPanel getStatusPanel()
public static void setStatusPanel(StatusPanel statusPanel)
statusPanel - the statusPanel to setpublic static TCTool getTcTool()
public static void setTcTool(TCTool tcTool)
tcTool - the tcTool to setpublic static LogFrame getLogFrame()
public static void setLogFrame(LogFrame logWindow)
logWindow - the logWindow to setpublic static void setCurrTableJFrame(TableDisplayFrame fr)
fr - public static TableDisplayFrame getCurrTableJFrame()
TableModel.TableDisplayFramepublic static void disableUserInteraction(JFrame window)
JFrame.window - the frame to be lockedpublic static void enableUserInteraction(JFrame window)
JFrame.window - the frame to be unlockedpublic static void disableMainFrameInteraction()
JFrame.public static void enableMainFrameInteraction()
JFrame.public static void centerFrameOnScreen(Window w)
Window on the screen.public static void showAboutDialog()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.