BorderCodepublic 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.Object | clone()
return super.clone();
| public boolean | equals(java.lang.Object o)
BorderCode brc = (BorderCode)o;
return _info == brc._info && _info2 == brc._info2;
| public boolean | isEmpty()
return _info == 0 && _info2 == 0;
| public void | serialize(byte[] buf, int offset)
LittleEndian.putShort(buf, offset, _info);
LittleEndian.putShort(buf, offset + LittleEndian.SHORT_SIZE, _info2);
| public int | toInt()
byte[] buf = new byte[4];
serialize(buf, 0);
return LittleEndian.getInt(buf);
|
|