Class DisplaySetting

java.lang.Object
ucar.unidata.idv.control.DisplaySetting

public class DisplaySetting extends Object
Version:
$Revision: 1.3 $
Author:
Jeff McWhirter
  • Constructor Details

    • DisplaySetting

      public DisplaySetting()
      ctor
    • DisplaySetting

      public DisplaySetting(String name, List<PropertyValue> propertyValues)
      ctor
      Parameters:
      name - The name
      propertyValues - The values
  • Method Details

    • applicableTo

      public boolean applicableTo(ControlDescriptor cd)
      Is this displaysetting applicable to the given cd
      Parameters:
      cd - The control descriptor
      Returns:
      is applicable
    • changeName

      public boolean changeName(IntegratedDataViewer idv, JDialog dialog)
      Change the name of this display setting
      Parameters:
      idv - the idv
      dialog - the dialog
      Returns:
      ok
    • doSave

      public static void doSave(IntegratedDataViewer idv, JDialog dialog, List<PropertyValue> propList, DisplayControlImpl display)
      Save the display settings
      Parameters:
      idv - the idv
      dialog - the dialog
      propList - List of properties
      display - The display
    • setName

      public void setName(String value)
      Set the Name property.
      Parameters:
      value - The new value for Name
    • getCategory

      public String getCategory()
      get the category
      Returns:
      the category
    • getNameWithoutCategory

      public String getNameWithoutCategory()
      Get just the name without the category prefix
      Returns:
      name
    • cleanName

      public static String cleanName(String name)
      Clean up the name
      Parameters:
      name - the name
      Returns:
      cleaned name
    • getName

      public String getName()
      Get the Name property.
      Returns:
      The Name
    • setPropertyValues

      public void setPropertyValues(List<PropertyValue> value)
      Set the PropertyValues property.
      Parameters:
      value - The new value for PropertyValues
    • getPropertyValues

      public List<PropertyValue> getPropertyValues()
      Get the PropertyValues property.
      Returns:
      The PropertyValues
    • equals

      public boolean equals(Object o)
      is equals
      Overrides:
      equals in class Object
      Parameters:
      o - to
      Returns:
      is equals
    • setIsLocal

      public void setIsLocal(boolean value)
      Set the IsLocal property.
      Parameters:
      value - The new value for IsLocal
    • getIsLocal

      public boolean getIsLocal()
      Get the IsLocal property.
      Returns:
      The IsLocal
    • toString

      public String toString()
      to string
      Overrides:
      toString in class Object
      Returns:
      to string
    • clearOnlyApplicableTo

      public void clearOnlyApplicableTo()
      clear out the applicable to controls map
    • setOnlyApplicableTo

      public void setOnlyApplicableTo(ControlDescriptor cd)
      set that this setting is only applicable to the given control
      Parameters:
      cd - the control
    • setApplicableToControls

      public void setApplicableToControls(Hashtable value)
      Set the ApplicableToControls property.
      Parameters:
      value - The new value for ApplicableToControls
    • getApplicableToControls

      public Hashtable getApplicableToControls()
      Get the ApplicableToControls property.
      Returns:
      The ApplicableToControls