khartzToolz
Class KhartzFactory
java.lang.Object
|
+--khartzToolz.KhartzFactory
- public abstract class KhartzFactory
- extends java.lang.Object
- Since:
- 30/12/2002
- Version:
- 1.0
- Author:
- Austin Warren
|
Method Summary |
static KhartzChart |
instanceOf(double[] values,
java.lang.String[] labels,
java.util.Date[] dates,
int cType,
java.awt.Rectangle size,
java.lang.String title,
java.awt.Color[] colorArray)
This is the factory method that creates the relevant type of chart |
static java.awt.Color |
mapColor()
Deprecated. This has been replaced with nextColor() |
static java.awt.Color |
nextColor()
The new color mapper method |
static void |
resetColor()
Resets the Color mapper colors to the initial default value. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PIE_CHART
public static final int PIE_CHART
- Since:
- 30/12/2002
THREEDEEPIE_CHART
public static final int THREEDEEPIE_CHART
- Since:
- 30/12/2002
ELECTION_BAR_CHART
public static final int ELECTION_BAR_CHART
- Since:
- 30/12/2002
instanceOf
public static KhartzChart instanceOf(double[] values,
java.lang.String[] labels,
java.util.Date[] dates,
int cType,
java.awt.Rectangle size,
java.lang.String title,
java.awt.Color[] colorArray)
throws java.lang.IllegalArgumentException
- This is the factory method that creates the relevant type of chart
- Parameters:
labels[] - The labels to be displayed on each segmentdates[] - The dates for each segment of the chartcType - An integer value that selects the type of chart to be displayed.
This currently only supports the static type PIE_CHARTvalues[] - Represents the values to be chartedtitle - This is a text string that will be displayed at the top of the
chart.size - The required size of the chart in pixelscolorArray - An array of color to be used for the segmentscolorArray[] - - Returns:
- This is a factory method that returns a KhartzChart Object
- Throws:
java.lang.IllegalArgumentException - The number of values and labels
submitted must be the same. The tool only currently supports the creation of
PIE charts- Since:
- 30/12/2002
mapColor
public static java.awt.Color mapColor()
- Deprecated. This has been replaced with
nextColor()
- A general factory method used by chart segments to pick a range of background
colors. The method cycles through a range of colors when used, and can be reset
with the colorReset() method.
- Returns:
- java.awt.Color
- Since:
- 30/12/2002
resetColor
public static void resetColor()
- Resets the Color mapper colors to the initial default value.
- Since:
- 30/12/2002
nextColor
public static java.awt.Color nextColor()
- The new color mapper method
- Returns:
- java.awt.Color
- Since:
- 30/12/2002