Examples of XDrivingDirection


Examples of org.OpenOffice.XDrivingDirection

     
      // Print the current speed
      System.out.println( "Current speed: " + Car._Car.getCurrentSpeed() );
     
      // Querying for the interface XDrivingDirection
      XDrivingDirection xdrivingdirection = ( XDrivingDirection )
      UnoRuntime.queryInterface( XDrivingDirection.class, objectCar );
     
      // Print the current angle
      System.out.println( "Current angle: " + Car._Car.getCurrentAngle() );
     
      // Changing the direction
      xdrivingdirection.turnLeft( 100 );
     
      // Print the current angle
      System.out.println( "Current angle: " + Car._Car.getCurrentAngle() );
     
      xdrivingdirection.turnRight( 150 );
     
      // Print the current angle
      System.out.println( "Current angle: " + Car._Car.getCurrentAngle() );
     
      // Querying for the interface XPropertySet
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.