if (filters == null)
{
List<GraphicContentNode> children = node.children;
if (children != null)
{
GraphicContentNode gcNode0 = (GraphicContentNode) children.get(0);
filters = gcNode0.filters;
if (filters != null)
{
//check if all the nodes share the same filter
for (int i = 1; ((i < children.size()) && filters!= null); i++)
{
GraphicContentNode gcNodeI = (GraphicContentNode) children.get(i);
if (gcNodeI.filters != filters)
filters = null;
}
}
if (filters != null)
{
for (int i = 0; (i < children.size()) ; i++)
{
GraphicContentNode gcNodeI = (GraphicContentNode) children.get(i);
gcNodeI.filters = null;
}
}
}