Tabnine Logo
ParameterList.getObjectParameter
Code IndexAdd Tabnine to your IDE (free)

How to use
getObjectParameter
method
in
javax.media.jai.ParameterList

Best Java code snippets using javax.media.jai.ParameterList.getObjectParameter (Showing top 10 results out of 315)

origin: geotools/geotools

/** Returns the string value of an operation parameter. */
public String stringValue() throws InvalidParameterTypeException {
  final String name = getName();
  try {
    // Really cast to CharSequence (even if not needed for toString())
    // because we want the ClassCastException if the type mismatch.
    return ((CharSequence) parameters.getObjectParameter(name)).toString();
  } catch (ClassCastException exception) {
    throw invalidType(exception);
  }
}
origin: geotools/geotools

/** Returns an ordered sequence of two or more integer values of an operation parameter list. */
public int[] intValueList() throws InvalidParameterTypeException {
  final String name = getName();
  try {
    return (int[]) parameters.getObjectParameter(name);
  } catch (ClassCastException exception) {
    throw invalidType(exception);
  }
}
origin: geotools/geotools

/** Returns an ordered sequence of two or more numeric values of an operation parameter list. */
public double[] doubleValueList() throws InvalidParameterTypeException {
  final String name = getName();
  try {
    return (double[]) parameters.getObjectParameter(name);
  } catch (ClassCastException exception) {
    throw invalidType(exception);
  }
}
origin: geotools/geotools

/**
 * Returns a reference to a file or a part of a file containing one or more parameter value.
 *
 * @todo Add automatic conversions, if it appears usefull for JAI parameters.
 */
public URI valueFile() throws InvalidParameterTypeException {
  final String name = getName();
  try {
    return (URI) parameters.getObjectParameter(name);
  } catch (ClassCastException exception) {
    throw invalidType(exception);
  }
}
origin: geotools/geotools

/**
 * Returns the parameter value as an object. The object type is typically a {@link Double},
 * {@link Integer}, {@link Boolean}, {@link String}, {@link URI}, {@code double[]} or {@code
 * int[]}.
 */
public T getValue() {
  final String name = getName();
  final Object value;
  try {
    value = parameters.getObjectParameter(name);
  } catch (IllegalStateException ignore) {
    /*
     * Thrown when the value still ParameterListDescriptor.NO_PARAMETER_DEFAULT.
     * In this framework, the desired behavior in this case is to returns null.
     */
    return null;
  }
  return getType().cast(value);
}
origin: geotools/geotools

    Arrays.equals(
        values.parameter("constants").doubleValueList(),
        (double[]) values.parameters.getObjectParameter("constants")));
assertSame(before, values.parameter("constants"));
origin: org.geotools/gt-coverage

KernelJAI mask1 = (KernelJAI) block.getObjectParameter("Mask1");
KernelJAI mask2 = (KernelJAI) block.getObjectParameter("Mask2");
origin: org.geotools/gt2-coverage

KernelJAI mask1 = (KernelJAI) block.getObjectParameter("Mask1");
KernelJAI mask2 = (KernelJAI) block.getObjectParameter("Mask2");
origin: org.geotools/gt-coverage

final KernelJAI mask1 = (KernelJAI) block.getObjectParameter("Mask1");
final KernelJAI mask2 = (KernelJAI) block.getObjectParameter("Mask2");
final double size = (mask1.getWidth() + mask1.getHeight() +
           mask2.getWidth() + mask2.getHeight()) / 4.0;
origin: org.geotools/gt2-coverage

final KernelJAI mask1 = (KernelJAI) block.getObjectParameter("Mask1");
final KernelJAI mask2 = (KernelJAI) block.getObjectParameter("Mask2");
final double size = (mask1.getWidth() + mask1.getHeight() +
           mask2.getWidth() + mask2.getHeight()) / 4.0;
javax.media.jaiParameterListgetObjectParameter

Popular methods of ParameterList

  • setParameter
  • getIntParameter
  • getParameterListDescriptor
  • getBooleanParameter
  • getByteParameter
  • getDoubleParameter
  • getFloatParameter
  • getLongParameter
  • getShortParameter

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • String (java.lang)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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