Class GuiUtils

java.lang.Object
microsim.gui.GuiUtils

public class GuiUtils extends Object
  • Constructor Details

    • GuiUtils

      public GuiUtils()
  • Method Details

    • openProbe

      public static ProbeFrame openProbe(Object on, String title, 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(Object on, 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(Frame window)
    • addWindow

      public static void addWindow(Frame window, int x, int y, int width, int height)
    • addWindow

      public static void addWindow(JInternalFrame window)
    • addWindow

      public static void addWindow(JInternalFrame window, int x, int y, int width, int height)
    • buildInternalFrame

      public static JInternalFrame buildInternalFrame(JFrame frame)