FileDocCategorySizeDatePackage
ParagraphHeight.javaAPI DocApache Poi 3.0.12744Mon Jan 01 18:55:34 GMT 2007org.apache.poi.hwpf.model

ParagraphHeight

public class ParagraphHeight extends Object

Fields Summary
private short
infoField
private BitField
fSpare
private BitField
fUnk
private BitField
fDiffLines
private BitField
clMac
private short
reserved
private int
dxaCol
private int
dymLineOrHeight
Constructors Summary
public ParagraphHeight(byte[] buf, int offset)


      
  
    infoField = LittleEndian.getShort(buf, offset);
    offset += LittleEndian.SHORT_SIZE;
    reserved = LittleEndian.getShort(buf, offset);
    offset += LittleEndian.SHORT_SIZE;
    dxaCol = LittleEndian.getInt(buf, offset);
    offset += LittleEndian.INT_SIZE;
    dymLineOrHeight = LittleEndian.getInt(buf, offset);
  
public ParagraphHeight()


  
Methods Summary
public booleanequals(java.lang.Object o)

    ParagraphHeight ph = (ParagraphHeight)o;

    return infoField == ph.infoField && reserved == ph.reserved &&
           dxaCol == ph.dxaCol && dymLineOrHeight == ph.dymLineOrHeight;
  
protected byte[]toByteArray()

    byte[] buf = new byte[12];
    int offset = 0;
    LittleEndian.putShort(buf, offset, infoField);
    offset += LittleEndian.SHORT_SIZE;
    LittleEndian.putShort(buf, offset, reserved);
    offset += LittleEndian.SHORT_SIZE;
    LittleEndian.putInt(buf, offset, dxaCol);
    offset += LittleEndian.INT_SIZE;
    LittleEndian.putInt(buf, offset, dymLineOrHeight);

    return buf;
  
public voidwrite(java.io.OutputStream out)

    out.write(toByteArray());