Skip to main content

LayoutMetrics Class

Contains layout metrics for tagged PDF content.

Declaration

public final class LayoutMetrics extends Struct<LayoutMetrics>

Inherited Members

com.devexpress.system.Struct.equals(java.lang.Object)
com.devexpress.system.Struct.getHashCode()
com.devexpress.system.Struct.hashCode()
java.lang.Object.clone()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.Struct
LayoutMetrics

Constructors

LayoutMetrics() Constructor

Initializes a new instance of the LayoutMetrics class.

Declaration

public LayoutMetrics()

LayoutMetrics(PointF location, SizeF size, float lineHeight, RectangleF boundingBox, PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft) Constructor

Initializes a new instance of the LayoutMetrics class with specified settings.

Declaration

public LayoutMetrics(PointF location, SizeF size, float lineHeight, RectangleF boundingBox, PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft)

Parameters

Name Type Description
location com.devexpress.system.drawing.PointF

The layout location.

size

The layout size.

lineHeight float

The line height.

boundingBox RectangleF

The bounds rectangle.

topLeft com.devexpress.system.drawing.PointF

The top-left corner point.

topRight com.devexpress.system.drawing.PointF

The top-right corner point.

bottomRight com.devexpress.system.drawing.PointF

The bottom-right corner point.

bottomLeft com.devexpress.system.drawing.PointF

The bottom-left corner point.

Methods

equals(Object obj) Method

Compares this instance with the specified object.

Declaration

public boolean equals(Object obj)

Parameters

Name Type Description
obj Object

The object to compare.

Returns

Type Description
boolean

true if the specified object equals this instance; otherwise, false.

getBottomLeft() Method

Returns the bottom-left corner point.

Declaration

public PointF getBottomLeft()

Returns

Type Description
com.devexpress.system.drawing.PointF

The bottom-left corner point.

getBottomRight() Method

Returns the bottom-right corner point.

Declaration

public PointF getBottomRight()

Returns

Type Description
com.devexpress.system.drawing.PointF

The bottom-right corner point.

getBoundingBox() Method

Returns the bounds rectangle.

Declaration

public RectangleF getBoundingBox()

Returns

Type Description
RectangleF

The bounds rectangle.

getLineHeight() Method

Returns the line height.

Declaration

public float getLineHeight()

Returns

Type Description
float

The line height.

getLocation() Method

Returns the layout location.

Declaration

public PointF getLocation()

Returns

Type Description
com.devexpress.system.drawing.PointF

The layout location.

getSize() Method

Returns the layout size.

Declaration

public SizeF getSize()

Returns

Type Description

The layout size.

getTopLeft() Method

Returns the top-left corner point.

Declaration

public PointF getTopLeft()

Returns

Type Description
com.devexpress.system.drawing.PointF

The top-left corner point.

getTopRight() Method

Returns the top-right corner point.

Declaration

public PointF getTopRight()

Returns

Type Description
com.devexpress.system.drawing.PointF

The top-right corner point.

hashCode() Method

Returns the hash code for this instance.

Declaration

public int hashCode()

Returns

Type Description
int

The hash code.