public void visit(Graphic gr) { start("Graphic"); encodeGeometryProperty(gr.getGeometryPropertyName()); Symbol[] symbols = gr.getSymbols(); for (int i = 0; i < symbols.length; i++) { symbols[i].accept(this); } element("Opacity", gr.getOpacity()); element("Size", gr.getSize()); element("Rotation", gr.getRotation()); end("Graphic"); }
public void setEdited(Graphic graphic) { if (graphic != null) { guiDisplacement.setEdited(graphic.getDisplacement()); guiGeom.setGeom(graphic.getGeometryPropertyName()); guiOpacity.setExpression(graphic.getOpacity()); guiRotation.setExpression(graphic.getRotation()); guiSize.setExpression(graphic.getSize()); // marks and external graphics are symbols so no need to handle this method //graphic.getSymbols(); guiMark.setEdited(graphic.getMarks()); guiExternal.setEdited(graphic.getExternalGraphics()); } this.graphic = graphic; }
copy.setGeometryPropertyName(gr.getGeometryPropertyName()); copy.setDisplacement(displacementCopy); copy.setExternalGraphics(externalGraphicsCopy);
copy.setGeometryPropertyName(gr.getGeometryPropertyName()); copy.setDisplacement(displacementCopy); copy.setExternalGraphics(externalGraphicsCopy);