FloatingBox

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.FloatingBox, com.aspose.pdf.BaseParagraph, com.aspose.pdf.FloatingBox

All Implemented Interfaces: com.aspose.ms.System.ICloneable

public class FloatingBox extends BaseParagraph

Represents a FloatingBox in a Pdf document. FloatingBox is custom positioned.

Constructors

ConstructorDescription
FloatingBoxInitializes a new instance of the {@code FloatingBox} class.
FloatingBoxInitializes a new instance of the {@code FloatingBox} class with specified width and height.

Methods

MethodDescription
deepCloneClones a new {@code FloatingBox} object. Paragraphs in the floating box are not cloned.
getBackgroundColorGets a object that indicates the background color of the floating box.
getBackgroundImageGets or sets background image for page (for generator only, not filled in when reading document).
getBorderGets a object that indicates the border info of the floating box.
getColumnInfoGets a column info
getHeightGets a float value that indicates the height of the floating box.
getLeftGets the table left coordinate.
getPaddingGets a object that indicates the padding of the floating box.
getParagraphsGets a collection that indicates all paragraphs in the cell.
getPositioningModeSpecifies variant for determining the location of the FloatingBox on the page.
getTopGets the table top coordinate.
getWidthGets a float value that indicates the width of the floating box.
isNeedRepeatingGets a boolean value that indicates whether the paragraph need to be repeated on next page. Default value is true.The attribute is only valid when the paragraph itself and the object its ReferenceParagraphID referred to both are included in RepeatingRows.
setBackgroundColorSets a object that indicates the background color of the floating box.
setBackgroundImageGets or sets background image for page (for generator only, not filled in when reading document).
setBorderSets a object that indicates the border info of the floating box.
setColumnInfoSets a column info
setHeightSets a float value that indicates the height of the floating box.
setLeftSets the table left coordinate.
setNeedRepeatingSets a boolean value that indicates whether the paragraph need to be repeated on next page. Default value is true.The attribute is only valid when the paragraph itself and the object its ReferenceParagraphID referred to both are included in RepeatingRows.
setPaddingSets an object that indicates the padding of the floating box.
setParagraphsSets a collection that indicates all paragraphs in the cell.
setPositioningModeSpecifies variant for determining the location of the FloatingBox on the page.
setTopSets the table top coordinate.
setWidthSets a float value that indicates the width of the floating box.

FloatingBox

public FloatingBox()

Initializes a new instance of the {@code FloatingBox} class.

FloatingBox

public FloatingBox(float width, float height)

Initializes a new instance of the {@code FloatingBox} class with specified width and height.

Parameters:

ParameterTypeDescription
widthThe width of the box.
heightThe height of the box.

deepClone

public Object deepClone()

Clones a new {@code FloatingBox} object. Paragraphs in the floating box are not cloned.

Returns: The new {@code FloatingBox} object.

getBackgroundColor

public Color getBackgroundColor()

Gets a object that indicates the background color of the floating box.

Returns: object that indicates the background color.

getBackgroundImage

public final Image getBackgroundImage()

Gets or sets background image for page (for generator only, not filled in when reading document).

Returns: Image instance

getBorder

public BorderInfo getBorder()

Gets a object that indicates the border info of the floating box.

Returns: object that indicates the border info.

getColumnInfo

public ColumnInfo getColumnInfo()

Gets a column info

Returns: ColumnInfo object

getHeight

public double getHeight()

Gets a float value that indicates the height of the floating box.

Returns: value that indicates the height.

getLeft

public double getLeft()

Gets the table left coordinate.

Returns: table left coordinate.

getPadding

public MarginInfo getPadding()

Gets a object that indicates the padding of the floating box.

Returns: object that indicates the padding.

getParagraphs

public Paragraphs getParagraphs()

Gets a collection that indicates all paragraphs in the cell.

Returns: collection that indicates all paragraphs.

getPositioningMode

public final ParagraphPositioningMode getPositioningMode()

Specifies variant for determining the location of the FloatingBox on the page.

Returns: ParagraphPositioningMode element

getTop

public double getTop()

Gets the table top coordinate.

Returns: table top coordinate.

getWidth

public double getWidth()

Gets a float value that indicates the width of the floating box.

Returns: double value

isNeedRepeating

public boolean isNeedRepeating()

Gets a boolean value that indicates whether the paragraph need to be repeated on next page. Default value is true.The attribute is only valid when the paragraph itself and the object its ReferenceParagraphID referred to both are included in RepeatingRows.

Returns: boolean value

setBackgroundColor

Sets a object that indicates the background color of the floating box.

setBackgroundImage

Gets or sets background image for page (for generator only, not filled in when reading document).

setBorder

Sets a object that indicates the border info of the floating box.

setColumnInfo

Sets a column info

setHeight

public void setHeight(double value)

Sets a float value that indicates the height of the floating box.

Parameters:

ParameterTypeDescription
valuevalue that indicates the height.

setLeft

public void setLeft(double value)

Sets the table left coordinate.

Parameters:

ParameterTypeDescription
valuetable left coordinate.

setNeedRepeating

public void setNeedRepeating(boolean value)

Sets a boolean value that indicates whether the paragraph need to be repeated on next page. Default value is true.The attribute is only valid when the paragraph itself and the object its ReferenceParagraphID referred to both are included in RepeatingRows.

Parameters:

ParameterTypeDescription
valueboolean value

setPadding

Sets an object that indicates the padding of the floating box.

setParagraphs

Sets a collection that indicates all paragraphs in the cell.

setPositioningMode

Specifies variant for determining the location of the FloatingBox on the page.

setTop

public void setTop(double value)

Sets the table top coordinate.

Parameters:

ParameterTypeDescription
valuetable top coordinate.

setWidth

public void setWidth(double value)

Sets a float value that indicates the width of the floating box.

Parameters:

ParameterTypeDescription
valuedouble value