org.esa.beam.util.Debug.trace()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(209)

本文整理了Java中org.esa.beam.util.Debug.trace()方法的一些代码示例,展示了Debug.trace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Debug.trace()方法的具体详情如下:
包路径:org.esa.beam.util.Debug
类名称:Debug
方法名:trace

Debug.trace介绍

[英]Prints the given property change event to the current writer if and only if the debugging class functionality is enabled.
[中]仅当调试类功能已启用时,才会将给定的属性更改事件打印到当前编写器。

代码示例

代码示例来源:origin: bcdev/beam

@Override
public void dockableFrameFloating(DockableFrameEvent dockableFrameEvent) {
  Debug.trace("dockableFrameEvent = " + dockableFrameEvent);
  ensurePageComponentControlCreated();
}

代码示例来源:origin: bcdev/beam

@Override
public void dockableFrameAutohideShowing(DockableFrameEvent dockableFrameEvent) {
  Debug.trace("dockableFrameEvent = " + dockableFrameEvent);
  ensurePageComponentControlCreated();
}

代码示例来源:origin: bcdev/beam

@Override
  public void dockableFrameRestored(DockableFrameEvent dockableFrameEvent) {
    Debug.trace("dockableFrameEvent = " + dockableFrameEvent);
    ensurePageComponentControlCreated();
  }
}

代码示例来源:origin: bcdev/beam

private void setLayerStyle(String styleCss) {
  // todo - implement me (nf)
  // this method is called if no figure is selected, but the layer editor is showing and users can modify style settings
  Debug.trace("VectorDataLayer.setLayerStyle: styleCss = " + styleCss);
}

代码示例来源:origin: bcdev/beam

/**
 * Sets the pattern string for the external geolocation.
 *
 * @param externalGeolocationPattern the pattern for the external geolocation, can be null
 */
public void setExternalGeolocationPattern(String externalGeolocationPattern) {
  Debug.trace("ModisProductDescription.externalGeolocationPattern = " + externalGeolocationPattern);
  _externalGeolocationPattern = externalGeolocationPattern;
}

代码示例来源:origin: bcdev/beam

private void traceParameterValues() {
  Debug.trace("DefaultMapTransformUI.traceParameterValues:");
  for (int i = 0; i < _parameters.length; i++) {
    Debug.trace("  DefaultMapTransformUI.parameters[" + i + "] = " + _parameters[i].getValue());
  }
}

代码示例来源:origin: bcdev/beam

private void traceDddbFieldSizeParameters() {
  Iterator it = parameters.keySet().iterator();
  Debug.trace("ProductFile: DDDB field size parameters = {");
  while (it.hasNext()) {
    Object name = it.next().toString();
    Object value = parameters.get(name);
    Debug.trace("  " + name + " = " + value);
  }
  Debug.trace("}");
}

代码示例来源:origin: bcdev/beam

private void closeH5T(int typeID) {
  if (typeID != -1) {
    try {
      H5.H5Tclose(typeID);
    } catch (HDF5LibraryException e) {
      Debug.trace(e);
      /*...*/
    }
  }
}

代码示例来源:origin: bcdev/beam

private void closeH5A(int attributeID) {
  if (attributeID != -1) {
    try {
      H5.H5Aclose(attributeID);
    } catch (HDF5LibraryException e) {
      Debug.trace(e);
      /*...*/
    }
  }
}

代码示例来源:origin: bcdev/beam

private void closeH5D(int datasetID) {
  if (datasetID != -1) {
    try {
      H5.H5Dclose(datasetID);
    } catch (HDF5LibraryException e) {
      Debug.trace(e);
      /*...*/
    }
  }
}

代码示例来源:origin: bcdev/beam

private static int getNumColors(Element bandStatisticsElem) {
  int numColors = 256;
  try {
    numColors = Integer.parseInt(bandStatisticsElem.getChildTextTrim(DimapProductConstants.TAG_NUM_COLORS));
  } catch (NumberFormatException e) {
    Debug.trace(e);
  }
  return numColors;
}

代码示例来源:origin: bcdev/beam

@Override
public void setGeometry(Geometry geometry) {
  if (!geometryType.isAssignableFrom(geometry.getClass())) {
    Debug.trace("WARNING: Assigning a geometry of type " + geometry.getClass() + ", should actually be a " + geometryType);
  }
  simpleFeature.setDefaultGeometry(geometry);
  forceRegeneration();
  fireFigureChanged();
}

代码示例来源:origin: bcdev/beam

@Override
public void dockableFrameShown(DockableFrameEvent dockableFrameEvent) {
  Debug.trace("dockableFrameEvent = " + dockableFrameEvent);
  ensurePageComponentControlCreated();
  getPageComponent().componentShown();
}

代码示例来源:origin: bcdev/beam

protected void fireFocusGained(PageComponent component) {
  Debug.trace("AbstractApplicationPage.fireFocusGained [" + component + "]");
  component.componentFocusGained();
  for (PageComponentListener listener : pageComponentListeners) {
    listener.componentFocusGained(component);
  }
}

代码示例来源:origin: bcdev/beam

protected void fireFocusLost(PageComponent component) {
  Debug.trace("AbstractApplicationPage.fireFocusLost [" + component + "]");        
  component.componentFocusLost();
  for (PageComponentListener listener : pageComponentListeners) {
    listener.componentFocusLost(component);
  }
}

代码示例来源:origin: bcdev/beam

public MapTransform createTransform() {
  Debug.trace("DefaultMapTransformUI.createTransform");
  traceParameterValues();
  final MapTransform transform = _transform.getDescriptor().createTransform(getParameterValues());
  final double[] parameterValues = transform.getParameterValues();
  for (int i = 0; i < parameterValues.length; i++) {
    Debug.trace("  MapTransform.parameterValues[" + i + "] = " + parameterValues[i]);
  }
  return transform;
}

代码示例来源:origin: bcdev/beam

protected void addGeoCodingToProduct(final Product product) {

    if (!getSourceProduct().transferGeoCodingTo(product, getSubsetDef())) {
      Debug.trace("GeoCoding could not be transferred.");
    }
  }
}

代码示例来源:origin: bcdev/beam

private void createBandReaders() throws IOException {
  if (landsatHeader != null) {
    final int width = landsatHeader.getImageWidth();
    if (landsatBands != null) {
      for (LandsatTMBand tempBand : landsatBands) {
        addBandReader(new LandsatByteBandReader(width, tempBand.getBandName(), tempBand.createStream()));
      }
    }
  } else {
    Debug.trace("no landsat header object available!");
  }
}

代码示例来源:origin: bcdev/beam

public DefaultMapTransformUI(MapTransform transform) {
  Guardian.assertNotNull("transform", transform);
  Debug.trace("DefaultMapTransformUI.init");
  _transform = transform;
  _parameters = cloneParameterArray(transform.getDescriptor().getParameters());
  setParameterValues(transform.getParameterValues());
  traceParameterValues();
}

代码示例来源:origin: bcdev/beam

public void vectorDataLayerSelected(VectorDataLayer vectorDataLayer) {
  Debug.trace("VectorDataFigureEditor.vectorDataLayerSelected: " + vectorDataLayer.getName());
  this.vectorDataNode = vectorDataLayer.getVectorDataNode();
  setFigureCollection(vectorDataLayer.getFigureCollection());
  setFigureFactory(vectorDataLayer.getFigureFactory());
  final DefaultFigureStyle style = new DefaultFigureStyle();
  style.fromCssString(vectorDataLayer.getVectorDataNode().getDefaultStyleCss());
  setDefaultLineStyle(style);
  setDefaultPolygonStyle(style);
}

相关文章