FreeHEP API
Version current

hep.graphics.heprep1
Class HepRepColor

java.lang.Object
  extended byhep.graphics.heprep1.HepRepColor

public class HepRepColor
extends Object

Static class to allow for color manipulation

Version:
$Id: HepRepColor.java,v 1.1 2004/07/16 21:02:30 duns Exp $
Author:
M.Donszelmann
Source Code:
HepRepColor.java

Field Summary
static String cvsId
           
 
Constructor Summary
HepRepColor()
           
 
Method Summary
static Color get(String name)
          this method returns a Color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final String cvsId
See Also:
Constant Field Values
Constructor Detail

HepRepColor

public HepRepColor()
Method Detail

get

public static final Color get(String name)
this method returns a Color. Colors are supposedly immutable and are returned from the same table. The formats allowed are:
      by name:          "yellow"
      by int r,g,b:     "128, 255, 64"
      by float r,g,b:   "0.5, 1.0, 0.25"
      by single number: "64637" or "0x0FFF08"
 

Parameters:
name - name/number of the color
Returns:
requested Color or defaulting to white in case of a invalid name (message is printed).

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.