ElegantJCharts Java API Specification v2.0

com.elegantj.graphx
Class GraphColor

java.lang.Object
  |
  +--com.elegantj.graphx.GraphColor
All Implemented Interfaces:
java.io.Serializable

public class GraphColor
extends java.lang.Object
implements java.io.Serializable

GraphColor class provides the colors available to be used with the graph for its representation.

See Also:
Serialized Form

Constructor Summary
GraphColor()
          Creates the GraphColor
 
Method Summary
 void addElement(java.awt.Color inColor)
           
 java.awt.Color elementAt(int inColorNum)
          This method Gets the Color at specified color index
 void insertElementAt(java.awt.Color inColor, int inColorNum)
           
 java.awt.Color setBrighter(java.awt.Color inColor, int inDarkerLevel)
          The method Makes the specified color more brighter with specified level of brightness
 java.awt.Color setDarker(java.awt.Color inColor, int inDarkerLevel)
          The specified colorcan be made darker with specified level of darkness using this method
 void setElementAt(java.awt.Color inColor, int inColorNum)
           
 int size()
          Returns the total number of colors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphColor

public GraphColor()
Creates the GraphColor

Method Detail

elementAt

public java.awt.Color elementAt(int inColorNum)
This method Gets the Color at specified color index

Parameters:
inColorNum - the color index
Returns:
associated Color at specified index

addElement

public void addElement(java.awt.Color inColor)

insertElementAt

public void insertElementAt(java.awt.Color inColor,
                            int inColorNum)

setElementAt

public void setElementAt(java.awt.Color inColor,
                         int inColorNum)

size

public int size()
Returns the total number of colors


setDarker

public java.awt.Color setDarker(java.awt.Color inColor,
                                int inDarkerLevel)
The specified colorcan be made darker with specified level of darkness using this method

Parameters:
inColor - the color to be darken
inDarkerLevel - the level of darkness
Returns:
dark color of the specified color

setBrighter

public java.awt.Color setBrighter(java.awt.Color inColor,
                                  int inDarkerLevel)
The method Makes the specified color more brighter with specified level of brightness

Parameters:
inColor - the color to be brighten
inDarkerLevel - the level of brightness
Returns:
bright color of the specified color

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.