infovis.panel.color
Class ColorScheme
java.lang.Object
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:
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.