Package microsim.gui
Class GuiUtils
- java.lang.Object
-
- microsim.gui.GuiUtils
-
public class GuiUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGuiUtils.WindowGrabber
-
Constructor Summary
Constructors Constructor Description GuiUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddWindow(java.awt.Frame window)static voidaddWindow(java.awt.Frame window, int x, int y, int width, int height)static voidaddWindow(javax.swing.JInternalFrame window)static voidaddWindow(javax.swing.JInternalFrame window, int x, int y, int width, int height)static javax.swing.JInternalFramebuildInternalFrame(javax.swing.JFrame frame)static ProbeFrameopenProbe(java.lang.Object on, java.lang.String title)Opens a probe on the given object and return its reference.static ProbeFrameopenProbe(java.lang.Object on, java.lang.String title, microsim.engine.SimulationManager ownerModel)Opens a probe on the given object and return its reference.
-
-
-
Method Detail
-
openProbe
public static ProbeFrame openProbe(java.lang.Object on, java.lang.String title, microsim.engine.SimulationManager ownerModel)
Opens a probe on the given object and return its reference.- Parameters:
on- Object to be probed. If on implements the IProbeFields interface the probe will use this set of fields.title- The title of the probe frame.ownerModel- The caller SimModel.- Returns:
- A new instance of ProbeFrame.
-
openProbe
public static ProbeFrame openProbe(java.lang.Object on, java.lang.String title)
Opens a probe on the given object and return its reference.- Parameters:
on- Object to be probed. If on implements the IProbeFields interface the probe will use this set of fields.title- The title of the probe frame.- Returns:
- A new instance of ProbeFrame.
-
addWindow
public static void addWindow(java.awt.Frame window)
-
addWindow
public static void addWindow(java.awt.Frame window, int x, int y, int width, int height)
-
addWindow
public static void addWindow(javax.swing.JInternalFrame window)
-
addWindow
public static void addWindow(javax.swing.JInternalFrame window, int x, int y, int width, int height)
-
buildInternalFrame
public static javax.swing.JInternalFrame buildInternalFrame(javax.swing.JFrame frame)
-
-