org.jagatoo.opengl.enums
Enum LinePattern

java.lang.Object
  extended by java.lang.Enum<LinePattern>
      extended by org.jagatoo.opengl.enums.LinePattern
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LinePattern>

public enum LinePattern
extends java.lang.Enum<LinePattern>

Insert type comment here.


Enum Constant Summary
DASHED
          Dashed line.
DASHED_DOTTED
          Dashed-Dotted line.
DOTTED
          Dotted line.
SOLID
          Solid line with no pattern
USER_DEFINED
          Draw lines with a user-defined line pattern.
 
Method Summary
static LinePattern valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LinePattern[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SOLID

public static final LinePattern SOLID
Solid line with no pattern


DOTTED

public static final LinePattern DOTTED
Dotted line. Ideally this will be drawn with a repeating pattern of one pixels on and seven pixels off.


DASHED

public static final LinePattern DASHED
Dashed line. Ideally this will be drawn with a repeating pattern of eight pixels on and eight pixels off.


DASHED_DOTTED

public static final LinePattern DASHED_DOTTED
Dashed-Dotted line. Ideally this will be drawn with a repeating pattern of seven pixels on, four pixels off one pixel on and four pixels off.


USER_DEFINED

public static final LinePattern USER_DEFINED
Draw lines with a user-defined line pattern. The line pattern is specified with a pattern mask and scale factor.

Method Detail

values

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

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

valueOf

public static LinePattern 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