package jxl.write.biff;

import jxl.biff.IntegerHelper;
import jxl.biff.Type;
import jxl.biff.WritableRecordData;

/* JADX INFO: loaded from: classes.dex */
public class SelectionRecord extends WritableRecordData {
    private int column;
    private PaneType pane;
    private int row;
    public static final PaneType lowerRight = new PaneType(0);
    public static final PaneType upperRight = new PaneType(1);
    public static final PaneType lowerLeft = new PaneType(2);
    public static final PaneType upperLeft = new PaneType(3);

    public static class PaneType {
        public int val;

        public PaneType(int i2) {
            this.val = i2;
        }
    }

    public SelectionRecord(PaneType paneType, int i2, int i3) {
        super(Type.SELECTION);
        this.column = i2;
        this.row = i3;
        this.pane = paneType;
    }

    @Override // jxl.biff.WritableRecordData
    public byte[] getData() {
        byte[] bArr = new byte[15];
        bArr[0] = (byte) this.pane.val;
        IntegerHelper.getTwoBytes(this.row, bArr, 1);
        IntegerHelper.getTwoBytes(this.column, bArr, 3);
        bArr[7] = 1;
        IntegerHelper.getTwoBytes(this.row, bArr, 9);
        IntegerHelper.getTwoBytes(this.row, bArr, 11);
        int i2 = this.column;
        bArr[13] = (byte) i2;
        bArr[14] = (byte) i2;
        return bArr;
    }
}
