@Override
public boolean init(Node<?> node)
{
if ((node != null) && (m_attribute != null) && (node.getAttributeSheet().contains(m_attribute)))
{
Color cend = ColorExtractor.extract(m_target);
String color = getColorString(node);
if ((null == color) || ((color = color.trim()).isEmpty()))
{
color = "transparent";
}
Color cbeg;
if ("transparent".equals(color))
{
cbeg = new Color(cend.getR(), cend.getG(), cend.getB(), 0.0);
}
else
{
cbeg = ColorExtractor.extract(color);
}
m_origin_r = cbeg.getR();
m_origin_g = cbeg.getG();
m_origin_b = cbeg.getB();
m_origin_a = cbeg.getA();
m_target_r = cend.getR();
m_target_g = cend.getG();