Package com.itextpdf.layout.properties
Class InlineVerticalAlignment
- java.lang.Object
-
- com.itextpdf.layout.properties.InlineVerticalAlignment
-
public class InlineVerticalAlignment extends java.lang.ObjectA property corresponding to the css vertical-align property and used to set vertical alignment on inline blocks, it specifies the type of alignment and where needed a numerical value to complete it.
-
-
Field Summary
Fields Modifier and Type Field Description private InlineVerticalAlignmentTypetypeprivate floatvalue
-
Constructor Summary
Constructors Constructor Description InlineVerticalAlignment()Creates a default InlineVerticalAlignment, it gets the typeInlineVerticalAlignmentType.BASELINE.InlineVerticalAlignment(InlineVerticalAlignmentType type)Creates an InlineVerticalAlignment with a specified type.InlineVerticalAlignment(InlineVerticalAlignmentType type, float value)Creates an InlineVerticalAlignment with a specified type and a value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InlineVerticalAlignmentTypegetType()Gets the type of InlineVerticalAlignment.floatgetValue()Gets the value.voidsetType(InlineVerticalAlignmentType type)Sets the typeInlineVerticalAlignmentType.voidsetValue(float value)Sets the value.
-
-
-
Field Detail
-
type
private InlineVerticalAlignmentType type
-
value
private float value
-
-
Constructor Detail
-
InlineVerticalAlignment
public InlineVerticalAlignment()
Creates a default InlineVerticalAlignment, it gets the typeInlineVerticalAlignmentType.BASELINE.
-
InlineVerticalAlignment
public InlineVerticalAlignment(InlineVerticalAlignmentType type)
Creates an InlineVerticalAlignment with a specified type.- Parameters:
type-InlineVerticalAlignmentType
-
InlineVerticalAlignment
public InlineVerticalAlignment(InlineVerticalAlignmentType type, float value)
Creates an InlineVerticalAlignment with a specified type and a value. This will throw aPdfExceptionwhen used with a type that does not require a value.- Parameters:
type-InlineVerticalAlignmentTypevalue- In the case ofInlineVerticalAlignmentType.FIXEDa lenth in pts, in case ofInlineVerticalAlignmentType.FRACTIONa multiplier value.
-
-
Method Detail
-
getType
public InlineVerticalAlignmentType getType()
Gets the type of InlineVerticalAlignment.- Returns:
- the type
InlineVerticalAlignmentType
-
setType
public void setType(InlineVerticalAlignmentType type)
Sets the typeInlineVerticalAlignmentType.- Parameters:
type-InlineVerticalAlignmentType
-
getValue
public float getValue()
Gets the value.- Returns:
- value In the case of
InlineVerticalAlignmentType.FIXEDa lenth in pts, in case ofInlineVerticalAlignmentType.FRACTIONa multiplier value.
-
setValue
public void setValue(float value)
Sets the value.- Parameters:
value- In the case ofInlineVerticalAlignmentType.FIXEDa lenth in pts, in case ofInlineVerticalAlignmentType.FRACTIONa multiplier value.
-
-