congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RegistryElementDescriptor
Code IndexAdd Tabnine to your IDE (free)

How to use
RegistryElementDescriptor
in
javax.media.jai

Best Java code snippets using javax.media.jai.RegistryElementDescriptor (Showing top 15 results out of 315)

origin: geoserver/geoserver

int unregisteredCount = 0;
for (Iterator factories = opRegistry.getFactoryIterator(mode, red.getName());
    factories != null && factories.hasNext(); ) {
  Object factory = factories.next();
        opRegistry.getOrderedProductList(mode, red.getName());
    if (orderedProductList != null) {
      for (Iterator products = orderedProductList.iterator();
        try {
          opRegistry.unregisterFactory(
              mode, red.getName(), product, factory);
          LOGGER.info(
              "Unregistering JAI factory " + factory.getClass());
origin: geotools/geotools

/**
 * Constructs a parameter descriptor wrapping the specified JAI operation, including sources.
 * The properties map is given unchanged to the {@linkplain
 * AbstractIdentifiedObject#AbstractIdentifiedObject(Map) super-class constructor}.
 *
 * @param properties Set of properties. Should contains at least {@code "name"}.
 * @param operation The JAI's operation descriptor, usually as an instance of {@link
 *     OperationDescriptor}.
 * @param sourceTypeMap Mapping from JAI source type to this group source type. Typically a
 *     singleton with the (<code>{@linkplain RenderedImage}.class</code>, <code>
 *     {@linkplain GridCoverage}.class</code>) key-value pair.
 * @param registryMode The JAI's registry mode (usually {@value
 *     javax.media.jai.registry.RenderedRegistryMode#MODE_NAME}).
 * @deprecated Replaced by {@link #ImagingParameterDescriptors(Map,
 *     RegistryElementDescriptor,String,Map,Collection}.
 */
public ImagingParameterDescriptors(
    final Map<String, ?> properties,
    final RegistryElementDescriptor operation,
    final Map<Class<?>, Class<?>> sourceTypeMap,
    final String registryMode) {
  this(
      properties,
      operation.getParameterListDescriptor(registryMode),
      operation,
      registryMode,
      sourceTypeMap,
      null);
}
origin: org.geotools/gt2-widgets-swing

descriptor     = (RegistryElementDescriptor)it.next();
descriptorNode = new NamedTreeNode(getName(descriptor, locale), descriptor);
param          = descriptor.getParameterListDescriptor(mode);
if (param != null) {
  final String[] names = param.getParamNames();
final String operationName = descriptor.getName();
final List/*<String>*/ products = registry.getOrderedProductList(mode, operationName);
if (products != null) {
origin: geotools/geotools

String name = operation.getName();
final Map<String, Object> properties = new HashMap<String, Object>();
if (operation instanceof OperationDescriptor) {
origin: geotools/geotools

this(
    properties,
    operation.getParameterListDescriptor(registryMode),
    operation,
    registryMode,
origin: org.geotools/gt2-widgets-swing

  public int compare(final Object obj1, final Object obj2) {
    final RegistryElementDescriptor desc1 = (RegistryElementDescriptor) obj1;
    final RegistryElementDescriptor desc2 = (RegistryElementDescriptor) obj2;
    return desc1.getName().compareTo(desc2.getName());
  }
});
origin: org.geotools/gt2-widgets-swing

mode    = operation.getRegistryModeName();
element = operation.getRegistry().getDescriptor(mode, name);
param   = element.getParameterListDescriptor(mode);
origin: org.geotools/gt2-widgets-swing

/**
 * Returns the localized name for the given descriptor. The name will be fecth from the
 * "{@link OperationDescriptor#getResourceBundle LocalName}" resource, if available.
 * Otherwise, the {@linkplain RegistryElementDescriptor#getName non-localized name} is returned.
 */
private static String getName(final RegistryElementDescriptor descriptor, final Locale locale) {
  if (descriptor instanceof OperationDescriptor) {
    ResourceBundle resources = ((OperationDescriptor)descriptor).getResourceBundle(locale);
    if (resources != null) try {
      return resources.getString("LocalName");
    } catch (MissingResourceException exception) {
      // No localized name. Fallback on the default (non-localized) descriptor name.
      // No warning to report here, this exception is really not a problem.
    }
  }
  return descriptor.getName();
}
origin: org.geotools/gt2-widgets-swing

final String mode = operation.getRegistryModeName();
descriptor = operation.getRegistry().getDescriptor(mode, name)
                  .getParameterListDescriptor(mode);
origin: it.geosolutions.jaiext.utilities/jt-utilities

public void unregisterDescriptor(RegistryElementDescriptor descriptor) {
  Lock writeLock = lock.writeLock();
  boolean changed = false;
  try {
    writeLock.lock();
    super.unregisterDescriptor(descriptor);
    changed = true;
    if (LOGGER.isLoggable(Level.FINEST)) {
      LOGGER.log(Level.FINEST, "Unregistered descriptor for the operation: "
          + descriptor.getName());
    }
    // If the collection is present, then it is updated
    if(collection != null && changed && descriptor instanceof OperationDescriptor){
      OperationItem item = new OperationItem((OperationDescriptor) descriptor);
      collection.removeSingleOp(item);
      if (LOGGER.isLoggable(Level.FINEST)) {
        LOGGER.log(Level.FINEST, "Removed descriptor for the operation: "
            + descriptor.getName()  + " from the registry operation list");
      }
    }
  } finally {
    writeLock.unlock();
  }
}
origin: it.geosolutions.jaiext.utilities/jt-utilities

if (LOGGER.isLoggable(Level.FINEST)) {
  LOGGER.log(Level.FINEST, "Registered descriptor for the operation: "
      + descriptor.getName());
  if (LOGGER.isLoggable(Level.FINEST)) {
    LOGGER.log(Level.FINEST, "Added descriptor for the operation: "
        + descriptor.getName()  + " to the registry operation list");
origin: geosolutions-it/jai-ext

public void unregisterDescriptor(RegistryElementDescriptor descriptor) {
  Lock writeLock = lock.writeLock();
  boolean changed = false;
  try {
    writeLock.lock();
    super.unregisterDescriptor(descriptor);
    changed = true;
    if (LOGGER.isLoggable(Level.FINEST)) {
      LOGGER.log(Level.FINEST, "Unregistered descriptor for the operation: "
          + descriptor.getName());
    }
    // If the collection is present, then it is updated
    if(collection != null && changed && descriptor instanceof OperationDescriptor){
      OperationItem item = new OperationItem((OperationDescriptor) descriptor);
      collection.removeSingleOp(item);
      if (LOGGER.isLoggable(Level.FINEST)) {
        LOGGER.log(Level.FINEST, "Removed descriptor for the operation: "
            + descriptor.getName()  + " from the registry operation list");
      }
    }
  } finally {
    writeLock.unlock();
  }
}
origin: geosolutions-it/jai-ext

if (LOGGER.isLoggable(Level.FINEST)) {
  LOGGER.log(Level.FINEST, "Registered descriptor for the operation: "
      + descriptor.getName());
  if (LOGGER.isLoggable(Level.FINEST)) {
    LOGGER.log(Level.FINEST, "Added descriptor for the operation: "
        + descriptor.getName()  + " to the registry operation list");
origin: Geomatys/geotoolkit

  /**
   * Unregisters all Geotk JAI operations.
   */
  @Override
  public void shutdown() {
    if (initialized) {
      final OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry();
      for (final String mode : registry.getRegistryModes()) {
        @SuppressWarnings("unchecked")
        final List<RegistryElementDescriptor> descriptors = registry.getDescriptors(mode);
        for (final RegistryElementDescriptor descriptor : descriptors) {
          final String operationName = descriptor.getName();
          if (operationName.startsWith("org.geotoolkit.")) {
            @SuppressWarnings("unchecked")
            final Iterator<RenderedImageFactory> rif = RIFRegistry.getIterator(registry, operationName);
            while (rif.hasNext()) {
              RIFRegistry.unregister(registry, operationName, PRODUCT_NAME, rif.next());
            }
            registry.unregisterDescriptor(descriptor);
          }
        }
      }
    }
  }
}
origin: Geomatys/geotoolkit

  /**
   * Counts the number of Geotk operations registered in the default JAI instance.
   */
  private static int countGeotkOperations() {
    int count = 0;
    final OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry();
    for (final String mode : registry.getRegistryModes()) {
      @SuppressWarnings("unchecked")
      final List<RegistryElementDescriptor> descriptors = registry.getDescriptors(mode);
      for (final RegistryElementDescriptor descriptor : descriptors) {
        final String operationName = descriptor.getName();
        if (operationName.startsWith("org.geotoolkit.")) {
          count++;
        }
      }
    }
    return count;
  }
}
javax.media.jaiRegistryElementDescriptor

Most used methods

  • getName
  • getParameterListDescriptor

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top PhpStorm 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