Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: awt ::
unpublished | interface XUnitConversion |
Usage Restrictions not published Description allows converting between different measurement units Since OOo 3.0

Methods' Summary
convertPointToLogic | converts the given Point, which is specified in pixels, into the given logical unit
convertPointToPixel | converts the given Point, which is specified in the given logical unit, into pixels
convertSizeToLogic | converts the given Size, which is specified in pixels, into the given logical unit
convertSizeToPixel | converts the given Size, which is specified in the given logical unit, into pixels

Methods' Details
convertPointToLogic
Point
convertPointToLogic( | [in] Point | Point,
| [in] short | TargetUnit )
raises( | ::com::sun::star::lang::IllegalArgumentException );
Description converts the given Point, which is specified in pixels, into the given logical unit Parameter Point A given Point in a well known type Parameter TargetUnit A type from ::com::sun::star::util::MeasureUnit in which the Point will convert to. Returns Returns a new Point in the TargetUnit type format.
convertPointToPixel
Point
convertPointToPixel( | [in] Point | aPoint,
| [in] short | SourceUnit )
raises( | ::com::sun::star::lang::IllegalArgumentException );
Description converts the given Point, which is specified in the given logical unit, into pixels Parameter Point A given Point in the SourceUnit type Parameter SourceUnit The type from ::com::sun::star::util::MeasureUnit of the Point. Returns Return a new Point in Pixel type format.
convertSizeToLogic
Size
convertSizeToLogic( | [in] Size | aSize,
| [in] short | TargetUnit )
raises( | ::com::sun::star::lang::IllegalArgumentException );
Description converts the given Size, which is specified in pixels, into the given logical unit Parameter aSize A given Size in a well known type Parameter TargetUnit A type from ::com::sun::star::util::MeasureUnit in which the Size will convert to. Returns Returns a new Size in the TargetUnit type format.
convertSizeToPixel
Size
convertSizeToPixel( | [in] Size | aSize,
| [in] short | SourceUnit )
raises( | ::com::sun::star::lang::IllegalArgumentException );
Description converts the given Size, which is specified in the given logical unit, into pixels Parameter Size A given Size in a well known type Parameter TargetUnit The type from ::com::sun::star::util::MeasureUnit of the Size. Returns Returns a new Size in the TargetUnit type format.

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.