Package userDisplay
Class DisplayNameManager
java.lang.Object
userDisplay.DisplayNameManager
Singleton class to manage display names and make sure they are unique
across the entirety of PAMGuard .
- Author:
- dg50
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forgetName
(String name) Forget a name.static DisplayNameManager
getUniqueName
(String defaultName, String currentName) Get a unique name (using the current one if possible)getUniqueName
(String defaultName, DisplayProviderParameters dpp)
-
Method Details
-
getInstance
-
getUniqueName
-
getUniqueName
Get a unique name (using the current one if possible)- Parameters:
defaultName
- default namecurrentName
- attempted chosen name- Returns:
- unique name (generally the default + a number 1,2,3, etc.
-
forgetName
Forget a name. Can be called when a display is removed.- Parameters:
name
-
-