ucar.unidata.idv
Class ViewDescriptor

java.lang.Object
  extended by 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 Summary
static ViewDescriptor LASTACTIVE
          Represents the active view manager We keep the old name, MAIN3D, around for legacy reasons?
static ViewDescriptor NAME_LASTACTIVE_3D
          Deprecated. Use LASTACTIVE
static ViewDescriptor NAME_MAIN3D
          Deprecated. Use LASTACTIVE
static String TYPE_MAIN2D
          Type identifier for 2d view managers
static String TYPE_MAIN3D
          Type identifier for 3d view managers
 
Constructor Summary
ViewDescriptor()
          Create this descriptor.
ViewDescriptor(String name)
          Create this descriptor with the given name.
ViewDescriptor(ViewDescriptor that)
          Copy ctor
 
Method Summary
 boolean equals(Object obj)
          Does this view descriptor equal the given obj
 List getClassNames()
          Get the Classes property.
 String getName()
          Get the name
 int hashCode()
          Override hashcode.
 boolean nameEquals(ViewDescriptor that)
          Does this view descriptor equal the given obj
 void setClassNames(List value)
          Set the Classes property.
 void setName(String n)
          Set the name
 String toString()
          The to string method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Deprecated. Use LASTACTIVE
Instance for 3d view managers


NAME_LASTACTIVE_3D

public static final ViewDescriptor NAME_LASTACTIVE_3D
Deprecated. Use LASTACTIVE
Instance for 3d view managers

Constructor Detail

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 Detail

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