FileDocCategorySizeDatePackage
BorderCode.javaAPI DocApache Poi 3.0.12542Mon Jan 01 18:55:30 GMT 2007org.apache.poi.hwpf.usermodel

BorderCode

public class BorderCode extends Object implements Cloneable

Fields Summary
public static final int
SIZE
private short
_info
private static final BitField
_dptLineWidth
private static final BitField
_brcType
private short
_info2
private static final BitField
_ico
private static final BitField
_dptDpace
private static final BitField
_fShadow
private static final BitField
_fFrame
Constructors Summary
public BorderCode()


   
  
  
public BorderCode(byte[] buf, int offset)

    _info = LittleEndian.getShort(buf, offset);
    _info2 = LittleEndian.getShort(buf, offset + LittleEndian.SHORT_SIZE);
  
Methods Summary
public java.lang.Objectclone()

    return super.clone();
  
public booleanequals(java.lang.Object o)

    BorderCode brc = (BorderCode)o;
    return _info == brc._info && _info2 == brc._info2;
  
public booleanisEmpty()

    return _info == 0 && _info2 == 0;
  
public voidserialize(byte[] buf, int offset)

    LittleEndian.putShort(buf, offset, _info);
    LittleEndian.putShort(buf, offset + LittleEndian.SHORT_SIZE, _info2);
  
public inttoInt()

    byte[] buf = new byte[4];
    serialize(buf, 0);
    return LittleEndian.getInt(buf);