Package userDisplay

Class DisplayNameManager

java.lang.Object
userDisplay.DisplayNameManager

public class DisplayNameManager extends Object
Singleton class to manage display names and make sure they are unique across the entirety of PAMGuard .
Author:
dg50
  • Method Details

    • getInstance

      public static DisplayNameManager getInstance()
    • getUniqueName

      public String getUniqueName(String defaultName, DisplayProviderParameters dpp)
    • getUniqueName

      public String getUniqueName(String defaultName, String currentName)
      Get a unique name (using the current one if possible)
      Parameters:
      defaultName - default name
      currentName - attempted chosen name
      Returns:
      unique name (generally the default + a number 1,2,3, etc.
    • forgetName

      public void forgetName(String name)
      Forget a name. Can be called when a display is removed.
      Parameters:
      name -