org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements
Class VerticalAlignment

java.lang.Object
  extended by org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.VerticalAlignment

public class VerticalAlignment
extends Object

Vertical alignment is written as an integer, and each bit in the integer specifies a particular boolean attribute. This class deals with all that information in an easily digested form.

Version:
CVS $Id: VerticalAlignment.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marc Johnson (marc_johnson27591@hotmail.com)

Constructor Summary
VerticalAlignment(String value)
          Create a VerticalAlignment object
 
Method Summary
 short getCode()
           
 boolean isBottom()
           
 boolean isCenter()
           
 boolean isJustify()
           
 boolean isTop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalAlignment

public VerticalAlignment(String value)
                  throws IOException
Create a VerticalAlignment object

Parameters:
value - the string containing the vertical alignment data
Throws:
IOException - if the data is malformed
Method Detail

isTop

public boolean isTop()
Returns:
true if top bit is set

isBottom

public boolean isBottom()
Returns:
true if bottom bit is set

isCenter

public boolean isCenter()
Returns:
true if center bit is set

isJustify

public boolean isJustify()
Returns:
true if justify bit is set

getCode

public short getCode()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.