Class ProbeManager

java.lang.Object
saf.core.ui.event.DockableFrameAdapter
repast.simphony.ui.probe.ProbeManager
All Implemented Interfaces:
ProbeListener, saf.core.ui.event.DockableFrameListener

public class ProbeManager extends saf.core.ui.event.DockableFrameAdapter implements ProbeListener
Manages the creation, destruction and updating of probes.
Author:
Nick Collier
  • Field Details

  • Constructor Details

    • ProbeManager

      public ProbeManager(RSGui gui)
      Creates a ProbeManager and associates it with the specified gui.
      Parameters:
      gui - the gui for this app
  • Method Details

    • addPPUICreator

      public void addPPUICreator(Class<?> propertyClass, PPUICreatorFactory creator)
      Adds a PPUICreator that will be used to create UIs for probed properties.
      Parameters:
      creator -
    • addLocationProbeProvider

      public void addLocationProbeProvider(Class<?> projectionClass, LocationProbeProvider provider)
    • reset

      public void reset()
    • update

      public void update()
      Update all the probes to show the current values of their probed objects.
    • createTitle

      public static String createTitle(Object obj)
    • dockableClosed

      public void dockableClosed(saf.core.ui.event.DockableFrameEvent evt)
      Removes the probe in the closed view from this ProbeManager.
      Specified by:
      dockableClosed in interface saf.core.ui.event.DockableFrameListener
      Overrides:
      dockableClosed in class saf.core.ui.event.DockableFrameAdapter
      Parameters:
      evt - the details of the close event
    • objectProbed

      public void objectProbed(ProbeEvent evt)
      Creates and display a probe for the objects in the ProbeEvent.
      Specified by:
      objectProbed in interface ProbeListener
      Parameters:
      evt - the details of the probe
    • hasUICreatorFactory

      public boolean hasUICreatorFactory(Class<?> probedObjectClass)
      Gets whether or no this ProbeManager has an PPUICreatorFactory registered for the specified class.
      Parameters:
      probedObjectClass -
      Returns:
      true if there is a PPUICreatorFactory otherwise false.
    • hasLocationProbeProvider

      public boolean hasLocationProbeProvider(Class<?> projectionClass)
      Gets whether or no this ProbeManager has an ProbeLocationProivder registered for the specified projection.
      Parameters:
      projection -
      Returns:
      true if there is a ProbeLocationProivder otherwise false.
    • getUiCreatorMap

      public Map<Class<?>,PPUICreatorFactory> getUiCreatorMap()