Examples of doOperation()


Examples of org.geotools.coverage.processing.AbstractOperation.doOperation()

        "highValue").setValue(
        histogramConfig.getHighValues());
    params.parameter(
        "numBins").setValue(
        histogramConfig.getNumBins());
    final GridCoverage2D coverage = (GridCoverage2D) op.doOperation(
        params,
        null);

    final javax.media.jai.Histogram histogram = (javax.media.jai.Histogram) coverage.getProperty(Histogram.GT_SYNTHETIC_PROPERTY_HISTOGRAM);
View Full Code Here

Examples of org.geotools.coverage.processing.CoverageProcessor.doOperation()

        ParameterValueGroup param = processor.getOperation("Resample").getParameters();
        param.parameter("Source").setValue( reprojected );
        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
        reprojected = reprojected.view(ViewType.RENDERED);
       
        ImageViewer.show(gridCoverage, "Normal Grid Coverage");
        ImageViewer.show(reprojected, "Reprojected Grid Coverage");
View Full Code Here

Examples of org.geotools.coverage.processing.CoverageProcessor.doOperation()

        ParameterValueGroup param = processor.getOperation("Resample").getParameters();
        param.parameter("Source").setValue( reprojected );
        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
        reprojected = reprojected.view(ViewType.RENDERED);
       
        ViewerOld.show(gridCoverage, "Normal Grid Coverage");
        ViewerOld.show(reprojected, "Reprojected Grid Coverage");
View Full Code Here

Examples of org.geotools.coverage.processing.OperationJAI.doOperation()

            final OperationJAI op = new OperationJAI("Histogram"); //$NON-NLS-1$
            ParameterValueGroup params = op.getParameters();
            params.parameter("Source").setValue(recoloredGridCoverage); //$NON-NLS-1$

            recoloredGridCoverage = (GridCoverage2D) op.doOperation(params, null);
            final Histogram h = (Histogram) recoloredGridCoverage.getProperty("histogram"); //$NON-NLS-1$

            Display.getDefault().asyncExec(new Runnable(){
                public void run() {
                    rgbViewer.updateHistograms(h.getBins());
View Full Code Here

Examples of org.geotools.coverage.processing.OperationJAI.doOperation()

      params.parameter("rangesType").setValue(Range.Type.EXCLUDE); //$NON-NLS-1$
      params.parameter("rangeLocalStats").setValue(false); //$NON-NLS-1$
    }
   

    final GridCoverage2D coverage = (GridCoverage2D) op.doOperation(params,null);
    final ZonalStats zstats = (ZonalStats) coverage
        .getProperty(ZonalStatsDescriptor.ZONAL_STATS_PROPERTY);
    double min = zstats.statistic(Statistic.MIN).results().get(0).getValue();
    double max = zstats.statistic(Statistic.MAX).results().get(0).getValue();
    return new double[]{min,max};
View Full Code Here

Examples of org.jboss.test.jbossmx.implementation.util.support.TrivialMBean.doOperation()

         server.registerMBean(new Trivial(), oname);
        
         TrivialMBean mbean = (TrivialMBean)MBeanProxy.get(
               TrivialMBean.class, oname, MBeanServerLocator.getId(server));
        
         mbean.doOperation();
         mbean.setSomething("JBossMX");
        
         assertEquals("JBossMX", mbean.getSomething());
      }
      catch (Throwable t)
View Full Code Here

Examples of org.jboss.test.jbossmx.implementation.util.support.TrivialMBean.doOperation()

         server.registerMBean(new Trivial(), oname);
        
         TrivialMBean mbean = (TrivialMBean)MBeanProxy.get(
               TrivialMBean.class, oname, AgentID.get(server));
        
         mbean.doOperation();
         mbean.setSomething("JBossMX");
        
         assertEquals("JBossMX", mbean.getSomething());
      }
      catch (Throwable t)
View Full Code Here

Examples of org.netbeans.api.autoupdate.OperationSupport.doOperation()

      try {
        // get operation support for complete the disable operation
        OperationSupport support = oc.getSupport();
        // If support is null, no element can be disabled.
        if ( support != null ) {
          restarter = support.doOperation(null);
        }
      } catch (OperationException ex) {
        Exceptions.printStackTrace(ex);
      }
    }
View Full Code Here

Examples of test.implementation.util.support.MyInterface.doOperation()

     
      mbean.setAttributeName("foo");
      mbean.setAttributeName2("bar");
     
      assertTrue(mbean.getAttributeName2().equals("bar"));
      assertTrue(mbean.doOperation().equals("tamppi"));
   }
  
   public void testCustomExceptionHandler() throws Exception
   {
      MBeanServer server = MBeanServerFactory.createMBeanServer();
View Full Code Here

Examples of test.implementation.util.support.MyInterface.doOperation()

      });
        
      server.unregisterMBean(oname);
     
      MyInterface mbean = (MyInterface)ctx;
      assertTrue(mbean.doOperation().equals("tamppi"));     
   }
}
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.