Package org.rstudio.core.client

Examples of org.rstudio.core.client.Size


      EditDialog editDialog = new EditDialog("Provide Feedback",
                                             "Submit",
                                             "",
                                             false,
                                             true,
                                             new Size(450,300),
                     new ProgressOperationWithInput<String>() {
         @Override
         public void execute(String input, ProgressIndicator indicator)
         {
            if (input == null)
View Full Code Here


      this("Edit",
           "Save",
           text,
           isRCode,
           lineWrapping,
           new Size(0,0),
           operation);
   }
View Full Code Here

   @Override
   protected Widget createMainWidget()
   {
      // create widget and set size
      Widget editWidget = editor_.getWidget();
      Size size = DomMetrics.adjustedCodeElementSize(sourceText_, 25, 100);
      if (!minimumSize_.isEmpty())
      {
         size = new Size(Math.max(size.width, minimumSize_.width),
                         Math.max(size.height, minimumSize_.height));
      }
      editWidget.setSize(size.width + "px", size.height + "px");

      editor_.setCode(sourceText_, false);
View Full Code Here

   }
  
   @Override
   public Size getViewerFrameSize()
   {
      return new Size(frame_.getOffsetWidth(), frame_.getOffsetHeight());
   }
View Full Code Here

                                          items);
     
      // open the window
      satelliteManager_.openSatellite("review_changes",    
                                      params,
                                      new Size(1000,1200));
   }
View Full Code Here

      return plotsParent_;   
   }
  
   public Size getPlotFrameSize()
   {
      return new Size(frame_.getOffsetWidth(), frame_.getOffsetHeight());
   }
View Full Code Here

      // activate the plots tab if requested
      if (plotsState.getActivatePlots())
         view_.bringToFront();
     
      // update plot size
      plotSize_ = new Size(plotsState.getWidth(), plotsState.getHeight());

      // manipulator
      manipulatorManager_.setManipulator(plotsState.getManipulator(),
                                         plotsState.getShowManipulator());
     
View Full Code Here

            @Override
            public void onResponseReceived(String stem)
            {
               indicator.onCompleted();

               Size size = getPlotSize();
               final SavePlotAsPdfOptions currentOptions =
                   SavePlotAsPdfOptions.adaptToSize(
                         uiPrefs_.get().savePlotAsPdfOptions().getValue(),
                         pixelsToInches(size.width),
                         pixelsToInches(size.height));
View Full Code Here

         new Command() {
          @Override
          public void execute()
          {
             // determine the size (re-use the zoom window logic for this)
             final Size size = ZoomUtils.getZoomedSize(view_.getPlotFrameSize(),
                                                       new Size(400, 350),
                                                       new Size(750, 600));
            
             // show the dialog
             RPubsUploadDialog dlg = new RPubsUploadDialog(
                "Plots",
                "",
View Full Code Here

      };
  
  
   void onZoomPlot()
   {
      Size windowSize = ZoomUtils.getZoomWindowSize(
                              view_.getPlotFrameSize(), zoomWindowDefaultSize_);
     
      // determine whether we should scale (see comment in ImageFrame.onLoad
      // for why we wouldn't want to scale)
      int scale = 1;
View Full Code Here

TOP

Related Classes of org.rstudio.core.client.Size

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.