/** * Accessor for the drawing * * @param i the index number of the drawing to return * @return the drawing */ public BlipStoreEntry getDrawing(int i) { EscherRecord[] children = getChildren(); BlipStoreEntry bse = (BlipStoreEntry) children[i]; return bse; } }
/** * Constructor used to instantiate this object when reading from an * escher stream * * @param erd the escher data */ public BStoreContainer(EscherRecordData erd) { super(erd); numBlips = getInstance(); }
/** * Sets the number of drawings in this container * * @param count the number of blips */ void setNumBlips(int count) { numBlips = count; setInstance(numBlips); }
BStoreContainer bstoreCont = new BStoreContainer(); BlipStoreEntry bse = new BlipStoreEntry(d); bstoreCont.add(bse); drawingsAdded++; bstoreCont.setNumBlips(drawingsAdded); dggContainer.add(bstoreCont); BStoreContainer bstoreCont = new BStoreContainer(); bstoreCont.setNumBlips(numBlips); EscherRecord[] children = readBStoreContainer.getChildren(); for (int i = 0; i < children.length; i++) bstoreCont.add(bse); bstoreCont.add(bse);
numBlips = getBStoreContainer().getNumBlips(); Dgg dgg = (Dgg) escherData.getChildren()[0]; drawingGroupId = dgg.getCluster(1).drawingGroupId - numBlips - 1; EscherRecord[] children = getBStoreContainer().getChildren(); BlipStoreEntry bse = (BlipStoreEntry) children[d.getBlipId() - 1]; getBStoreContainer().remove(bse);
/** * Gets the drawing data for the given blip id. Called by the Drawing * object * * @param blipId the blipId * @return the drawing data */ byte[] getImageData(int blipId) { numBlips = getBStoreContainer().getNumBlips(); Assert.verify(blipId <= numBlips); Assert.verify(origin == Origin.READ || origin == Origin.READ_WRITE); // Get the blip EscherRecord[] children = getBStoreContainer().getChildren(); BlipStoreEntry bse = (BlipStoreEntry) children[blipId - 1]; return bse.getImageData(); }
numBlips = bsc != null ? bsc.getNumBlips() : 0; Assert.verify(numBlips == bsc.getNumBlips());
newRecord = new BStoreContainer(erd);
BStoreContainer bstoreCont = new BStoreContainer(); BlipStoreEntry bse = new BlipStoreEntry(d); bstoreCont.add(bse); drawingsAdded++; bstoreCont.setNumBlips(drawingsAdded); dggContainer.add(bstoreCont); BStoreContainer bstoreCont = new BStoreContainer(); bstoreCont.setNumBlips(numBlips); EscherRecord[] children = readBStoreContainer.getChildren(); for (int i = 0; i < children.length; i++) bstoreCont.add(bse); bstoreCont.add(bse);
numBlips = getBStoreContainer().getNumBlips(); Dgg dgg = (Dgg) escherData.getChildren()[0]; drawingGroupId = dgg.getCluster(1).drawingGroupId - numBlips - 1; EscherRecord[] children = getBStoreContainer().getChildren(); BlipStoreEntry bse = (BlipStoreEntry) children[d.getBlipId() - 1]; getBStoreContainer().remove(bse);
/** * Gets the drawing data for the given blip id. Called by the Drawing * object * * @param blipId the blipId * @return the drawing data */ byte[] getImageData(int blipId) { numBlips = getBStoreContainer().getNumBlips(); Assert.verify(blipId <= numBlips); Assert.verify(origin == Origin.READ || origin == Origin.READ_WRITE); // Get the blip EscherRecord[] children = getBStoreContainer().getChildren(); BlipStoreEntry bse = (BlipStoreEntry) children[blipId - 1]; return bse.getImageData(); }
numBlips = bsc != null ? bsc.getNumBlips() : 0; Assert.verify(numBlips == bsc.getNumBlips());
newRecord = new BStoreContainer(erd);
/** * Constructor used to instantiate this object when reading from an * escher stream * * @param erd the escher data */ public BStoreContainer(EscherRecordData erd) { super(erd); numBlips = getInstance(); }
/** * Sets the number of drawings in this container * * @param count the number of blips */ void setNumBlips(int count) { numBlips = count; setInstance(numBlips); }
/** * Accessor for the drawing * * @param i the index number of the drawing to return * @return the drawing */ public BlipStoreEntry getDrawing(int i) { EscherRecord[] children = getChildren(); BlipStoreEntry bse = (BlipStoreEntry) children[i]; return bse; } }