Moving and Scaling
From Apache OpenOffice Wiki
< Documentation | DevGuide
Moving and scaling of a shape can be done by using the corresponding methods
setSize() of the com.sun.star.drawing.XShape interface:
string getShapeType() com::sun::star::awt::Point getPosition() void setPosition( [in] com::sun::star::awt::Point aPosition) com::sun::star::awt::Size getSize() void setSize( [in] com::sun::star::awt::Size aSize)
Size are IDL structs. In Java, these structs are mapped to classes with constructors that take values for the struct members. Therefore, when new is used to instantiate these classes, the coordinates and dimensions are passed to initialize the class members X, Y, Width and Height.
|Content on this page is licensed under the Public Documentation License (PDL).|