コード例 #1
0
 @Override
 public Map<PropertyName, Object> getChangeMap() {
   final Map<PropertyName, Object> result = new HashMap<>();
   if (MathUtils.equals(sceneGraphObject.getRadiusX(), originalRadiusX) == false) {
     result.put(radiusXName, sceneGraphObject.getRadiusX());
   }
   if (MathUtils.equals(sceneGraphObject.getRadiusY(), originalRadiusY) == false) {
     result.put(radiusYName, sceneGraphObject.getRadiusY());
   }
   return result;
 }
コード例 #2
0
  public Map<IPropertyName, Object> getChangeMap() {
    final Map<IPropertyName, Object> result = new HashMap<>();

    if (MathUtils.equals(treeTableColumn.getMinWidth(), originalSizing.getMinWidth()) == false) {
      result.put(minWidthName, treeTableColumn.getMinWidth());
    }
    if (MathUtils.equals(treeTableColumn.getPrefWidth(), originalSizing.getPrefWidth()) == false) {
      result.put(prefWidthName, treeTableColumn.getPrefWidth());
    }
    if (MathUtils.equals(treeTableColumn.getMaxWidth(), originalSizing.getMaxWidth()) == false) {
      result.put(maxWidthName, treeTableColumn.getMaxWidth());
    }
    return result;
  }