com.jidesoft.chart.xml
Class XmlPaintAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Paint>
com.jidesoft.chart.xml.XmlPaintAdapter
public class XmlPaintAdapter
- extends javax.xml.bind.annotation.adapters.XmlAdapter<String,Paint>
Copyright (c) Catalysoft Ltd, 2005-2010 All Rights Reserved
Created: 09-Sep-2010
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 |
XmlPaintAdapter
public XmlPaintAdapter()
marshal
public String marshal(Paint paint)
throws Exception
- Specified by:
marshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Paint>
- Throws:
Exception
unmarshal
public Paint unmarshal(String paintString)
throws Exception
- Specified by:
unmarshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Paint>
- Throws:
Exception