first commit
This commit is contained in:
57
hrmsEjb/jxl/write/biff/WritableFontRecord.java
Normal file
57
hrmsEjb/jxl/write/biff/WritableFontRecord.java
Normal file
@@ -0,0 +1,57 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.FontRecord;
|
||||
import jxl.format.Font;
|
||||
import jxl.write.WriteException;
|
||||
|
||||
public class WritableFontRecord extends FontRecord {
|
||||
protected WritableFontRecord(String fn, int ps, int bold, boolean it, int us, int ci, int ss) {
|
||||
super(fn, ps, bold, it, us, ci, ss);
|
||||
}
|
||||
|
||||
protected WritableFontRecord(Font f) {
|
||||
super(f);
|
||||
}
|
||||
|
||||
protected void setPointSize(int pointSize) throws WriteException {
|
||||
if (isInitialized())
|
||||
throw new JxlWriteException(JxlWriteException.formatInitialized);
|
||||
setFontPointSize(pointSize);
|
||||
}
|
||||
|
||||
protected void setBoldStyle(int boldStyle) throws WriteException {
|
||||
if (isInitialized())
|
||||
throw new JxlWriteException(JxlWriteException.formatInitialized);
|
||||
setFontBoldStyle(boldStyle);
|
||||
}
|
||||
|
||||
protected void setItalic(boolean italic) throws WriteException {
|
||||
if (isInitialized())
|
||||
throw new JxlWriteException(JxlWriteException.formatInitialized);
|
||||
setFontItalic(italic);
|
||||
}
|
||||
|
||||
protected void setUnderlineStyle(int us) throws WriteException {
|
||||
if (isInitialized())
|
||||
throw new JxlWriteException(JxlWriteException.formatInitialized);
|
||||
setFontUnderlineStyle(us);
|
||||
}
|
||||
|
||||
protected void setColour(int colour) throws WriteException {
|
||||
if (isInitialized())
|
||||
throw new JxlWriteException(JxlWriteException.formatInitialized);
|
||||
setFontColour(colour);
|
||||
}
|
||||
|
||||
protected void setScriptStyle(int scriptStyle) throws WriteException {
|
||||
if (isInitialized())
|
||||
throw new JxlWriteException(JxlWriteException.formatInitialized);
|
||||
setFontScriptStyle(scriptStyle);
|
||||
}
|
||||
|
||||
protected void setStruckout(boolean os) throws WriteException {
|
||||
if (isInitialized())
|
||||
throw new JxlWriteException(JxlWriteException.formatInitialized);
|
||||
setFontStruckout(os);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user