hudson.plugins.findbugs.util
Enum GraphType

java.lang.Object
  extended by java.lang.Enum<GraphType>
      extended by hudson.plugins.findbugs.util.GraphType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GraphType>

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

The available types for the trend graph.


Enum Constant Summary
DIFFERENCE
          FIXME.
FIXED
          Warnings by new versus fixed.
HEALTH
          Warnings by health trend.
NONE
          No graph at all.
PRIORITY
          Warnings by priority.
 
Method Summary
abstract  org.jfree.chart.JFreeChart createGraph(GraphConfiguration configuration, AbstractHealthDescriptor healthDescriptor, ResultAction<? extends BuildResult> resultAction, java.lang.String pluginName)
          Creates the graph.
 java.lang.String getId()
          Returns a unique ID for this type.
static GraphType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GraphType[] 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

NONE

public static final GraphType NONE
No graph at all.


PRIORITY

public static final GraphType PRIORITY
Warnings by priority.


FIXED

public static final GraphType FIXED
Warnings by new versus fixed.


DIFFERENCE

public static final GraphType DIFFERENCE
FIXME.


HEALTH

public static final GraphType HEALTH
Warnings by health trend.

Method Detail

values

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

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

valueOf

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

createGraph

public abstract org.jfree.chart.JFreeChart createGraph(GraphConfiguration configuration,
                                                       AbstractHealthDescriptor healthDescriptor,
                                                       ResultAction<? extends BuildResult> resultAction,
                                                       java.lang.String pluginName)
Creates the graph.

Parameters:
configuration - the configuration parameters
healthDescriptor - the health descriptor
resultAction - the action to start the graph with
pluginName - the name of the plug-in
Returns:
the graph

getId

public java.lang.String getId()
Returns a unique ID for this type.

Returns:
the ID


Copyright © 2009. All Rights Reserved.