Package com.sun.star.awt

Examples of com.sun.star.awt.XGraphics


                                                    PrintWriter log) {
        XInterface oObj = null;
        XWindowPeer the_win = null;
        XToolkit the_kit = null;
        XDevice aDevice = null;
        XGraphics aGraphic = null;
        XControl aControl = null;

        //Insert a ControlShape and get the ControlModel
        XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
                                                               4500, 15000,
View Full Code Here


                                                    PrintWriter log) {
        XInterface oObj = null;
        XWindowPeer the_win = null;
        XToolkit the_kit = null;
        XDevice aDevice = null;
        XGraphics aGraphic = null;
        XControl aControl = null;

        //Insert a ControlShape and get the ControlModel
        XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
                                                               4500, 15000,
View Full Code Here

        XWindowPeer the_win = null;
        XToolkit the_kit = null;

        XControlContainer ctrlCont = null;

        XGraphics aGraphic = null;


        // create 3 XControls
        // create first XControl
        shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000,
View Full Code Here

    /**
    * After obtaining object relation 'GRAPHICS', test calls the method. <p>
    * Has <b> OK </b> status if the method returns true.
    */
    public void _setGraphics() {
        XGraphics graph = (XGraphics) tEnv.getObjRelation("GRAPHICS");
        boolean isSet = oObj.setGraphics(graph);
        if ( !isSet ) {
            log.println("setGraphics() returns false");
        }
        tRes.tested("setGraphics()", isSet);
View Full Code Here

    *  <li> <code> setGraphics() </code> : sets the output device </li>
    * </ul>
    */
    public void _getGraphics() {
        requiredMethod("setGraphics()");
        XGraphics graph = oObj.getGraphics();
        if (graph == null) {
            log.println("getGraphics() returns NULL");
        }
        tRes.tested("getGraphics()", graph != null);
    }
View Full Code Here

                                                    PrintWriter log) {
        XInterface oObj = null;
        XWindowPeer the_win = null;
        XToolkit the_kit = null;
        XDevice aDevice = null;
        XGraphics aGraphic = null;
        XWindow anotherWindow = null;

        //Insert a ControlShape and get the ControlModel
        XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
                                                               4500, 15000,
View Full Code Here

                                                    PrintWriter log) {
        XInterface oObj = null;
        XWindowPeer the_win = null;
        XToolkit the_kit = null;
        XDevice aDevice = null;
        XGraphics aGraphic = null;
        XControl aControl = null;

        //Insert a ControlShape and get the ControlModel
        XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
                                                               4500, 15000,
View Full Code Here

        // System.out.println( "The bitmap is going to be painted!" );
        XDevice xDevice = (XDevice)UnoRuntime.queryInterface( XDevice.class, m_xWindow );
        if ( xDevice != null )
        {
           // System.out.println( "Step1" );
          XGraphics xGraphics = xDevice.createGraphics();
          if ( xBitmap != null )
          {
            // System.out.println( "Step2" );
            XDisplayBitmap xDisplayBitmap = xDevice.createDisplayBitmap( xBitmap );
     
            com.sun.star.awt.Size aSize = xBitmap.getSize();
            xGraphics.draw( xDisplayBitmap, 0, 0, aSize.Width, aSize.Height,
                          aRect.X, aRect.Y, aRect.Width, aRect.Height );
          }

          // System.out.println( "Step3" );
          // xGraphics.drawRect( aRect.X - 1, aRect.Y - 1, aRect.Width + 2, aRect.Height + 2 );
          xGraphics.drawLine( aRect.X - 1, aRect.Y - 1,
                    aRect.X + aRect.Width + 1, aRect.Y - 1 );
          xGraphics.drawLine( aRect.X + aRect.Width + 1, aRect.Y - 1,
                    aRect.X + aRect.Width + 1, aRect.Y + aRect.Height + 1 );
          xGraphics.drawLine( aRect.X + aRect.Width + 1, aRect.Y + aRect.Height + 1,
                    aRect.X - 1, aRect.Y + aRect.Height + 1 );
          xGraphics.drawLine( aRect.X - 1, aRect.Y + aRect.Height + 1,
                    aRect.X - 1, aRect.Y - 1 );

          // draw resize squares
          // System.out.println( "Step4" );
          // xGraphics.drawRect( aRect.X - 2, aRect.Y - 2, 4, 4 );
View Full Code Here

                                                    PrintWriter log) {
        XInterface oObj = null;
        XWindowPeer the_win = null;
        XToolkit the_kit = null;
        XDevice aDevice = null;
        XGraphics aGraphic = null;
        XControl aControl = null;

        //Insert a ControlShape and get the ControlModel
        XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
                                                               4500, 15000,
View Full Code Here

        XInterface oObj = null;
        Object anotherCtrl = null;
        XWindowPeer the_win = null;
        XToolkit the_kit = null;
        XDevice aDevice = null;
        XGraphics aGraphic = null;

        //Insert a ControlShape and get the ControlModel
        XControlShape aShape = FormTools.createControlShape(xTextDoc, 3000,
                                                            4500, 15000, 10000,
                                                            "DateField");
View Full Code Here

TOP

Related Classes of com.sun.star.awt.XGraphics

Copyright © 2018 www.massapicom. 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.