@Override void setShapeId(int shapeId) { if(shapeId > 65535) { throw new IllegalArgumentException("Cannot add more than " + 65535 + " shapes"); } super.setShapeId(shapeId); CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0); cod.setObjectId(shapeId); _note.setShapeId(shapeId); }
@Override void setShapeId(int shapeId) { if(shapeId > 65535) { throw new IllegalArgumentException("Cannot add more than " + 65535 + " shapes"); } super.setShapeId(shapeId); CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0); cod.setObjectId(shapeId); _note.setShapeId(shapeId); }
@Override void setShapeId(int shapeId) { super.setShapeId(shapeId); CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0); cod.setObjectId((short) (shapeId % 1024)); _note.setShapeId(shapeId % 1024); }
/** * Creates the low level <code>NoteRecord</code> * which holds the comment attributes. */ private NoteRecord createNoteRecord( HSSFComment shape, int shapeId ) { NoteRecord note = new NoteRecord(); note.setColumn(shape.getColumn()); note.setRow(shape.getRow()); note.setFlags(shape.isVisible() ? NoteRecord.NOTE_VISIBLE : NoteRecord.NOTE_HIDDEN); note.setShapeId(shapeId); note.setAuthor(shape.getAuthor() == null ? "" : shape.getAuthor()); return note; }
/** * Creates the low level <code>NoteRecord</code> * which holds the comment attributes. */ private NoteRecord createNoteRecord( HSSFComment shape, int shapeId ) { NoteRecord note = new NoteRecord(); note.setColumn(shape.getColumn()); note.setRow(shape.getRow()); note.setFlags(shape.isVisible() ? NoteRecord.NOTE_VISIBLE : NoteRecord.NOTE_HIDDEN); note.setShapeId(shapeId); note.setAuthor(shape.getAuthor() == null ? "" : shape.getAuthor()); return note; }