public void process(InputOutputStream stream) throws IOException, IXMLStreamableException { if (stream.isInputStream()) // XXX: only support read-in at the moment :( { pixmap = stream.processChild("Pixmap", pixmap, null, Pixmap.class); } useAlternateBlending = stream.processAttribute("alternateBlending", useAlternateBlending, false); modulationColor = stream.processChild("color", modulationColor, Color.WHITE, Color.class); }
@Override public void process(InputOutputStream stream) throws IOException, IXMLStreamableException { super.process(stream); if (getTop() == 0 && getLeft() == 0 && getBottom() == 0 && getRight() == 0) { setSpacing(1, 1); } color = stream.processChild("Color", color, Color.BLACK, Color.class); }