/** * Get the Author of this comment */ public String getAuthor() { return _comment2000.getAuthor(); }
/** * Get the Author's Initials of this comment */ public String getAuthorInitials() { return _comment2000.getAuthorInitials(); } /**
/** * Get the text of this comment */ public String getText() { return _comment2000.getText(); } /**
/** * Set things up, and find our more interesting children */ protected Comment2000(byte[] source, int start, int len) { // Grab the header _header = new byte[8]; System.arraycopy(source,start,_header,0,8); // Find our children _children = Record.findChildRecords(source,start+8,len-8); findInterestingChildren(); }
/** * Write the contents of the record back, so it can be written * to disk */ public void writeOut(OutputStream out) throws IOException { writeOut(_header[0],_header[1],_type,_children,out); }
/** * Set the Author of this comment */ public void setAuthor(String author) { _comment2000.setAuthor(author); }
/** * Set the Author's Initials of this comment */ public void setAuthorInitials(String initials) { _comment2000.setAuthorInitials(initials); }
/** * Set the text of this comment */ public void setText(String text) { _comment2000.setText(text); }
@Override public void setDate(Date date) { _comment2000.getComment2000Atom().setDate(date); }
/** * Set things up, and find our more interesting children */ protected Comment2000(byte[] source, int start, int len) { // Grab the header _header = new byte[8]; System.arraycopy(source,start,_header,0,8); // Find our children _children = Record.findChildRecords(source,start+8,len-8); findInterestingChildren(); }
/** * Write the contents of the record back, so it can be written * to disk */ public void writeOut(OutputStream out) throws IOException { writeOut(_header[0],_header[1],_type,_children,out); }
/** * Set the Author of this comment */ public void setAuthor(String author) { _comment2000.setAuthor(author); }
/** * Set the Author's Initials of this comment */ public void setAuthorInitials(String initials) { _comment2000.setAuthorInitials(initials); }
/** * Set the text of this comment */ public void setText(String text) { _comment2000.setText(text); } }
@Override public Date getDate() { return _comment2000.getComment2000Atom().getDate(); }
/** * Create a new Comment2000, with blank fields */ public Comment2000() { _header = new byte[8]; _children = new Record[4]; // Setup our header block _header[0] = 0x0f; // We are a container record LittleEndian.putShort(_header, 2, (short)_type); // Setup our child records CString csa = new CString(); CString csb = new CString(); CString csc = new CString(); csa.setOptions(0x00); csb.setOptions(0x10); csc.setOptions(0x20); _children[0] = csa; _children[1] = csb; _children[2] = csc; _children[3] = new Comment2000Atom(); findInterestingChildren(); }
/** * Get the Author's Initials of this comment */ public String getAuthorInitials() { return _comment2000.getAuthorInitials(); }
/** * Get the text of this comment */ public String getText() { return _comment2000.getText(); }
/** * Get the Author of this comment */ public String getAuthor() { return _comment2000.getAuthor(); } /**
@Override public void setOffset(Point2D offset) { final int x = Units.pointsToMaster(offset.getX()); final int y = Units.pointsToMaster(offset.getY()); _comment2000.getComment2000Atom().setXOffset(x); _comment2000.getComment2000Atom().setYOffset(y); } }