Class RegionInfo
java.lang.Object
org.apache.batik.gvt.flow.RegionInfo
This class holds the neccessary information to render a
<batik:flowRegion> that is defined within the <batik:flowRoot>
element. Namely it holds the bounds of the region and the desired
vertical alignment.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ShapeThe shape that defines the region.private floatThe alignment proportion. -
Constructor Summary
ConstructorsConstructorDescriptionRegionInfo(Shape s, float verticalAlignment) Creates a new RegionInfo with the given shape and alignment. -
Method Summary
Modifier and TypeMethodDescriptiongetShape()Returns the flow region shape.floatGets the vertical alignment for this flow region.voidSets the flow region shape.voidsetVerticalAlignment(float verticalAlignment) Sets the alignment position of the text within this flow region.
-
Field Details
-
shape
The shape that defines the region. -
verticalAlignment
private float verticalAlignmentThe alignment proportion.
-
-
Constructor Details
-
RegionInfo
Creates a new RegionInfo with the given shape and alignment.
-
-
Method Details
-
getShape
Returns the flow region shape. -
setShape
Sets the flow region shape. -
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.
-