Tabnine Logo
ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer
Code IndexAdd Tabnine to your IDE (free)

How to use
createMapBackedOperatorPropertyContainer
method
in
org.esa.snap.core.gpf.annotations.ParameterDescriptorFactory

Best Java code snippets using org.esa.snap.core.gpf.annotations.ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer (Showing top 6 results out of 315)

origin: senbox-org/s2tbx

SpectralAngleMapperFormModel(SpectralAngleMapperForm parentForm) {
  this.parentForm = parentForm;
  container = ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer("SpectralAngleMapperOp", parameterMap);
}
origin: senbox-org/snap-desktop

@Before
public void before() {
  final PropertyContainer pc = ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer("Mosaic");
  bindingContext = new BindingContext(pc);
}
origin: senbox-org/snap-desktop

@Before
public void before() {
  final PropertyContainer pc = ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer("Mosaic");
  bindingContext = new BindingContext(pc);
}
origin: senbox-org/s2tbx

S2tbxMosaicFormModel(S2tbxMosaicForm parentForm) {
  this.parentForm = parentForm;
  container = ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer("Multi-size Mosaic", parameterMap);
  addTransientProperty(PROPERTY_UPDATE_PRODUCT, Product.class);
  addTransientProperty(PROPERTY_UPDATE_MODE, Boolean.class);
  addTransientProperty(PROPERTY_SHOW_SOURCE_PRODUCTS, Boolean.class);
  addTransientProperty(PROPERTY_NATIVE_RESOLUTION, Boolean.class);
  container.setDefaultValues();
  container.setValue(PROPERTY_UPDATE_MODE, false);
  container.setValue(PROPERTY_SHOW_SOURCE_PRODUCTS, false);
  container.setValue(PROPERTY_NATIVE_RESOLUTION, true);
  container.addPropertyChangeListener(PROPERTY_SHOW_SOURCE_PRODUCTS,
   (PropertyChangeEvent evt)->{
      if (Boolean.TRUE.equals(evt.getNewValue())) {
        final Collection<Product> products = sourceProductMap.values();
        worldMapModel.setProducts(products.toArray(new Product[products.size()]));
      } else {
        worldMapModel.setProducts(null);
      }
  });
}
origin: senbox-org/snap-desktop

MosaicFormModel(MosaicForm parentForm) {
  this.parentForm = parentForm;
  container = ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer("Mosaic", parameterMap);
  addTransientProperty(PROPERTY_UPDATE_PRODUCT, Product.class);
  addTransientProperty(PROPERTY_UPDATE_MODE, Boolean.class);
  addTransientProperty(PROPERTY_SHOW_SOURCE_PRODUCTS, Boolean.class);
  container.setDefaultValues();
  container.setValue(PROPERTY_UPDATE_MODE, false);
  container.setValue(PROPERTY_SHOW_SOURCE_PRODUCTS, false);
  container.addPropertyChangeListener(PROPERTY_SHOW_SOURCE_PRODUCTS, new PropertyChangeListener() {
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
      if (Boolean.TRUE.equals(evt.getNewValue())) {
        final Collection<Product> products = sourceProductMap.values();
        worldMapModel.setProducts(products.toArray(new Product[products.size()]));
      } else {
        worldMapModel.setProducts(null);
      }
    }
  });
}
origin: senbox-org/snap-desktop

public BinningFormModel() {
  parameterMap = new HashMap<>();
  propertySet = ParameterDescriptorFactory.createMapBackedOperatorPropertyContainer("Binning", parameterMap);
  hideProperties();
  // dynamically init the value set
  String[] readerFormats = ProductIOPlugInManager.getInstance().getAllProductReaderFormatStrings();
  Arrays.sort(readerFormats);
  PropertyDescriptor descriptor = propertySet.getDescriptor(PROPERTY_KEY_SOURCE_PRODUCT_FORMAT);
  descriptor.setValueSet(new ValueSet(readerFormats));
  // Just for GUI
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_GLOBAL, Boolean.class));                                    // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_COMPUTE_REGION, Boolean.class));                            // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_MANUAL_WKT, Boolean.class));                                // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_WKT, String.class));                                        // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_BOUNDS, Boolean.class));                                    // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_EAST_BOUND, Double.class));                                 // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_NORTH_BOUND, Double.class));                                // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_WEST_BOUND, Double.class));                                 // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_SOUTH_BOUND, Double.class));                                // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_SOURCE_PRODUCTS, Product[].class));                         // temp
  propertySet.addProperty(createTransientProperty(PROPERTY_KEY_CONTEXT_SOURCE_PRODUCT, Product.class));                    // temp
  propertySet.setDefaultValues();
  propertySet.getProperty(PROPERTY_KEY_REGION).addPropertyChangeListener(evt -> {
    Geometry newGeometry = (Geometry) evt.getNewValue();
    propertySet.setValue(PROPERTY_KEY_MANUAL_WKT, true);
    propertySet.setValue(PROPERTY_KEY_WKT, newGeometry.toText());
  });
}
org.esa.snap.core.gpf.annotationsParameterDescriptorFactorycreateMapBackedOperatorPropertyContainer

Popular methods of ParameterDescriptorFactory

  • <init>
  • getSourceProductMap
  • convert

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Path (java.nio.file)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now