org.apache.batik.gvt.flow
Class RegionInfo

java.lang.Object
  extended byorg.apache.batik.gvt.flow.RegionInfo

public class RegionInfo
extends java.lang.Object

This class holds the neccessary information to render a that is defined within the element. Namely it holds the bounds of the region and the desired vertical alignment.


Constructor Summary
RegionInfo(java.awt.Shape s, float verticalAlignment)
           
 
Method Summary
 java.awt.Shape getShape()
           
 float getVerticalAlignment()
          Gets the vertical alignment for this flow region.
 void setShape(java.awt.Shape s)
           
 void setVerticalAlignment(float verticalAlignment)
          Sets the alignment position of the text within this flow region.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionInfo

public RegionInfo(java.awt.Shape s,
                  float verticalAlignment)
Method Detail

getShape

public java.awt.Shape getShape()

setShape

public void setShape(java.awt.Shape s)

getVerticalAlignment

public float getVerticalAlignment()
Gets the vertical alignment for this flow region.

Returns:
the vertical alignment for this flow region. It will be 0.0 for top, 0.5 for middle and 1.0 for bottom.

setVerticalAlignment

public void setVerticalAlignment(float verticalAlignment)
Sets the alignment position of the text within this flow region. The value must be 0.0 for top, 0.5 for middle and 1.0 for bottom.

Parameters:
verticalAlignment - the vertical alignment of the text.


Copyright ? 2005 Apache Software Foundation. All Rights Reserved.