Class ViewDescriptor

java.lang.Object
ucar.unidata.idv.ViewDescriptor

public class ViewDescriptor extends Object
This class has never been fully fleshed out (in part because it has done what we need it to do. It is meant to be a means of identifying different types and instances of ViewManagers
Author:
IDV Development Team
  • Field Details

    • TYPE_MAIN3D

      public static String TYPE_MAIN3D
      Type identifier for 3d view managers
    • TYPE_MAIN2D

      public static String TYPE_MAIN2D
      Type identifier for 2d view managers
    • LASTACTIVE

      public static final ViewDescriptor LASTACTIVE
      Represents the active view manager We keep the old name, MAIN3D, around for legacy reasons?
    • NAME_MAIN3D

      public static final ViewDescriptor NAME_MAIN3D
      Instance for 3d view managers deprecated Use LASTACTIVE
    • NAME_LASTACTIVE_3D

      public static final ViewDescriptor NAME_LASTACTIVE_3D
      Instance for 3d view managers deprecated Use LASTACTIVE
  • Constructor Details

    • ViewDescriptor

      public ViewDescriptor()
      Create this descriptor. Make a unique name.
    • ViewDescriptor

      public ViewDescriptor(String name)
      Create this descriptor with the given name.
      Parameters:
      name - THe name
    • ViewDescriptor

      public ViewDescriptor(ViewDescriptor that)
      Copy ctor
      Parameters:
      that - Object to copy from
  • Method Details

    • toString

      public String toString()
      The to string method
      Overrides:
      toString in class Object
      Returns:
      The name
    • equals

      public boolean equals(Object obj)
      Does this view descriptor equal the given obj
      Overrides:
      equals in class Object
      Parameters:
      obj - The object
      Returns:
      Equals the obj
    • nameEquals

      public boolean nameEquals(ViewDescriptor that)
      Does this view descriptor equal the given obj
      Parameters:
      that - The object
      Returns:
      Equals the obj
    • hashCode

      public int hashCode()
      Override hashcode. Use the name's hashcode
      Overrides:
      hashCode in class Object
      Returns:
      The hashcode
    • getName

      public String getName()
      Get the name
      Returns:
      The name of this ViewDescriptor
    • setName

      public void setName(String n)
      Set the name
      Parameters:
      n - The new name
    • setClassNames

      public void setClassNames(List value)
      Set the Classes property.
      Parameters:
      value - The new value for Classes
    • getClassNames

      public List getClassNames()
      Get the Classes property.
      Returns:
      The Classes