Tabnine Logo
ColorPaletteDef$Point.getLabel
Code IndexAdd Tabnine to your IDE (free)

How to use
getLabel
method
in
org.esa.beam.framework.datamodel.ColorPaletteDef$Point

Best Java code snippets using org.esa.beam.framework.datamodel.ColorPaletteDef$Point.getLabel (Showing top 4 results out of 315)

origin: bcdev/beam

private void setUserDefinedPalette(ColorPaletteDef userPalette) {
  final String suffix = userPalette.getFirstPoint().getLabel();
  final String name;
  if (suffix != null && suffix.trim().length() > 0) {
    name = DERIVED_FROM + " " + suffix.trim();
  } else {
    name = UNNAMED;
  }
  final ColorPaletteWrapper item = new ColorPaletteWrapper(name, userPalette);
  insertItemAt(item, 0);
  setSelectedIndex(0);
}
origin: bcdev/beam

  return point.getLabel();
} else if (columnIndex == 1) {
  final Color color = point.getColor();
origin: bcdev/beam

sXmlW.println(cppTags[0]);
sXmlW.printLine(indent + 3, DimapProductConstants.TAG_SAMPLE, point.getSample());
if (StringUtils.isNotNullAndNotEmpty(point.getLabel())) {
  sXmlW.printLine(indent + 3, DimapProductConstants.TAG_LABEL, point.getLabel());
origin: bcdev/beam

private static void transferPoints(ColorPaletteDef sourceCPD,
                  double minSample,
                  double maxSample,
                  boolean autoDistribute,
                  ColorPaletteDef targetCPD) {
  if (autoDistribute || sourceCPD.isAutoDistribute()) {
    alignNumPoints(sourceCPD, targetCPD);
    double minDisplaySample = sourceCPD.getMinDisplaySample();
    double maxDisplaySample = sourceCPD.getMaxDisplaySample();
    double delta1 = (maxSample > minSample) ? maxSample - minSample : 1.0;
    double delta2 = (maxDisplaySample > minDisplaySample) ? maxDisplaySample - minDisplaySample : 1.0;
    double b = delta1 / delta2;
    double a = minSample - minDisplaySample * b;
    for (int i = 0; i < sourceCPD.getNumPoints(); i++) {
      targetCPD.getPointAt(i).setSample(a + b * sourceCPD.getPointAt(i).getSample());
      targetCPD.getPointAt(i).setColor(sourceCPD.getPointAt(i).getColor());
      targetCPD.getPointAt(i).setLabel(sourceCPD.getPointAt(i).getLabel());
    }
  } else {
    targetCPD.setPoints(sourceCPD.getPoints().clone());
  }
}
org.esa.beam.framework.datamodelColorPaletteDef$PointgetLabel

Popular methods of ColorPaletteDef$Point

  • <init>
  • getColor
  • getSample
  • setColor
  • setSample
  • setLabel
  • clone
  • createClone

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JPanel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Github Copilot alternatives
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