Package microsim.gui

Class GuiUtils


  • public class GuiUtils
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GuiUtils.WindowGrabber  
    • Constructor Summary

      Constructors 
      Constructor Description
      GuiUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addWindow​(java.awt.Frame window)  
      static void addWindow​(java.awt.Frame window, int x, int y, int width, int height)  
      static void addWindow​(javax.swing.JInternalFrame window)  
      static void addWindow​(javax.swing.JInternalFrame window, int x, int y, int width, int height)  
      static javax.swing.JInternalFrame buildInternalFrame​(javax.swing.JFrame frame)  
      static ProbeFrame openProbe​(java.lang.Object on, java.lang.String title)
      Opens a probe on the given object and return its reference.
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GuiUtils

        public GuiUtils()
    • 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)