- java.lang.Object
-
- java.lang.Enum<XYCoordinateType>
-
- org.jfree.chart.api.XYCoordinateType
-
- All Implemented Interfaces:
Serializable,Comparable<XYCoordinateType>
public enum XYCoordinateType extends Enum<XYCoordinateType>
Represents several possible interpretations for an (x, y) coordinate.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XYCoordinateTypevalueOf(String name)Returns the enum constant of this type with the specified name.static XYCoordinateType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATA
public static final XYCoordinateType DATA
The (x, y) coordinates represent a point in the data space.
-
RELATIVE
public static final XYCoordinateType RELATIVE
The (x, y) coordinates represent a relative position in the data space. In this case, the values should be in the range (0.0 to 1.0).
-
INDEX
public static final XYCoordinateType INDEX
The (x, y) coordinates represent indices in a dataset. In this case, the values should be in the range (0.0 to 1.0).
-
-
Method Detail
-
values
public static XYCoordinateType[] 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 (XYCoordinateType c : XYCoordinateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XYCoordinateType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-