public class

MeasurementInfo

extends Object
java.lang.Object
   ↳ com.pspdfkit.annotations.measurements.MeasurementInfo

Class Overview

Measurement info object contains all the measurement information available in a measurement annotation.

Summary

Fields
public final String label The label containing the rounded measurement value and unit used to display on the PDF.
public final MeasurementMode measurementMode The type MeasurementMode of measurement.
public final FloatPrecision precision The FloatPrecision used for this measurement.
public final Scale scale The Scale used for this measurement.
public final float value The un-rounded measurement value.
Public Constructors
MeasurementInfo(Scale scale, FloatPrecision precision, MeasurementMode mode, float value, String label)
Creates an instance of a `MeasurementInfo` object.
Public Methods
boolean equals(Object other)
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final String label

The label containing the rounded measurement value and unit used to display on the PDF. This can be null if the annotation `Contents` (getContents()) have not been set correctly.

public final MeasurementMode measurementMode

The type MeasurementMode of measurement.

public final FloatPrecision precision

The FloatPrecision used for this measurement.

public final Scale scale

The Scale used for this measurement.

public final float value

The un-rounded measurement value. This value is scaled to the Scale set.

Public Constructors

public MeasurementInfo (Scale scale, FloatPrecision precision, MeasurementMode mode, float value, String label)

Creates an instance of a `MeasurementInfo` object.

Public Methods

public boolean equals (Object other)

public int hashCode ()