Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.util
Class PaintUtil  view PaintUtil download PaintUtil.java

java.lang.Object
  extended bycom.arranger.jarl.util.PaintUtil

public class PaintUtil
extends java.lang.Object

PaintUtil created on Feb 21, 2003


Nested Class Summary
static class PaintUtil.Colors
           
 
Field Summary
static java.lang.String DATA_NAME
           
protected static java.util.Map m_colorMap
           
protected static boolean m_init
           
protected static java.util.Map m_nameColorMap
           
static java.lang.String PRIMARY_NAME
           
 
Constructor Summary
PaintUtil()
           
 
Method Summary
protected static void checkInit()
           
static java.lang.String getDisplayName(java.awt.Color color)
          Try to get a friendly name for this
static java.awt.Paint getPaint(org.w3c.dom.Element element, java.lang.String primaryName, java.lang.String dataName)
          Helper class for getting an instance of Paint
static java.awt.Paint getPaint(java.lang.String paintName)
          Loads color based on name
static java.awt.Paint getPaintFromValue(java.lang.String value)
          This will either be the value of a color ('black') or an rgb ('25, 25, 25);
static java.awt.Color interpolatePaint(java.awt.Color startColor, java.awt.Color endColor, double pct)
          Smarter Interpolation of colors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_NAME

public static java.lang.String PRIMARY_NAME

DATA_NAME

public static java.lang.String DATA_NAME

m_init

protected static boolean m_init

m_colorMap

protected static java.util.Map m_colorMap

m_nameColorMap

protected static java.util.Map m_nameColorMap
Constructor Detail

PaintUtil

public PaintUtil()
Method Detail

getPaint

public static java.awt.Paint getPaint(org.w3c.dom.Element element,
                                      java.lang.String primaryName,
                                      java.lang.String dataName)
Helper class for getting an instance of Paint


getPaintFromValue

public static java.awt.Paint getPaintFromValue(java.lang.String value)
This will either be the value of a color ('black') or an rgb ('25, 25, 25);


getDisplayName

public static java.lang.String getDisplayName(java.awt.Color color)
Try to get a friendly name for this


getPaint

public static java.awt.Paint getPaint(java.lang.String paintName)
Loads color based on name


interpolatePaint

public static java.awt.Color interpolatePaint(java.awt.Color startColor,
                                              java.awt.Color endColor,
                                              double pct)
Smarter Interpolation of colors.


checkInit

protected static void checkInit()