infovis.panel.color
Class ColorScheme
java.lang.Object
   infovis.panel.color.ColorScheme
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
 
 
 
ColorScheme
public ColorScheme(String name,
                   Color start,
                   Color end)
ColorScheme
public ColorScheme(String name,
                   Color[] ramp)
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:
- getIconHeightin interface- Icon
 
- 
 
getIconWidth
public int getIconWidth()
- 
- Specified by:
- getIconWidthin interface- Icon
 
- 
 
paintIcon
public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
- 
- Specified by:
- paintIconin interface- Icon
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.