net.sf.magicproject.chart
Enum ChartFilter

java.lang.Object
  extended by java.lang.Enum<ChartFilter>
      extended by net.sf.magicproject.chart.ChartFilter
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ChartFilter>

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

Appliable filters for charts.

Since:
0.93
Author:
Fabrice Daugan

Enum Constant Summary
color
          To filter the color.
manacost
          To filter the manacost.
property
          To filter the property.
type
          To filter the type.
 
Field Summary
static java.lang.Integer DEFAULT_KEY
           
 
Method Summary
 Dataset createDataSet(IDataProvider dataProvider)
          A new Dataset instance.
 org.jfree.chart.plot.Plot createPlot(Dataset dataSet, java.util.Map<java.lang.Integer,java.awt.Paint> painterMapper)
           
 java.lang.String getTitle()
          Return the title of this chart.
static ChartFilter valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ChartFilter[] 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

color

public static final ChartFilter color
To filter the color.


type

public static final ChartFilter type
To filter the type.


property

public static final ChartFilter property
To filter the property.


manacost

public static final ChartFilter manacost
To filter the manacost.

Field Detail

DEFAULT_KEY

public static final java.lang.Integer DEFAULT_KEY
Method Detail

values

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

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

valueOf

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

createPlot

public org.jfree.chart.plot.Plot createPlot(Dataset dataSet,
                                            java.util.Map<java.lang.Integer,java.awt.Paint> painterMapper)
Parameters:
dataSet - the dataset associated to this filter.
painterMapper - the optional paint mapper to associate to this filter.
Returns:
the plot associated to this filter.

createDataSet

public Dataset createDataSet(IDataProvider dataProvider)
A new Dataset instance.

Parameters:
dataProvider -
Returns:
a new Dataset instance.

getTitle

public java.lang.String getTitle()
Return the title of this chart.

Returns:
the title of this chart.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.