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

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

public class HorizontalAlignment
extends Object

Horizontal 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: HorizontalAlignment.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marc Johnson (marc_johnson27591@hotmail.com)

Constructor Summary
HorizontalAlignment(String value)
          Create an HorizontalAlignment object
 
Method Summary
 boolean isCenter()
           
 boolean isCenterAcrossSelection()
           
 boolean isFill()
           
 boolean isGeneral()
           
 boolean isJustify()
           
 boolean isLeft()
           
 boolean isRight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HorizontalAlignment

public HorizontalAlignment(String value)
                    throws IOException
Create an HorizontalAlignment object

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

isGeneral

public boolean isGeneral()
Returns:
true if general bit is set

isLeft

public boolean isLeft()
Returns:
true if left bit is set

isRight

public boolean isRight()
Returns:
true if right bit is set

isCenter

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

isFill

public boolean isFill()
Returns:
true if fill bit is set

isJustify

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

isCenterAcrossSelection

public boolean isCenterAcrossSelection()
Returns:
true if center across selection bit is set


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