private void convertAllAreasToNode(DrawingGroupVo voGroup,DrawingControlGroup node) { node.setName(voGroup.getGroupName()); //convert all areas to controlgroup int i; for(i=0;i<voGroup.getAreaCollection().size();i++) { node.add(createDrawingControlArea(voGroup.getAreaCollection().get(i))); } for(int j=0;j<voGroup.getChildGroups().size();j++) { DrawingGroupVo childGroup = voGroup.getChildGroups().get(j); node.add(createDrawingControlGroup(childGroup)); convertAllAreasToNode(childGroup, node.getGroup(i+j)); } }
void convertAllAreasToNode(DrawingGroupVo voGroup, DrawingControlGroup node) { node.setName(voGroup.getGroupName()); // convert all areas to controlgroup int i; for (i = 0; i < voGroup.getAreaCollection().size(); i++) { node.add(createDrawingControlArea(voGroup.getAreaCollection().get(i))); } for (int j = 0; j < voGroup.getChildGroups().size(); j++) { DrawingGroupVo childGroup = voGroup.getChildGroups().get(j); node.add(createDrawingControlGroup(childGroup)); convertAllAreasToNode(childGroup, node.getGroup(i + j)); } }
void convertAllAreasToVO(DrawingControlGroup node, DrawingGroupVo voGroup) { voGroup.setAreaCollection(new DrawingAreaVoCollection()); voGroup.setChildGroups(new DrawingGroupVoCollection()); voGroup.setGroupName(node.getName()); voGroup.setGroupID(new Integer(node.getID())); DrawingControlAreaCollection areas = node.getAreas(); for (int i = 0; i < areas.size(); i++) { DrawingControlArea area = areas.get(i); voGroup.getAreaCollection().add(createVoArea(area)); } DrawingControlGroupCollection groups = node.getGroups(); for (int i = 0; i < groups.size(); i++) { DrawingControlGroup group = groups.get(i); voGroup.getChildGroups().add(createVoGroup(group)); convertAllAreasToVO(group, voGroup.getChildGroups().get(i)); } }
private DrawingGroupVo createVoGroup(DrawingControlGroup group) { DrawingGroupVo voGroup = new DrawingGroupVo(); voGroup.setGroupName(group.getName()); voGroup.setGroupID(new Integer(group.getID())); return voGroup; }
private DrawingImageVo populateDataFromScreen() { DrawingImageVo voDrawingImage = form.getLocalContext().getimageRecord(); voDrawingImage.setRootGroup(new DrawingGroupVo()); convertAllAreasToVO(form.lyrDrawing().tabRegionConfig().drawingConfig().getAreas(), voDrawingImage.getRootGroup()); voDrawingImage.setImage(voDrawingImage.getImage()); voDrawingImage.setImageName(voDrawingImage.getRootGroup().getGroupName()); return voDrawingImage; }
private DrawingControlGroup createDrawingControlGroup(DrawingGroupVo voGroup) { DrawingControlGroup group = new DrawingControlGroup(voGroup.getGroupID().intValue(),voGroup.getGroupName()); return group; }
private DrawingControlGroup createDrawingControlGroup(DrawingGroupVo voGroup) { DrawingControlGroup group = new DrawingControlGroup(voGroup.getGroupID().intValue(), voGroup.getGroupName()); return group; }