コード例 #1
0
  @Override
  protected void initProperties() {

    super.initProperties();
    properties =
        PropertyUtil.setProperty(
            properties,
            PropertyConstants.EDGE_PROPERTY_TYPE,
            PropertyConstants.EDGE_PROPERTY_TYPE_CURVED_ORTHOGONAL);
    PropertyUtil.makeEditable(properties, PropertyConstants.EDGE_PROPERTY_TYPE, false);
    properties =
        PropertyUtil.setProperty(properties, PropertyConstants.EDGE_PROPERTY_ROUNGING, rounding);
  }
コード例 #2
0
  @Override
  public void propertyChanged(List<PropertyList> path, PropertyUnit property) {

    super.propertyChanged(path, property);
    String str = PropertyUtil.toString(path, property);
    if (PropertyConstants.EDGE_PROPERTY_ROUNGING.equals(str)) {
      rounding = ConvertUtil.object2int(property.getValue());
    }
  }
コード例 #3
0
  @Override
  public void setProperties(PropertyList properties) {

    super.setProperties(properties);
    rounding = PropertyUtil.getProperty(properties, PropertyConstants.EDGE_PROPERTY_ROUNGING, 0);
  }