first commit
This commit is contained in:
20
hrmsEjb/jxl/write/biff/MarginRecord.java
Normal file
20
hrmsEjb/jxl/write/biff/MarginRecord.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.DoubleHelper;
|
||||
import jxl.biff.Type;
|
||||
import jxl.biff.WritableRecordData;
|
||||
|
||||
abstract class MarginRecord extends WritableRecordData {
|
||||
private double margin;
|
||||
|
||||
public MarginRecord(Type t, double v) {
|
||||
super(t);
|
||||
this.margin = v;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
byte[] data = new byte[8];
|
||||
DoubleHelper.getIEEEBytes(this.margin, data, 0);
|
||||
return data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user