class RelativePositionHelper
{ public: /** returns the upper left corner of an object that has size aObjectSize and wherethepointindicatedbyaAnchorhascoordinatesindicatedbyaPoint (e.g.ifaAnchorequalsBOTTOM_LEFT,aPointdescribesthe coordinatesofthebottomleftcornerofanobjectwithsizeaObjectSize)
*/ static css::awt::Point
getUpperLeftCornerOfAnchoredObject(
css::awt::Point aPoint,
css::awt::Size aObjectSize,
css::drawing::Alignment aAnchor );
/** returns the center of an object that has size aObjectSize and wherethepointindicatedbyaAnchorhascoordinatesindicatedbyaPoint (e.g.ifaAnchorequalsBOTTOM_LEFT,aPointdescribesthe coordinatesofthebottomleftcornerofanobjectwithsizeaObjectSize)
*/ static css::awt::Point
getCenterOfAnchoredObject(
css::awt::Point aPoint,
css::awt::Size aUnrotatedObjectSize,
css::drawing::Alignment aAnchor, double fAnglePi );
/** Returns a relative position that is the same point after the anchor has beenchangedtothegivenone.Thepassedobjectsizeistakeninto accountforshiftingtheposition.
*/ static css::chart2::RelativePosition
getReanchoredPosition( const css::chart2::RelativePosition & rPosition, const css::chart2::RelativeSize & rObjectSize,
css::drawing::Alignment aNewAnchor );
/** grows a relative size about the given amount and shifts the given positionsuchthattheresizeisrelativetotheformerrectangle's center.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.