use of org.cytoscape.io.internal.read.xgmml.ParseState in project cytoscape-impl by cytoscape.
the class HandleViewGraphGraphics method handle.
@Override
public ParseState handle(String tag, Attributes atts, ParseState current) throws SAXException {
if (atts == null)
return current;
manager.attState = current;
ParseState nextState = current;
if (tag.equals("graphics")) {
manager.addViewGraphicsAttributes(manager.getNetworkId(), atts, false);
} else if (tag.equals("att")) {
String name = atts.getValue(AttributeValueUtil.ATTR_NAME);
if (AttributeValueUtil.LOCKED_VISUAL_PROPS.equalsIgnoreCase(name))
return ParseState.LOCKED_VISUAL_PROP_ATT;
String value = atts.getValue(AttributeValueUtil.ATTR_VALUE);
if (name != null && value != null)
manager.addViewGraphicsAttribute(manager.getNetworkId(), name, value, false);
}
if (nextState != ParseState.NONE)
return nextState;
return current;
}
Aggregations