Package ucar.unidata.idv
Class ViewDescriptor
java.lang.Object
ucar.unidata.idv.ViewDescriptor
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
FieldsModifier and TypeFieldDescriptionstatic final ViewDescriptorRepresents the active view manager We keep the old name, MAIN3D, around for legacy reasons?static final ViewDescriptorInstance for 3d view managers deprecated Use LASTACTIVEstatic final ViewDescriptorInstance for 3d view managers deprecated Use LASTACTIVEstatic StringType identifier for 2d view managersstatic StringType identifier for 3d view managers -
Constructor Summary
ConstructorsConstructorDescriptionCreate this descriptor.ViewDescriptor(String name) Create this descriptor with the given name.ViewDescriptor(ViewDescriptor that) Copy ctor -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes this view descriptor equal the given objGet the Classes property.getName()Get the nameinthashCode()Override hashcode.booleannameEquals(ViewDescriptor that) Does this view descriptor equal the given objvoidsetClassNames(List value) Set the Classes property.voidSet the nametoString()The to string method
-
Field Details
-
TYPE_MAIN3D
Type identifier for 3d view managers -
TYPE_MAIN2D
Type identifier for 2d view managers -
LASTACTIVE
Represents the active view manager We keep the old name, MAIN3D, around for legacy reasons? -
NAME_MAIN3D
Instance for 3d view managers deprecated Use LASTACTIVE -
NAME_LASTACTIVE_3D
Instance for 3d view managers deprecated Use LASTACTIVE
-
-
Constructor Details
-
ViewDescriptor
public ViewDescriptor()Create this descriptor. Make a unique name. -
ViewDescriptor
Create this descriptor with the given name.- Parameters:
name- THe name
-
ViewDescriptor
Copy ctor- Parameters:
that- Object to copy from
-
-
Method Details
-
toString
The to string method -
equals
Does this view descriptor equal the given obj -
nameEquals
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 -
getName
Get the name- Returns:
- The name of this ViewDescriptor
-
setName
Set the name- Parameters:
n- The new name
-
setClassNames
Set the Classes property.- Parameters:
value- The new value for Classes
-
getClassNames
Get the Classes property.- Returns:
- The Classes
-