rrdService.util
Class RoundRobinColor

java.lang.Object
  |
  +--java.awt.Color
        |
        +--rrdService.util.RoundRobinColor
All Implemented Interfaces:
java.awt.Paint, java.io.Serializable, java.awt.Transparency

public class RoundRobinColor
extends java.awt.Color

The class RoundRobinColor allows to modify the color associate with RoundRobinGraphic

Version:
1.0 date : 15/07/2001
Author:
Damien Pellier
See Also:
RoundRobinColor, RoundRobinGraphic, Serialized Form

Field Summary
static java.lang.String ARROW
          ColorTag ARROW
static java.lang.String BACKGROUNG
          ColorTag BackGround
static java.lang.String CANVAS
          ColorTag CANVAS
static java.lang.String FONT
          ColorTag FONT
static java.lang.String FRAME
          ColorTag FRAME
static java.lang.String GRID
          ColorTag GRID
static java.lang.String MGRID
          ColorTag MGRID major grid
static java.lang.String SHADEA
          ColorTag SHADEA left/top border
static java.lang.String SHADEB
          ColorTag SHADEB right/bottom border
private  java.lang.String tag
          Tag or vname to color
 
Fields inherited from class java.awt.Color
black, blue, cs, cyan, darkGray, FACTOR, falpha, frgbvalue, fvalue, gray, green, lightGray, magenta, orange, pData, pink, red, serialVersionUID, theContext, value, white, yellow
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
RoundRobinColor(java.lang.String tag, java.awt.Color color)
          Constructor of a RoundRobinColo
 
Method Summary
 java.lang.String colorToHexString()
          Returns a string hexa representation of a color
 java.lang.String getTag()
          Returns the tag or the vname of this RoundRobinColor
 void setTag(java.lang.String tag)
          Replaces the tag or the vname of this RoundRobinColor
 java.lang.String toString()
          Returns a string representation of this round robin color
 
Methods inherited from class java.awt.Color
, brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, initIDs, RGBtoHSB, testColorValueRange, testColorValueRange
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

ARROW

public static final java.lang.String ARROW
ColorTag ARROW

BACKGROUNG

public static final java.lang.String BACKGROUNG
ColorTag BackGround

CANVAS

public static final java.lang.String CANVAS
ColorTag CANVAS

FONT

public static final java.lang.String FONT
ColorTag FONT

FRAME

public static final java.lang.String FRAME
ColorTag FRAME

GRID

public static final java.lang.String GRID
ColorTag GRID

MGRID

public static final java.lang.String MGRID
ColorTag MGRID major grid

SHADEA

public static final java.lang.String SHADEA
ColorTag SHADEA left/top border

SHADEB

public static final java.lang.String SHADEB
ColorTag SHADEB right/bottom border

tag

private java.lang.String tag
Tag or vname to color
Constructor Detail

RoundRobinColor

public RoundRobinColor(java.lang.String tag,
                       java.awt.Color color)
Constructor of a RoundRobinColo
Parameters:
tag - the tagColor or the vname to color
Method Detail

colorToHexString

public java.lang.String colorToHexString()
Returns a string hexa representation of a color
Parameters:
color - the color to convert

getTag

public java.lang.String getTag()
Returns the tag or the vname of this RoundRobinColor

setTag

public void setTag(java.lang.String tag)
Replaces the tag or the vname of this RoundRobinColor
Parameters:
tag - the tag or the vname of this RoundRobinColor

toString

public java.lang.String toString()
Returns a string representation of this round robin color
Overrides:
toString in class java.awt.Color

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.