JIDE 3.5.15

com.jidesoft.chart.xml
Class XmlColorAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Color>
      extended by com.jidesoft.chart.xml.XmlColorAdapter

public class XmlColorAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<String,Color>

A Color can be provided either as an RGB value or an RGBA value, as for example 'rgb(128,128,128)' which is a mid-grey, or 'rgba(255,0,0,128)', which is a translucent red.


Constructor Summary
XmlColorAdapter()
           
 
Method Summary
 String marshal(Color color)
           
 Color unmarshal(String colorString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlColorAdapter

public XmlColorAdapter()
Method Detail

marshal

public String marshal(Color color)
               throws Exception
Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Color>
Throws:
Exception

unmarshal

public Color unmarshal(String colorString)
                throws Exception
Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Color>
Throws:
Exception

JIDE 3.5.15