summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java')
-rw-r--r--odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java b/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java
index 4b09ea0ec72b..f45326a185b9 100644
--- a/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java
@@ -77,11 +77,9 @@ public class ObjectTransformationDemo
"private:factory/simpress", "_blank", 0, pPropValues );
XDrawPage xPage = PageHelper.getDrawPageByIndex( xDrawDoc, 0 );
- XPropertySet xPagePropSet= (XPropertySet)
- UnoRuntime.queryInterface( XPropertySet.class, xPage );
+ XPropertySet xPagePropSet= UnoRuntime.queryInterface( XPropertySet.class, xPage );
- XShapes xShapes = (XShapes)
- UnoRuntime.queryInterface( XShapes.class, xPage );
+ XShapes xShapes = UnoRuntime.queryInterface( XShapes.class, xPage );
XShape xShape = ShapeHelper.createShape( xDrawDoc,
@@ -89,8 +87,7 @@ public class ObjectTransformationDemo
"com.sun.star.drawing.RectangleShape" );
xShapes.add( xShape );
- XPropertySet xPropSet = (XPropertySet)
- UnoRuntime.queryInterface( XPropertySet.class, xShape );
+ XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, xShape );
HomogenMatrix3 aHomogenMatrix3 = (HomogenMatrix3)
xPropSet.getPropertyValue( "Transformation" );