com.jidesoft.chart.xml
Class XmlColorAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Color>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlColorAdapter
public XmlColorAdapter()
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