areaJson.setShapeJson(shapeJson);
List<Layer> layerList = layerService.getLayerListByArea(area);
List<LayerJson> layerJsonList = new ArrayList<LayerJson>();
for (Iterator<Layer> iterator2 = layerList.iterator(); iterator2.hasNext();) {
Layer layer = iterator2.next();
LayerJson layerJson = new LayerJson();
layerJson.setName(layer.getName());
layerJson.setImgBackground(layer.getImgBackground());
layerJson.setVisible(layer.isVisible());
layerJson.setzIndex(layer.getzIndex());
List<AreaElement> areaElementList = areaElementService.getAreaElementListByLayer(layer);
List<AreaElementJson> areaElementJsonList = new ArrayList<AreaElementJson>();
for (Iterator<AreaElement> iterator3 = areaElementList.iterator(); iterator3.hasNext();) {
AreaElement areaElement = iterator3.next();
AreaElementJson areaElementJson = new AreaElementJson();
areaElementJson.setAreaElementType(areaElement.getType().getId());
areaElementJson.setRotate(areaElement.getRotate());
areaElementJson.setScaleX(areaElement.getScaleX());
areaElementJson.setScaleY(areaElement.getScaleY());
areaElementJson.setSurfaceTot(areaElement.getSurfaceTot());
areaElementJson.setTranslateX(areaElement.getTranslateX());
areaElementJson.setTranslateY(areaElement.getTranslateY());
areaElementJsonList.add(areaElementJson);
}
layerJson.setAreaElementList(areaElementJsonList);
List<Shape> shapeList = layer.getShapes();
List<ShapeJson> shapeJsonList = new ArrayList<ShapeJson>();
for (Iterator<Shape> iterator4 = shapeList.iterator(); iterator4.hasNext();) {
Shape layerShape = iterator4.next();
ShapeJson layerShapeJson = new ShapeJson();