Package com.sun.star.awt

Examples of com.sun.star.awt.Rectangle


        tRes.tested("floatWindow()", true);
    }
   
    public void _getCurrentDockingArea() {
        requiredMethod("attachFrame()");
        Rectangle rect = oObj.getCurrentDockingArea();
        tRes.tested("getCurrentDockingArea()", rect != null);
    }
View Full Code Here


          aDescriptor.Type              = WindowClass.MODALTOP;
          aDescriptor.WindowServiceName = new String( "infobox" );
          aDescriptor.ParentIndex       = -1;
          aDescriptor.Parent            = (XWindowPeer)UnoRuntime.queryInterface(
            XWindowPeer.class, m_xFrame.getContainerWindow());
          aDescriptor.Bounds            = new Rectangle(0,0,300,200);
          aDescriptor.WindowAttributes  = WindowAttribute.BORDER |
            WindowAttribute.MOVEABLE |
            WindowAttribute.CLOSEABLE;
               
          XWindowPeer xPeer = m_xToolkit.createWindow( aDescriptor );
View Full Code Here

       
        XAccessibleComponent window = (XAccessibleComponent) UnoRuntime.queryInterface(
                XAccessibleComponent.class, oObj);
       
        point = window.getLocationOnScreen();
        Rectangle rect = window.getBounds();
       
        log.println("klick mouse button...");
        try {
            Robot rob = new Robot();
            int x = point.X + (rect.Width / 2);
View Full Code Here

        WindowDescriptor aDescriptor = new WindowDescriptor();
        aDescriptor.Type                =   com.sun.star.awt.WindowClass.TOP;
        aDescriptor.WindowServiceName   =   "window";
        aDescriptor.ParentIndex         =   -1;
        aDescriptor.Parent              =   null;
        aDescriptor.Bounds              =   new Rectangle(10,10,640,480);
        aDescriptor.WindowAttributes    =   WindowAttribute.BORDER               |
                                            WindowAttribute.MOVEABLE             |
                                            WindowAttribute.SIZEABLE             |
                                            //WindowAttribute.CLOSEABLE            |
                                            VclWindowPeerAttribute.CLIPCHILDREN  ;
View Full Code Here

        insertIntoCell(11,3,"25.4",oSheet,"V");
        insertIntoCell(12,3,"38.5",oSheet,"V");
        insertIntoCell(13,3,"=SUM(A4:L4)",oSheet,"");

        // insert a chart
        Rectangle oRect = new Rectangle(500, 3000, 25000, 11000);

        XCellRange oRange = (XCellRange)
            UnoRuntime.queryInterface(XCellRange.class, oSheet);
        XCellRange myRange = oRange.getCellRangeByName("A1:N4");
        XCellRangeAddressable oRangeAddr = (XCellRangeAddressable)
View Full Code Here

        parentPeer = null;
        bPeer = false;
      }

      // create native window (mWindow)
      Rectangle aRect = new Rectangle( 0, 0, 20, 20 );
      WindowDescriptor desc = new WindowDescriptor();
      desc.Type = WindowClass.TOP;
      desc.Parent = parentPeer;
      desc.Bounds = aRect;
      desc.WindowServiceName = "workwindow";
View Full Code Here

        boolean result = true ;
        XAccessibleComponent[] children = getChildrenComponents();

        if (children.length > 0) {
            for (int i = 0; i < children.length; i++) {
                Rectangle chBnd = children[i].getBounds();
                if (chBnd.X == -1) continue;
                log.println("Checking child with bounds " +
                    "(" + chBnd.X + "," + chBnd.Y + "),("
                    + chBnd.Width + "," + chBnd.Height + "): "
                    +  util.AccessibilityTools.accessibleToString(children[i]));
View Full Code Here

        parentPeer = null;
        bPeer = false;
      }

      // create native window (mWindow)
      Rectangle aRect = new Rectangle( 0, 0, 20, 20 );
      WindowDescriptor desc = new WindowDescriptor();
      desc.Type = WindowClass.TOP;
      desc.Parent = parentPeer;
      desc.Bounds = aRect;
      desc.WindowServiceName = "workwindow";
View Full Code Here

        public EventProducer(XWindow window) {
            xWindow = window;
        }

       public void fireEvent() {
            Rectangle newPosSize = xWindow.getPosSize();
            newPosSize.Width = newPosSize.Width - 20;
            newPosSize.Height = newPosSize.Height - 20;
            newPosSize.X = newPosSize.X + 20;
            newPosSize.Y = newPosSize.Y + 20;
            xWindow.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width,
View Full Code Here

        final XWindow xDocWin = xWindow;
        tEnv.addObjRelation("EventProducer",
            new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
                public void fireEvent() {
                    Rectangle rect = xDocWin.getPosSize();
                    xDocWin.setPosSize(rect.X,rect.Y,rect.Height,rect.Width-10,com.sun.star.awt.PosSize.POSSIZE);
                }
            });

        return tEnv;
View Full Code Here

TOP

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

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.