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

LineSpacingDescriptor

public class LineSpacingDescriptor extends Object implements Cloneable
This class is used to determine line spacing for a paragraph.
author
Ryan Ackley

Fields Summary
short
_dyaLine
short
_fMultiLinespace
Constructors Summary
public LineSpacingDescriptor()

  
public LineSpacingDescriptor(byte[] buf, int offset)

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

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

    LineSpacingDescriptor lspd = (LineSpacingDescriptor)o;

    return _dyaLine == lspd._dyaLine && _fMultiLinespace == lspd._fMultiLinespace;
  
public voidserialize(byte[] buf, int offset)

    LittleEndian.putShort(buf, offset, _dyaLine);
    LittleEndian.putShort(buf, offset + LittleEndian.SHORT_SIZE, _fMultiLinespace);
  
public voidsetDyaLine(short dyaLine)

    _dyaLine = dyaLine;
  
public voidsetMultiLinespace(short fMultiLinespace)

    _fMultiLinespace = fMultiLinespace;
  
public inttoInt()

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