org.jplot2d.annotation
Enum HierarchyOp
- java.lang.Object
-
- java.lang.Enum<HierarchyOp>
-
- org.jplot2d.annotation.HierarchyOp
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<HierarchyOp>
public enum HierarchyOp extends java.lang.Enum<HierarchyOp>
Defines hierarchy operation types.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description ADDThe method should add an element as its child.ADD_REF2The method should add an element as its child (1:n parent:children), and set 2 elements as its referenceGETThe method should returns an element.GETARRAYThe method should returns an array of elements.JOINThe method should set an element as its reference (n:1 reffrom:refto).REFThe method should set an element as its reference (1:n reffrom:refto).REF2The method should set 2 elements as its reference.REMOVEThe method should remove an element and all its children.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static HierarchyOpvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HierarchyOp[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final HierarchyOp GET
The method should returns an element.
-
GETARRAY
public static final HierarchyOp GETARRAY
The method should returns an array of elements. (1:n parent:children)
-
ADD
public static final HierarchyOp ADD
The method should add an element as its child. (1:n parent:children)
-
REMOVE
public static final HierarchyOp REMOVE
The method should remove an element and all its children. (1:n parent:children).
-
JOIN
public static final HierarchyOp JOIN
The method should set an element as its reference (n:1 reffrom:refto). If the referenced element has no parent, it will be bring into the environment of the element who reference it.
-
REF
public static final HierarchyOp REF
The method should set an element as its reference (1:n reffrom:refto).
-
REF2
public static final HierarchyOp REF2
The method should set 2 elements as its reference. (2x 1:n reffrom:refto)
-
ADD_REF2
public static final HierarchyOp ADD_REF2
The method should add an element as its child (1:n parent:children), and set 2 elements as its reference
-
-
Method Detail
-
values
public static HierarchyOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HierarchyOp c : HierarchyOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HierarchyOp valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-
DMelt 3.0 © DataMelt by jWork.ORG