com.bc.ceres.swing.binding.Binding.getPropertyValue()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(121)

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

Binding.getPropertyValue介绍

暂无

代码示例

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

public boolean isAutoMinMax() {
  return (Boolean) bindingContext.getBinding("autoMinMax").getPropertyValue();
}

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

@Override
public void adjustComponents() {
  final Color color = (Color) getBinding().getPropertyValue();
  colorComboBox.setSelectedColor(ImageInfo.NO_COLOR.equals(color) ? null : color);
}

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

private ImageInfo.HistogramMatching getHistogramMatching() {
  Binding binding = getBindingContext().getBinding(HISTOGRAM_MATCHING_PROPERTY);
  return  binding != null ? (ImageInfo.HistogramMatching) binding.getPropertyValue() : null;
}

代码示例来源:origin: senbox-org/snap-desktop

@Override
public void adjustComponents() {
  final Color color = (Color) getBinding().getPropertyValue();
  colorComboBox.setSelectedColor(color);
}

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

private Color getNoDataColor() {
  return (Color) getBindingContext().getBinding(NO_DATA_COLOR_PROPERTY).getPropertyValue();
}

代码示例来源:origin: senbox-org/snap-desktop

@Override
public void adjustComponents() {
  Object value = getBinding().getPropertyValue();
  if (value != null) {
    list.setSelectedValue(value, true);
  } else {
    list.clearSelection();
  }
}

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

@Override
public void adjustComponents() {
  Object value = getBinding().getPropertyValue();
  if (value != null) {
    list.setSelectedValue(value, true);
  } else {
    list.clearSelection();
  }
}

代码示例来源:origin: senbox-org/snap-desktop

@Override
public void adjustComponents() {
  Object value = getBinding().getPropertyValue();
  if (value != null) {
    list.setSelectedValue(value, true);
  } else {
    list.clearSelection();
  }
}

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

@Override
  public void propertyChange(PropertyChangeEvent pce) {
    hidePopup();
    setSliderSample(sliderIndex, (Double) ctx.getBinding("sample").getPropertyValue());
    computeZoomInToSliderLimits();
    applyChanges();
  }
});

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

@Override
  public void propertyChange(PropertyChangeEvent evt) {
    final boolean saveExpressionOnly = (Boolean) context.getBinding(
        PROPERTY_NAME_SAVE_EXPRESSION_ONLY).getPropertyValue();
    if (!saveExpressionOnly) {
      context.getBinding(PROPERTY_NAME_NO_DATA_VALUE_USED).setPropertyValue(true);
    }
  }
});

代码示例来源:origin: senbox-org/snap-desktop

private String getAxisLabel() {
  boolean logScaled = (Boolean) bindingContext.getBinding(PROPERTY_NAME_LOGARITHMIC_HISTOGRAM).getPropertyValue();
  return StatisticChartStyling.getAxisLabel(getRaster(), "X", logScaled);
}

代码示例来源:origin: senbox-org/snap-desktop

public void adjustAxis(ValueAxis axis, int numDecimalPlaces) {
  final double lowerRange = MathUtils.round((Double) getBindingContext().getBinding("min").getPropertyValue(), roundFactor(numDecimalPlaces));
  final double upperRange = MathUtils.round((Double) getBindingContext().getBinding("max").getPropertyValue(), roundFactor(numDecimalPlaces));
  axis.setRange(lowerRange, upperRange);
}

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

public void adjustAxis(ValueAxis axis, int numDecimalPlaces) {
  final double lowerRange = MathUtils.round((Double) getBindingContext().getBinding("min").getPropertyValue(), roundFactor(numDecimalPlaces));
  final double upperRange = MathUtils.round((Double) getBindingContext().getBinding("max").getPropertyValue(), roundFactor(numDecimalPlaces));
  axis.setRange(lowerRange, upperRange);
}

代码示例来源:origin: senbox-org/snap-desktop

@Override
public void updateImageInfoFromMoreOptions(MoreOptionsForm moreOptionsForm) {
  super.updateImageInfoFromMoreOptions(moreOptionsForm);
  BindingContext bindingContext = moreOptionsForm.getBindingContext();
  ImageInfo.UncertaintyVisualisationMode mode = (ImageInfo.UncertaintyVisualisationMode) bindingContext.getBinding(UNCERTAINTY_MODE_PROPERTY).getPropertyValue();
  getModifiedImageInfo().setUncertaintyVisualisationMode(mode);
}

代码示例来源:origin: senbox-org/snap-desktop

public void actionPerformed(ActionEvent e) {
    ProductExpressionPane expressionPane = getProductExpressionPane(currentProduct);
    expressionPane.setCode((String) binding.getPropertyValue());
    if (expressionPane.showModalDialog(null, "Expression Editor") == ModalDialog.ID_OK) {
      binding.setPropertyValue(expressionPane.getCode());
    }
  }
});

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

public void actionPerformed(ActionEvent e) {
    ProductExpressionPane expressionPane = getProductExpressionPane(currentProduct);
    expressionPane.setCode((String) binding.getPropertyValue());
    if (expressionPane.showModalDialog(null, "Expression Editor") == ModalDialog.ID_OK) {
      binding.setPropertyValue(expressionPane.getCode());
    }
  }
});

代码示例来源:origin: senbox-org/snap-desktop

private void updateScalingOfYAxis() {
  final boolean logScaled = (Boolean) yAxisRangeControl.getBindingContext().getBinding(PROPERTY_NAME_LOG_SCALED).getPropertyValue();
  final XYPlot plot = chart.getXYPlot();
  plot.setRangeAxis(StatisticChartStyling.updateScalingOfAxis(logScaled, plot.getRangeAxis(), true));
}

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

private void updateScalingOfYAxis() {
  final boolean logScaled = (Boolean) yAxisRangeControl.getBindingContext().getBinding(PROPERTY_NAME_LOG_SCALED).getPropertyValue();
  final XYPlot plot = chart.getXYPlot();
  plot.setRangeAxis(StatisticChartStyling.updateScalingOfAxis(logScaled, plot.getRangeAxis(), true));
}

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

@Test
public void testInitialValues() throws Exception {
  final AxisRangeControl axisRangeControl = new AxisRangeControl("");
  axisRangeControl.getPanel();
  assertEquals(true, axisRangeControl.getBindingContext().getBinding("autoMinMax").getPropertyValue());
  assertEquals((Double) 0.0, axisRangeControl.getMin());
  assertEquals((Double) 100.0, axisRangeControl.getMax());
}

代码示例来源:origin: senbox-org/snap-desktop

@Test
public void testInitialValues() throws Exception {
  final AxisRangeControl axisRangeControl = new AxisRangeControl("");
  axisRangeControl.getPanel();
  assertEquals(true, axisRangeControl.getBindingContext().getBinding("autoMinMax").getPropertyValue());
  assertEquals((Double) 0.0, axisRangeControl.getMin());
  assertEquals((Double) 100.0, axisRangeControl.getMax());
}

相关文章