Examples of ExportPlotSizeEditor


Examples of org.rstudio.studio.client.workbench.exportplot.ExportPlotSizeEditor

      clipboard_ = clipboard;
   }
  
   protected void copyAsBitmap(final Operation onCompleted)
   { 
      final ExportPlotSizeEditor sizeEditor = getSizeEditor();
     
      sizeEditor.prepareForExport(new Command() {

         @Override
         public void execute()
         {
            if (BrowseCap.isCocoaDesktop())
            {
               clipboard_.copyPlotToCocoaPasteboard(
                     sizeEditor.getImageWidth(),
                     sizeEditor.getImageHeight(),
                     new Command()
                     {
                        @Override
                        public void execute()
                        {
                           onCompleted.execute();
                        }
                     });
            }
            else
            {
               WindowEx win = sizeEditor.getPreviewIFrame().getContentWindow();
               Document doc = win.getDocument();
               NodeList<Element> images = doc.getElementsByTagName("img");
               if (images.getLength() > 0)
               {
                  ElementEx img = images.getItem(0).cast();
View Full Code Here

Examples of org.rstudio.studio.client.workbench.exportplot.ExportPlotSizeEditor

    
  
   @Override
   protected ExportPlotOptions getCurrentOptions(ExportPlotOptions previous)
   {
      ExportPlotSizeEditor sizeEditor = getSizeEditor();
      return ExportPlotOptions.create(sizeEditor.getImageWidth(),
                                      sizeEditor.getImageHeight(),
                                      sizeEditor.getKeepRatio(),
                                      previous.getFormat(),
                                      previous.getViewAfterSave(),
                                      getCopyAsMetafile());   
   }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.exportplot.ExportPlotSizeEditor

      return copyAsMetafileRadioButton_.getValue();
   }
  
   private void copyAsMetafile(final Operation onCompleted)
   {
      ExportPlotSizeEditor sizeEditor = getSizeEditor();
      clipboard_.copyPlotToClipboardMetafile(
            sizeEditor.getImageWidth(),
            sizeEditor.getImageHeight(),
            new Command()
            {
               @Override
               public void execute()
               {
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.