Uses of Class
com.itextpdf.layout.properties.UnitValue
-
-
Uses of UnitValue in com.itextpdf.forms.form.renderer
Methods in com.itextpdf.forms.form.renderer that return UnitValue Modifier and Type Method Description private UnitValue
SelectFieldComboBoxRenderer. getFontSize()
Methods in com.itextpdf.forms.form.renderer with parameters of type UnitValue Modifier and Type Method Description protected Rectangle
CheckBoxRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Applies given paddings to the given rectangle. -
Uses of UnitValue in com.itextpdf.layout
Methods in com.itextpdf.layout that return UnitValue Modifier and Type Method Description UnitValue
Style. getHeight()
Gets the height property of the element.UnitValue
Style. getMarginBottom()
Gets the current bottom margin width of the element.UnitValue
Style. getMarginLeft()
Gets the current left margin width of the element.UnitValue
Style. getMarginRight()
Gets the current right margin width of the element.UnitValue
Style. getMarginTop()
Gets the current top margin width of the element.UnitValue
Style. getPaddingBottom()
Gets the current bottom padding width of the element.UnitValue
Style. getPaddingLeft()
Gets the current left padding width of the element.UnitValue
Style. getPaddingRight()
Gets the current right padding width of the element.UnitValue
Style. getPaddingTop()
Gets the current top padding width of the element.UnitValue
Style. getWidth()
Gets the width property of the element.Methods in com.itextpdf.layout with parameters of type UnitValue Modifier and Type Method Description T
ElementPropertyContainer. setFixedPosition(float left, float bottom, UnitValue width)
Sets values for an absolute repositioning of the Element.T
ElementPropertyContainer. setFixedPosition(int pageNumber, float left, float bottom, UnitValue width)
Sets values for a absolute repositioning of the Element.Style
Style. setHeight(UnitValue height)
Sets the height property of the element with aUnitValue
.Style
Style. setMaxHeight(UnitValue maxHeight)
Sets the max-height property of the element with aUnitValue
.Style
Style. setMaxWidth(UnitValue maxWidth)
Sets the max-width property of the element with aUnitValue
.Style
Style. setMinHeight(UnitValue minHeight)
Sets the min-height property of the element with aUnitValue
.Style
Style. setMinWidth(UnitValue minWidth)
Sets the min-width property of the element with aUnitValue
.Style
Style. setWidth(UnitValue width)
Sets the width property of the element with aUnitValue
. -
Uses of UnitValue in com.itextpdf.layout.element
Fields in com.itextpdf.layout.element declared as UnitValue Modifier and Type Field Description private UnitValue[]
Table. columnWidths
Methods in com.itextpdf.layout.element that return UnitValue Modifier and Type Method Description UnitValue
Table. getColumnWidth(int column)
Returns the column width for the specified column.UnitValue
BlockElement. getHeight()
Gets the height property of a block element.UnitValue
BlockElement. getMarginBottom()
Gets the current bottom margin width of the element.UnitValue
Image. getMarginBottom()
Gets the current bottom margin width of the image.UnitValue
BlockElement. getMarginLeft()
Gets the current left margin width of the element.UnitValue
Image. getMarginLeft()
Gets the current left margin width of the element.UnitValue
BlockElement. getMarginRight()
Gets the current right margin width of the element.UnitValue
Image. getMarginRight()
Gets the current right margin width of the image.UnitValue
BlockElement. getMarginTop()
Gets the current top margin width of the element.UnitValue
Image. getMarginTop()
Gets the current top margin width of the image.UnitValue
BlockElement. getPaddingBottom()
Gets the current bottom padding width of the element.UnitValue
Image. getPaddingBottom()
Gets the current bottom padding width of the image.UnitValue
BlockElement. getPaddingLeft()
Gets the current left padding width of the element.UnitValue
Image. getPaddingLeft()
Gets the current left padding width of the image.UnitValue
BlockElement. getPaddingRight()
Gets the current right padding width of the element.UnitValue
Image. getPaddingRight()
Gets the current right padding width of the image.UnitValue
BlockElement. getPaddingTop()
Gets the current top padding width of the element.UnitValue
Image. getPaddingTop()
Gets the current top padding width of the image.UnitValue
BlockElement. getWidth()
Gets the width property of a block element.UnitValue
Image. getWidth()
Gets the width property of the image.private static UnitValue[]
Table. normalizeColumnWidths(float[] pointColumnWidths)
private static UnitValue[]
Table. normalizeColumnWidths(int numberOfColumns)
private static UnitValue[]
Table. normalizeColumnWidths(UnitValue[] unitColumnWidths)
Methods in com.itextpdf.layout.element with parameters of type UnitValue Modifier and Type Method Description private static UnitValue[]
Table. normalizeColumnWidths(UnitValue[] unitColumnWidths)
T
BlockElement. setHeight(UnitValue height)
Sets the height property of a block element with aUnitValue
.Image
Image. setHeight(UnitValue height)
Sets the height property of the image with aUnitValue
.T
BlockElement. setMaxHeight(UnitValue maxHeight)
Sets the max-height property of a block element with aUnitValue
.Image
Image. setMaxHeight(UnitValue maxHeight)
Sets the max-height property of the image with aUnitValue
.T
BlockElement. setMaxWidth(UnitValue maxWidth)
Sets the max-width property of a block element with aUnitValue
.Image
Image. setMaxWidth(UnitValue maxWidth)
Sets the max-width property of the image with aUnitValue
.T
BlockElement. setMinHeight(UnitValue minHeight)
Sets the min-height property of a block element with aUnitValue
.Image
Image. setMinHeight(UnitValue minHeight)
Sets the min-height property of the image with aUnitValue
.T
BlockElement. setMinWidth(UnitValue minWidth)
Sets the min-width property of a block element with aUnitValue
.Image
Image. setMinWidth(UnitValue minWidth)
Sets the min-width property of the image with aUnitValue
.T
BlockElement. setWidth(UnitValue width)
Sets the width property of a block element with aUnitValue
.Image
Image. setWidth(UnitValue width)
Sets the width property of the image with aUnitValue
.Constructors in com.itextpdf.layout.element with parameters of type UnitValue Constructor Description Table(UnitValue[] columnWidths)
Constructs aTable
with the preferable column widths.Table(UnitValue[] columnWidths, boolean largeTable)
Constructs aTable
with the preferable column widths. -
Uses of UnitValue in com.itextpdf.layout.properties
Fields in com.itextpdf.layout.properties declared as UnitValue Modifier and Type Field Description private UnitValue
BackgroundSize. backgroundHeightSize
Height size for this image.private UnitValue
BackgroundSize. backgroundWidthSize
Width size for this image.private UnitValue
BorderRadius. horizontalRadius
The horizontal semi-major axis of the ellipse to use for the border in that corner.private UnitValue
Transform.SingleTransform. tx
private UnitValue
Transform.SingleTransform. ty
private UnitValue
BorderRadius. verticalRadius
The vertical semi-major axis of the ellipse to use for the border in that corner.private UnitValue
BackgroundPosition. xShift
private UnitValue
BackgroundPosition. yShift
Methods in com.itextpdf.layout.properties that return UnitValue Modifier and Type Method Description static UnitValue[]
UnitValue. createPercentArray(float[] values)
Creates an array of UnitValue PERCENT objects with specified values.static UnitValue[]
UnitValue. createPercentArray(int size)
Creates an array of UnitValue PERCENT objects with equal values.static UnitValue
UnitValue. createPercentValue(float value)
Creates a UnitValue PERCENT object with a specified value.static UnitValue[]
UnitValue. createPointArray(float[] values)
Creates an array of UnitValue POINT objects with specified values.static UnitValue
UnitValue. createPointValue(float value)
Creates a UnitValue POINT object with a specified value.UnitValue
BackgroundSize. getBackgroundHeightSize()
Gets the background height property of the image.UnitValue
BackgroundSize. getBackgroundWidthSize()
Gets the background width property of the image.UnitValue
BorderRadius. getHorizontalRadius()
Gets the horizontal radius of theborder's
corner.UnitValue[]
Transform.SingleTransform. getUnitValues()
Gets an array of values corresponding to translation.UnitValue
BorderRadius. getVerticalRadius()
Gets the vertical radius of theborder's
corner.UnitValue
BackgroundPosition. getXShift()
Gets horizontal shift.UnitValue
BackgroundPosition. getYShift()
Gets vertical shift.Methods in com.itextpdf.layout.properties with parameters of type UnitValue Modifier and Type Method Description void
BackgroundPosition. calculatePositionValues(float fullWidth, float fullHeight, UnitValue outXValue, UnitValue outYValue)
Converts all percentage and enum values to point equivalent.private static float
BackgroundPosition. calculateValue(UnitValue value, float fullValue)
private int
BackgroundPosition. parsePositionXToUnitValueAndReturnMultiplier(UnitValue outValue)
Parses positionX toUnitValue
.private int
BackgroundPosition. parsePositionYToUnitValueAndReturnMultiplier(UnitValue outValue)
Parses positionY toUnitValue
.void
BackgroundSize. setBackgroundSizeToValues(UnitValue width, UnitValue height)
Clears all current properties and sets new width and height values.BackgroundPosition
BackgroundPosition. setXShift(UnitValue xShift)
Sets horizontal shift.BackgroundPosition
BackgroundPosition. setYShift(UnitValue yShift)
Sets vertical shift.Constructors in com.itextpdf.layout.properties with parameters of type UnitValue Constructor Description BorderRadius(UnitValue radius)
Creates aborder radius
with given value.BorderRadius(UnitValue horizontalRadius, UnitValue verticalRadius)
Creates aborder radius
with given horizontal and vertical values.SingleTransform(float a, float b, float c, float d, UnitValue tx, UnitValue ty)
Creates aTransform.SingleTransform
instance.UnitValue(UnitValue unitValue)
Creates a copy of UnitValue object. -
Uses of UnitValue in com.itextpdf.layout.properties.grid
Constructors in com.itextpdf.layout.properties.grid with parameters of type UnitValue Constructor Description FitContentValue(UnitValue length)
Create fit content function value based on providedUnitValue
instance. -
Uses of UnitValue in com.itextpdf.layout.renderer
Fields in com.itextpdf.layout.renderer declared as UnitValue Modifier and Type Field Description private static UnitValue
BackgroundSizeCalculationUtil. PERCENT_VALUE_100
private static UnitValue
TableWidths. ZeroWidth
Fields in com.itextpdf.layout.renderer with type parameters of type UnitValue Modifier and Type Field Description private java.util.Map<IRenderer,Tuple2<UnitValue,UnitValue>>
FlexContainerRenderer. heights
Child renderers and their heights and min heights before the layout.private java.util.Map<IRenderer,Tuple2<UnitValue,UnitValue>>
FlexContainerRenderer. heights
Child renderers and their heights and min heights before the layout.Methods in com.itextpdf.layout.renderer that return UnitValue Modifier and Type Method Description private UnitValue
TableWidths. getCellWidth(CellRenderer cell, boolean zeroIsValid)
Gets width of the cell, adding paddings and extra spacing if necessary.protected UnitValue[]
AbstractRenderer. getMargins()
Returns margins of the renderer [0] - top; [1] - right; [2] - bottom; [3] - leftprivate static UnitValue[]
AbstractRenderer. getMargins(IRenderer renderer)
protected UnitValue[]
AbstractRenderer. getPaddings()
Returns paddings of the renderer [0] - top; [1] - right; [2] - bottom; [3] - leftprivate static UnitValue[]
AbstractRenderer. getPaddings(IRenderer renderer)
UnitValue
AbstractRenderer. getPropertyAsUnitValue(int property)
Returns a property with a certain key, as a unit value.(package private) static UnitValue
AbstractRenderer. getPropertyAsUnitValue(IRenderer renderer, int property)
Returns the property of the renderer as a UnitValue if it exists and is a UnitValue, null otherwiseprivate UnitValue
TableWidths. resolveMinMaxCollision(CellRenderer cell, UnitValue widthValue)
Methods in com.itextpdf.layout.renderer with parameters of type UnitValue Modifier and Type Method Description protected Rectangle
AbstractRenderer. applyMargins(Rectangle rect, UnitValue[] margins, boolean reverse)
Applies given margins on the given rectangleprotected Rectangle
CellRenderer. applyMargins(Rectangle rect, UnitValue[] margins, boolean reverse)
protected Rectangle
AbstractRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
Applies given paddings to the given rectangle.protected Rectangle
ImageRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
protected Rectangle
TableRenderer. applyPaddings(Rectangle rect, UnitValue[] paddings, boolean reverse)
private static void
BackgroundSizeCalculationUtil. calculateBackgroundHeight(UnitValue height, float areaHeight, boolean scale, BackgroundImage image, java.lang.Float[] widthAndHeight)
private static void
BackgroundSizeCalculationUtil. calculateBackgroundWidth(UnitValue width, float areaWidth, boolean scale, BackgroundImage image, java.lang.Float[] widthAndHeight)
private void
TextRenderer. increaseYLineOffset(UnitValue[] paddings, Border[] borders, UnitValue[] margins)
(package private) void
TableWidths. processCellsRemainWidth(TableWidths.CellInfo cell, UnitValue cellWidth)
(package private) LayoutResult
BlockRenderer. processNotFullChildResult(LayoutContext layoutContext, java.util.Map<java.lang.Integer,IRenderer> waitingFloatsSplitRenderers, java.util.List<IRenderer> waitingOverflowFloatRenderers, boolean wasHeightClipped, java.util.List<Rectangle> floatRendererAreas, boolean marginsCollapsingEnabled, float clearHeightCorrection, Border[] borders, UnitValue[] paddings, java.util.List<Rectangle> areas, int currentAreaPos, Rectangle layoutBox, java.util.Set<Rectangle> nonChildFloatingRendererAreas, IRenderer causeOfNothing, boolean anythingPlaced, int childPos, LayoutResult result)
(package private) LayoutResult
FlexContainerRenderer. processNotFullChildResult(LayoutContext layoutContext, java.util.Map<java.lang.Integer,IRenderer> waitingFloatsSplitRenderers, java.util.List<IRenderer> waitingOverflowFloatRenderers, boolean wasHeightClipped, java.util.List<Rectangle> floatRendererAreas, boolean marginsCollapsingEnabled, float clearHeightCorrection, Border[] borders, UnitValue[] paddings, java.util.List<Rectangle> areas, int currentAreaPos, Rectangle layoutBox, java.util.Set<Rectangle> nonChildFloatingRendererAreas, IRenderer causeOfNothing, boolean anythingPlaced, int childPos, LayoutResult result)
private UnitValue
TableWidths. resolveMinMaxCollision(CellRenderer cell, UnitValue widthValue)
private java.lang.Float
TableWidths. retrieveTableWidth(UnitValue width, float availableWidth)
protected void
AbstractRenderer. updateHeight(UnitValue updatedHeight)
Updates fixed content box height value for this renderer.protected void
AbstractRenderer. updateMaxHeight(UnitValue updatedMaxHeight)
Updates content box max-height value for this renderer.protected void
AbstractRenderer. updateMinHeight(UnitValue updatedMinHeight)
Updates content box min-height value for this renderer.protected void
AbstractRenderer. updateWidth(UnitValue updatedWidthValue)
Updates fixed content box width value for this renderer. -
Uses of UnitValue in com.itextpdf.styledxmlparser.css.util
Methods in com.itextpdf.styledxmlparser.css.util that return UnitValue Modifier and Type Method Description static UnitValue
CssDimensionParsingUtils. parseLengthValueToPt(java.lang.String value, float emValue, float remValue)
Convenience method for parsing a value to pt.static UnitValue[]
CssDimensionParsingUtils. parseSpecificCornerBorderRadius(java.lang.String specificBorderRadius, float emValue, float remValue)
Parses the border radius of specific corner.Methods in com.itextpdf.styledxmlparser.css.util with parameters of type UnitValue Modifier and Type Method Description private static GradientColorStop
CssGradientUtil. createStopColor(float[] rgba, UnitValue offset)
-