first commit
This commit is contained in:
27
hrmsEjb/jxl/write/biff/DefaultRowHeightRecord.java
Normal file
27
hrmsEjb/jxl/write/biff/DefaultRowHeightRecord.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
import jxl.biff.Type;
|
||||
import jxl.biff.WritableRecordData;
|
||||
|
||||
class DefaultRowHeightRecord extends WritableRecordData {
|
||||
private byte[] data;
|
||||
|
||||
private int rowHeight;
|
||||
|
||||
private boolean changed;
|
||||
|
||||
public DefaultRowHeightRecord(int h, boolean ch) {
|
||||
super(Type.DEFAULTROWHEIGHT);
|
||||
this.data = new byte[4];
|
||||
this.rowHeight = h;
|
||||
this.changed = ch;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
if (this.changed)
|
||||
this.data[0] = (byte)(this.data[0] | 0x1);
|
||||
IntegerHelper.getTwoBytes(this.rowHeight, this.data, 2);
|
||||
return this.data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user