JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class DefaultColors

java.lang.Object
  |
  +--com.klg.jclass.chart3d.DefaultColors
All Implemented Interfaces:
Serializable

public class DefaultColors
extends Object
implements Serializable

A class that stores the default colors array for the contour styles

See Also:
Serialized Form

Field Summary
static int BLUE
          Index that gives the BLUE component of given color in the color array
protected static int[][] colors
          The default color array
static int GREEN
          Index that gives the GREEN component of given color in the color array
protected  int numColors
          The number of colors in the default color array
static int RED
          Index that gives the RED component of given color in the color array
 
Method Summary
protected  Color getColor(int colorNum)
          Get the color pertaining to the given index
 int getNumColors()
          Retrieve the number of colors in the default color array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RED

public static final int RED
Index that gives the RED component of given color in the color array

See Also:
Constant Field Values

GREEN

public static final int GREEN
Index that gives the GREEN component of given color in the color array

See Also:
Constant Field Values

BLUE

public static final int BLUE
Index that gives the BLUE component of given color in the color array

See Also:
Constant Field Values

colors

protected static final int[][] colors
The default color array


numColors

protected int numColors
The number of colors in the default color array

Method Detail

getNumColors

public int getNumColors()
Retrieve the number of colors in the default color array

Returns:
The number of colors in the default color array

getColor

protected Color getColor(int colorNum)
Get the color pertaining to the given index

Parameters:
colorNum - The index of the color requested
Returns:
The color pertaining to the given index

Copyright © 2004 Quest Software Inc..
All rights reserved.