com.compomics.util.gui.spectrum
Enum GraphicsPanel.DrawingStyle

java.lang.Object
  extended by java.lang.Enum<GraphicsPanel.DrawingStyle>
      extended by com.compomics.util.gui.spectrum.GraphicsPanel.DrawingStyle
All Implemented Interfaces:
Serializable, Comparable<GraphicsPanel.DrawingStyle>
Enclosing class:
GraphicsPanel

public static enum GraphicsPanel.DrawingStyle
extends Enum<GraphicsPanel.DrawingStyle>

An enumerator of the possible GraphicsPanel types.


Enum Constant Summary
DOTS
          Draw a dot at the measurement height.
LINES
          Draw lines connecting the X-axis with the measurement
 
Method Summary
static GraphicsPanel.DrawingStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GraphicsPanel.DrawingStyle[] 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

LINES

public static final GraphicsPanel.DrawingStyle LINES
Draw lines connecting the X-axis with the measurement


DOTS

public static final GraphicsPanel.DrawingStyle DOTS
Draw a dot at the measurement height.

Method Detail

values

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

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

valueOf

public static GraphicsPanel.DrawingStyle 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 name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.