Search
MeasureUnit.convert Method (Rectangle2D, MeasureUnit, Object)
See Also
 






Converts the specified rectangle from this unit to the specified unit.

Namespace: com.mindfusion.spreadsheet
Package: com.mindfusion.spreadsheet

 Syntax

Java  Copy Code

public Rectangle2D convert (
    Rectangle2D r,
    MeasureUnit targetUnit,
    Object context
)

 Parameters

r

The rectangle to convert, expressed in the current measure unit.

targetUnit

The target measure unit.

context

A parameter that is used when converting from logical units (such as inches and millimeters) to device units (such as pixels) or special units.

 Return Value

The converted rectangle.

 Remarks

If the target represents logical unit (such as mm, inch, point) or a unit derived from a logical unit, and the current unit is not logical (for example pixel), the third parameter is required to perform the conversion. If both units are of the same generic type, context is ignored.

 See Also