Interface IRegionSystem

All Known Subinterfaces:
IPlottingSystem<T>, IPlottingSystemViewer<T>
All Known Implementing Classes:
AbstractHyperPlotViewer, AbstractPlottingSystem, ArpesSlicePlotViewer, DatasetTablePlotViewer, HyperPlotViewer, IPlottingSystemViewer.Stub, JRealityPlotViewer, LightWeightPlotViewer, PlottingSystemImpl, ThreadSafePlottingSystem

public interface IRegionSystem
No methods in this interface are thread safe.
  • Method Details

    • createRegion

      IRegion createRegion(String name, IRegion.RegionType regionType) throws Exception
      Creates a selection region by type. This does not create any user interface for the region. You can then call methods on the region to set colour and position for the selection. Use addRegion(...) and removeRegion(...) to control if the selection is active on the graph. Usually thread safe.
      Parameters:
      name -
      regionType -
      Returns:
      Throws:
      Exception - if name exists already.
    • addRegion

      void addRegion(IRegion region)
      Add a selection region to the graph. Not thread safe, call from UI thread.
      Parameters:
      region -
    • removeRegion

      void removeRegion(IRegion region)
      Remove a selection region to the graph. Not thread safe, call from UI thread.
      Parameters:
      region -
    • getRegion

      IRegion getRegion(String name)
      Get a region by name.
      Parameters:
      name -
      Returns:
    • getRegions

      Get all the regions for a given region type, null if there are no regions, empty list if there are regions but not of this type.
      Parameters:
      type -
      Returns:
    • addRegionListener

      boolean addRegionListener(IRegionListener l)
      Parameters:
      l -
    • removeRegionListener

      boolean removeRegionListener(IRegionListener l)
      Parameters:
      l -
    • clearRegions

      void clearRegions()
      Remove all regions. Not thread safe, call from UI thread.
    • clearRegionTool

      void clearRegionTool()
      If there is a current region tool clear this.
    • getRegions

      Collection<IRegion> getRegions()
      Current regions in the plotting system.
      Returns:
    • renameRegion

      void renameRegion(IRegion region, String name)
      Renames the region, better than calling setName on the IRegion as the collection of regions is updated properly. No event will be fired.