Codota Logo
LinearColorMap
Code IndexAdd Codota to your IDE (free)

How to use
LinearColorMap
in
it.geosolutions.jaiext.classifier

Best Java code snippets using it.geosolutions.jaiext.classifier.LinearColorMap (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: geotools/geotools

        9999);
final LinearColorMap list = new LinearColorMap("", new LinearColorMapElement[] {n0});
  assertEquals(list.transform(testNum), testNum, 0.0);
  assertTrue(false);
} catch (Exception e) {
assertEquals(list.transform(Double.NaN), 9999, 0.0);
origin: geotools/geotools

@Test
public void testDynamicColor() {
  entry.setColor(ff.literal("${strConcat('#FF','0000')}"));
  builder.addColorMapEntry(entry);
  LinearColorMap colorMap = builder.buildLinearColorMap();
  LinearColorMapElement[] domainElements = colorMap.getDomainElements();
  assertEquals(1, domainElements.length);
  assertEquals(1, domainElements[0].getColors().length);
  assertEquals(255, domainElements[0].getColors()[0].getRed());
  assertEquals(0, domainElements[0].getColors()[0].getGreen());
  assertEquals(0, domainElements[0].getColors()[0].getBlue());
}
origin: it.geosolutions.jaiext.classifier/jt-classifier

/**
 * @return
 * @uml.property name="name"
 */
public String getName() {
  initColorModel();
  return this.name;
}
origin: geotools/geotools

    new LinearColorMap(
        "testSWAN",
        new LinearColorMapElement[] {c0, c1, c3, c4},
        new Color(0, 0, 0));
assertEquals(list.getSourceDimensions(), 1);
assertEquals(list.getTargetDimensions(), 1);
assertEquals(list.getName().toString(), "testSWAN");
assertNotNull(c0.toString());
origin: geotools/geotools

new LinearColorMap(
    name,
    (LinearColorMapElement[])
origin: it.geosolutions.jaiext.classifier/jt-classifier

public double transform(double value) throws TransformationException {
  initColorModel();
  PiecewiseTransform1DElement transform = (PiecewiseTransform1DElement) findDomainElement(value);
  if (transform != null)
    return transform.transform(value);
  return this.preFilteringPiecewise.transform(value);
}
origin: it.geosolutions.jaiext.classifier/jt-classifier

public Position transform(Position ptSrc, Position ptDst) throws TransformationException {
  // /////////////////////////////////////////////////////////////////////
  //
  // input checks
  //
  // /////////////////////////////////////////////////////////////////////
  ColorMapUtilities.ensureNonNull("ptSrc", ptSrc);
  if (ptDst == null) {
    ptDst = new Position();
  }
  ptDst.setOrdinatePosition(transform(ptSrc.getOrdinatePosition()));
  return ptDst;
}
origin: geosolutions-it/jai-ext

preliminarChecks(standardElements, preFilteringElements);
origin: geotools/geotools

new LinearColorMap(
    "testSWAN",
    new LinearColorMapElement[] {c0, c1, c3, c4},
origin: geosolutions-it/jai-ext

public double transform(double value) throws TransformationException {
  initColorModel();
  PiecewiseTransform1DElement transform = (PiecewiseTransform1DElement) findDomainElement(value);
  if (transform != null)
    return transform.transform(value);
  return this.preFilteringPiecewise.transform(value);
}
origin: geosolutions-it/jai-ext

public Position transform(Position ptSrc, Position ptDst) throws TransformationException {
  // /////////////////////////////////////////////////////////////////////
  //
  // input checks
  //
  // /////////////////////////////////////////////////////////////////////
  ColorMapUtilities.ensureNonNull("ptSrc", ptSrc);
  if (ptDst == null) {
    ptDst = new Position();
  }
  ptDst.setOrdinatePosition(transform(ptSrc.getOrdinatePosition()));
  return ptDst;
}
origin: it.geosolutions.jaiext.classifier/jt-classifier

preliminarChecks(standardElements, preFilteringElements);
origin: geotools/geotools

new LinearColorMap(
    "",
    new LinearColorMapElement[] {c0, c1, c3, c4, c5},
origin: geosolutions-it/jai-ext

/**
 * @return
 * @uml.property name="name"
 */
public String getName() {
  initColorModel();
  return this.name;
}
origin: geotools/geotools

  @Test
  public void testDynamicOpacity() {
    entry.setOpacity(ff.literal("${0.25*2}"));

    builder.addColorMapEntry(entry);
    LinearColorMap colorMap = builder.buildLinearColorMap();
    LinearColorMapElement[] domainElements = colorMap.getDomainElements();
    assertEquals(1, domainElements.length);
    assertEquals(1, domainElements[0].getColors().length);
    assertEquals(128, domainElements[0].getColors()[0].getAlpha());
  }
}
origin: geotools/geotools

new LinearColorMap(
    "",
    new LinearColorMapElement[] {c0, c1, c3, c4, c5, c6},
origin: it.geosolutions.jaiext.classifier/jt-classifier

/**
 * Returns a color model for this category list. This method builds up the color model from each category's colors (as returned by
 * {@link #getColors} ).
 * 
 * @param visibleBand The band to be made visible (usually 0). All other bands, if any will be ignored.
 * @param numBands The number of bands for the color model (usually 1). The returned color model will renderer only the {@code        visibleBand} and
 *        ignore the others, but the existence of all {@code        numBands} will be at least tolerated. Supplemental bands, even invisible, are useful
 *        for processing with Java Advanced Imaging.
 * @return The requested color model, suitable for {@link RenderedImage} objects with values in the <code>       {@link #getRange}        </code>
 *         range.
 * @uml.property name="colorModel"
 */
public IndexColorModel getColorModel() {
  initColorModel();
  return colorModel;
}
origin: geotools/geotools

@Test
public void testDynamicColorEnv() {
  EnvFunction.setLocalValue("color", "#FF0000");
  try {
    entry.setColor(ff.literal("${env('color')}"));
    builder.addColorMapEntry(entry);
    LinearColorMap colorMap = builder.buildLinearColorMap();
    LinearColorMapElement[] domainElements = colorMap.getDomainElements();
    assertEquals(1, domainElements.length);
    assertEquals(1, domainElements[0].getColors().length);
    assertEquals(255, domainElements[0].getColors()[0].getRed());
    assertEquals(0, domainElements[0].getColors()[0].getGreen());
    assertEquals(0, domainElements[0].getColors()[0].getBlue());
  } finally {
    EnvFunction.clearLocalValues();
  }
}
origin: geotools/geotools

new LinearColorMap(
    "",
    new LinearColorMapElement[] {c0, c1, c3, c4, c5, c6},
origin: geosolutions-it/jai-ext

/**
 * Returns a color model for this category list. This method builds up the color model from each category's colors (as returned by
 * {@link #getColors} ).
 * 
 * @param visibleBand The band to be made visible (usually 0). All other bands, if any will be ignored.
 * @param numBands The number of bands for the color model (usually 1). The returned color model will renderer only the {@code        visibleBand} and
 *        ignore the others, but the existence of all {@code        numBands} will be at least tolerated. Supplemental bands, even invisible, are useful
 *        for processing with Java Advanced Imaging.
 * @return The requested color model, suitable for {@link RenderedImage} objects with values in the <code>       {@link #getRange}        </code>
 *         range.
 * @uml.property name="colorModel"
 */
public IndexColorModel getColorModel() {
  initColorModel();
  return colorModel;
}
it.geosolutions.jaiext.classifierLinearColorMap

Javadoc

ColorMapTransform implementation defining a linear colormap transformation

Most used methods

  • <init>
  • transform
  • findDomainElement
  • getDomainElements
  • getName
  • getSourceDimensions
  • getTargetDimensions
  • initColorModel
  • preliminarChecks
    Performing additional check on the provided domain elements in order to control that we don't have a

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now