private void onCreate(HSSFShape shape) { EscherContainerRecord spgrContainer = _boundAggregate.getEscherContainer().getChildContainers().get(0); EscherContainerRecord spContainer = shape.getEscherContainer(); int shapeId = newShapeId(); shape.setShapeId(shapeId); spgrContainer.addChildRecord(spContainer); shape.afterInsert(this); setFlipFlags(shape); }
void afterCreate() { DrawingManager2 drawingManager = _sheet.getWorkbook().getWorkbook().getDrawingManager(); short dgId = drawingManager.findNewDrawingGroupId(); _boundAggregate.setDgId(dgId); _boundAggregate.setMainSpRecordId(newShapeId()); drawingManager.incrementDrawingsSaved(); }
private void onCreate(HSSFShape shape){ if(getPatriarch() != null){ EscherContainerRecord spContainer = shape.getEscherContainer(); int shapeId = getPatriarch().newShapeId(); shape.setShapeId(shapeId); getEscherContainer().addChildRecord(spContainer); shape.afterInsert(getPatriarch()); EscherSpRecord sp; if (shape instanceof HSSFShapeGroup){ sp = shape.getEscherContainer().getChildContainers().get(0).getChildById(EscherSpRecord.RECORD_ID); } else { sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID); } sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_CHILD); } }
private void onCreate(HSSFShape shape) { EscherContainerRecord spgrContainer = _boundAggregate.getEscherContainer().getChildContainers().get(0); EscherContainerRecord spContainer = shape.getEscherContainer(); int shapeId = newShapeId(); shape.setShapeId(shapeId); spgrContainer.addChildRecord(spContainer); shape.afterInsert(this); setFlipFlags(shape); }
private void onCreate(HSSFShape shape) { EscherContainerRecord spgrContainer = _boundAggregate.getEscherContainer().getChildContainers().get(0); EscherContainerRecord spContainer = shape.getEscherContainer(); int shapeId = newShapeId(); shape.setShapeId(shapeId); spgrContainer.addChildRecord(spContainer); shape.afterInsert(this); setFlipFlags(shape); }
void afterCreate() { DrawingManager2 drawingManager = _sheet.getWorkbook().getWorkbook().getDrawingManager(); short dgId = drawingManager.findNewDrawingGroupId(); _boundAggregate.setDgId(dgId); _boundAggregate.setMainSpRecordId(newShapeId()); drawingManager.incrementDrawingsSaved(); }
void afterCreate() { DrawingManager2 drawingManager = _sheet.getWorkbook().getWorkbook().getDrawingManager(); short dgId = drawingManager.findNewDrawingGroupId(); _boundAggregate.setDgId(dgId); _boundAggregate.setMainSpRecordId(newShapeId()); drawingManager.incrementDrawingsSaved(); }
private void onCreate(HSSFShape shape){ if(getPatriarch() != null){ EscherContainerRecord spContainer = shape.getEscherContainer(); int shapeId = getPatriarch().newShapeId(); shape.setShapeId(shapeId); getEscherContainer().addChildRecord(spContainer); shape.afterInsert(getPatriarch()); EscherSpRecord sp; if (shape instanceof HSSFShapeGroup){ sp = shape.getEscherContainer().getChildContainers().get(0).getChildById(EscherSpRecord.RECORD_ID); } else { sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID); } sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_CHILD); } }
private void onCreate(HSSFShape shape){ if(getPatriarch() != null){ EscherContainerRecord spContainer = shape.getEscherContainer(); int shapeId = getPatriarch().newShapeId(); shape.setShapeId(shapeId); getEscherContainer().addChildRecord(spContainer); shape.afterInsert(getPatriarch()); EscherSpRecord sp; if (shape instanceof HSSFShapeGroup){ sp = shape.getEscherContainer().getChildContainers().get(0).getChildById(EscherSpRecord.RECORD_ID); } else { sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID); } sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_CHILD); } }