math.geom2d.conic
Enum Conic2D.Type

java.lang.Object
  extended by java.lang.Enum<Conic2D.Type>
      extended by math.geom2d.conic.Conic2D.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Conic2D.Type>
Enclosing interface:
Conic2D

public static enum Conic2D.Type
extends java.lang.Enum<Conic2D.Type>

The different types of conic.


Enum Constant Summary
CIRCLE
          Circle
ELLIPSE
          Ellipse
HYPERBOLA
          Hyperbola
NOT_A_CONIC
          Degenerate conic, for example a conic given by the equation x^2+1=0)
PARABOLA
          Parabola
POINT
          Single point
STRAIGHT_LINE
          Straight Line
TWO_LINES
          Union of two lines
 
Method Summary
static Conic2D.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Conic2D.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOT_A_CONIC

public static final Conic2D.Type NOT_A_CONIC
Degenerate conic, for example a conic given by the equation x^2+1=0)


ELLIPSE

public static final Conic2D.Type ELLIPSE
Ellipse


HYPERBOLA

public static final Conic2D.Type HYPERBOLA
Hyperbola


PARABOLA

public static final Conic2D.Type PARABOLA
Parabola


CIRCLE

public static final Conic2D.Type CIRCLE
Circle


STRAIGHT_LINE

public static final Conic2D.Type STRAIGHT_LINE
Straight Line


TWO_LINES

public static final Conic2D.Type TWO_LINES
Union of two lines


POINT

public static final Conic2D.Type POINT
Single point

Method Detail

values

public static Conic2D.Type[] 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 (Conic2D.Type c : Conic2D.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Conic2D.Type 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 name
java.lang.NullPointerException - if the argument is null