Package com.sun.star.awt

Examples of com.sun.star.awt.Rectangle


        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


            XWindow xWin = xFrame.getContainerWindow();
           
            Toolkit tk = Toolkit.getDefaultToolkit();
            Dimension dim = tk.getScreenSize();
           
            Rectangle newPosSize = xWin.getPosSize();
            newPosSize.Width = new Double(dim.getWidth()).intValue();
            newPosSize.Height = new Double(dim.getHeight()).intValue();
            newPosSize.X = 0;
            newPosSize.Y = 0;
           
View Full Code Here

        XAccessibleComponent window = (XAccessibleComponent) UnoRuntime.queryInterface(
                                              XAccessibleComponent.class, oObj);

        point = window.getLocationOnScreen();
        Rectangle rect = window.getBounds();

        try {
            Robot rob = new Robot();
            int x = point.X + (rect.Width / 2);
            int y = point.Y + (rect.Height / 2);
View Full Code Here

        final XWindow win = desk.getCurrentFrame().getComponentWindow();

        tEnv.addObjRelation("EventProducer",
            new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
                public void fireEvent() {
                    Rectangle rec = win.getPosSize();
                    win.setPosSize(rec.X,rec.Y,rec.Height-10,rec.Width, com.sun.star.awt.PosSize.POSSIZE);
                    win.setPosSize(rec.X,rec.Y,rec.Height,rec.Width,com.sun.star.awt.PosSize.POSSIZE );
                }
            });
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

        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

        descriptor.Type = com.sun.star.awt.WindowClass.TOP;
        descriptor.WindowServiceName = "modelessdialog";
        descriptor.ParentIndex = -1;

        Rectangle bounds = new com.sun.star.awt.Rectangle();
        bounds.X = X;
        bounds.Y = Y;
        bounds.Width = width;
        bounds.Height = height;
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

        descriptor.Type = com.sun.star.awt.WindowClass.TOP;
        descriptor.WindowServiceName = "modelessdialog";
        descriptor.ParentIndex =  -1;

  Rectangle bounds = new com.sun.star.awt.Rectangle();
  bounds.X = X;
  bounds.Y = Y;
  bounds.Width = width;
  bounds.Height = height;
       
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

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.