Skip to main content

DXFontLayoutMetrics Class

Font layout metrics.

Declaration

public final class DXFontLayoutMetrics extends Struct<DXFontLayoutMetrics>

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
DXFontLayoutMetrics

DXFontLayoutMetrics()

Initializes a new instance of the DXFontLayoutMetrics class.

Declaration

public DXFontLayoutMetrics()

Methods

calculateHeight(int lineCount, float lineSpacingMultiplier) Method

Calculates the height for the specified line count and line spacing multiplier.

Declaration

public float calculateHeight(int lineCount, float lineSpacingMultiplier)

Parameters

Name Type Description
lineCount int

The line count.

lineSpacingMultiplier float

The line spacing multiplier.

Returns

Type Description
float

The calculated height.

calculateHeight(int lineCount) Method

Calculates the height for the specified line count.

Declaration

public float calculateHeight(int lineCount)

Parameters

Name Type Description
lineCount int

The line count.

Returns

Type Description
float

The calculated height.

equals(Object obj) Method

Checks whether this font layout metrics object equals 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 font layout metrics object; otherwise, false.

getAscent() Method

Returns the font ascent.

Declaration

public float getAscent()

Returns

Type Description
float

The font ascent.

getDescent() Method

Returns the font descent.

Declaration

public float getDescent()

Returns

Type Description
float

The font descent.

getHeight() Method

Returns the font height.

Declaration

public float getHeight()

Returns

Type Description
float

The font height.

getLineSpacing() Method

Returns the line spacing.

Declaration

public float getLineSpacing()

Returns

Type Description
float

The line spacing.

hashCode() Method

Returns a hash code value for this object.

Declaration

public int hashCode()

Returns

Type Description
int

The hash code.