infovis.panel.color
Class ColorScheme

java.lang.Object
  extended by infovis.panel.color.ColorScheme
All Implemented Interfaces:
Icon

public class ColorScheme
extends Object
implements Icon

Class ColorScheme

Version:
$Revision: 1.3 $
Author:
Jean-Daniel Fekete

Constructor Summary
ColorScheme(String name, Color[] ramp)
           
ColorScheme(String name, Color start, Color end)
           
 
Method Summary
 Color getEnd()
           
 int getIconHeight()
           
 int getIconWidth()
           
 String getName()
           
 Color[] getRamp()
           
 Color getStart()
           
static ColorScheme[] loadColorSchemes(String colorName)
           
static Properties loadProperties(String colorName)
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
static Color parseColor(String spec)
           
static Color[] parseColorRamp(String spec)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorScheme

public ColorScheme(String name,
                   Color start,
                   Color end)

ColorScheme

public ColorScheme(String name,
                   Color[] ramp)
Method Detail

parseColor

public static Color parseColor(String spec)

parseColorRamp

public static Color[] parseColorRamp(String spec)

loadProperties

public static Properties loadProperties(String colorName)

loadColorSchemes

public static ColorScheme[] loadColorSchemes(String colorName)

getEnd

public Color getEnd()

getName

public String getName()

getStart

public Color getStart()

getRamp

public Color[] getRamp()

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

toString

public String toString()
Overrides:
toString in class Object


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.