Uses of Class
com.itextpdf.layout.properties.UnitValue
Package
Description
-
Uses of UnitValue in com.itextpdf.layout
Modifier and TypeMethodDescriptionStyle.getHeight()
Gets the height property of the element.Style.getMarginBottom()
Gets the current bottom margin width of the element.Style.getMarginLeft()
Gets the current left margin width of the element.Style.getMarginRight()
Gets the current right margin width of the element.Style.getMarginTop()
Gets the current top margin width of the element.Style.getPaddingBottom()
Gets the current bottom padding width of the element.Style.getPaddingLeft()
Gets the current left padding width of the element.Style.getPaddingRight()
Gets the current right padding width of the element.Style.getPaddingTop()
Gets the current top padding width of the element.Style.getWidth()
Gets the width property of the element.Modifier and TypeMethodDescriptionElementPropertyContainer.setFixedPosition
(float left, float bottom, UnitValue width) Sets values for a absolute repositioning of the Element.ElementPropertyContainer.setFixedPosition
(int pageNumber, float left, float bottom, UnitValue width) Sets values for a absolute repositioning of the Element.Sets the height property of the element with aUnitValue
.Style.setMaxHeight
(UnitValue maxHeight) Sets the max-height property of the element with aUnitValue
.Style.setMaxWidth
(UnitValue maxWidth) Sets the max-width property of the element with aUnitValue
.Style.setMinHeight
(UnitValue minHeight) Sets the min-height property of the element with aUnitValue
.Style.setMinWidth
(UnitValue minWidth) Sets the min-width property of the element with aUnitValue
.Sets the width property of the element with aUnitValue
. -
Uses of UnitValue in com.itextpdf.layout.element
Modifier and TypeMethodDescriptionTable.getColumnWidth
(int column) Returns the column width for the specified column.BlockElement.getHeight()
Gets the height property of a block element.BlockElement.getMarginBottom()
Gets the current bottom margin width of the element.Image.getMarginBottom()
Gets the current bottom margin width of the image.BlockElement.getMarginLeft()
Gets the current left margin width of the element.Image.getMarginLeft()
Gets the current left margin width of the element.BlockElement.getMarginRight()
Gets the current right margin width of the element.Image.getMarginRight()
Gets the current right margin width of the image.BlockElement.getMarginTop()
Gets the current top margin width of the element.Image.getMarginTop()
Gets the current top margin width of the image.BlockElement.getPaddingBottom()
Gets the current bottom padding width of the element.Image.getPaddingBottom()
Gets the current bottom padding width of the image.BlockElement.getPaddingLeft()
Gets the current left padding width of the element.Image.getPaddingLeft()
Gets the current left padding width of the image.BlockElement.getPaddingRight()
Gets the current right padding width of the element.Image.getPaddingRight()
Gets the current right padding width of the image.BlockElement.getPaddingTop()
Gets the current top padding width of the element.Image.getPaddingTop()
Gets the current top padding width of the image.BlockElement.getWidth()
Gets the width property of a block element.Image.getWidth()
Gets the width property of the image.Modifier and TypeMethodDescriptionSets the height property of a block element with aUnitValue
.Sets the height property of the image with aUnitValue
.BlockElement.setMaxHeight
(UnitValue maxHeight) Sets the max-height property of a block element with aUnitValue
.Image.setMaxHeight
(UnitValue maxHeight) Sets the max-height property of the image with aUnitValue
.BlockElement.setMaxWidth
(UnitValue maxWidth) Sets the max-width property of a block element with aUnitValue
.Image.setMaxWidth
(UnitValue maxWidth) Sets the max-width property of the image with aUnitValue
.BlockElement.setMinHeight
(UnitValue minHeight) Sets the min-height property of a block element with aUnitValue
.Image.setMinHeight
(UnitValue minHeight) Sets the min-height property of the image with aUnitValue
.BlockElement.setMinWidth
(UnitValue minWidth) Sets the min-width property of a block element with aUnitValue
.Image.setMinWidth
(UnitValue minWidth) Sets the min-width property of the image with aUnitValue
.Sets the width property of a block element with aUnitValue
.Sets the width property of the image with aUnitValue
. -
Uses of UnitValue in com.itextpdf.layout.properties
Modifier and TypeMethodDescriptionstatic 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.BackgroundSize.getBackgroundHeightSize()
Gets the background height property of the image.BackgroundSize.getBackgroundWidthSize()
Gets the background width property of the image.BorderRadius.getHorizontalRadius()
Gets the horizontal radius of theborder's
corner.Transform.SingleTransform.getUnitValues()
Gets an array of values corresponding to translation.BorderRadius.getVerticalRadius()
Gets the vertical radius of theborder's
corner.BackgroundPosition.getXShift()
Gets horizontal shift.BackgroundPosition.getYShift()
Gets vertical shift.Modifier and TypeMethodDescriptionvoid
BackgroundPosition.calculatePositionValues
(float fullWidth, float fullHeight, UnitValue outXValue, UnitValue outYValue) Converts all percentage and enum values to point equivalent.void
BackgroundSize.setBackgroundSizeToValues
(UnitValue width, UnitValue height) Clears all current properties and sets new width and height values.Sets horizontal shift.Sets vertical shift.ModifierConstructorDescriptionBorderRadius
(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.Creates a copy of UnitValue object. -
Uses of UnitValue in com.itextpdf.layout.renderer
Modifier and TypeMethodDescriptionprotected UnitValue[]
AbstractRenderer.getMargins()
Returns margins of the rendererprotected UnitValue[]
AbstractRenderer.getPaddings()
Returns paddings of the rendererAbstractRenderer.getPropertyAsUnitValue
(int property) Returns a property with a certain key, as a unit value.Modifier and TypeMethodDescriptionprotected 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 on the given rectangleprotected Rectangle
ImageRenderer.applyPaddings
(Rectangle rect, UnitValue[] paddings, boolean reverse) protected Rectangle
TableRenderer.applyPaddings
(Rectangle rect, UnitValue[] paddings, boolean reverse) 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
Modifier and TypeMethodDescriptionstatic UnitValue
CssDimensionParsingUtils.parseLengthValueToPt
(String value, float emValue, float remValue) Convenience method for parsing a value to pt.static UnitValue[]
CssDimensionParsingUtils.parseSpecificCornerBorderRadius
(String specificBorderRadius, float emValue, float remValue) Parses the border radius of specific corner.