@Override public <T> void set(AttributeKey<T> key, T newValue) { super.set(key, newValue); // if the ModelComponent is set we update the decorations, because // properties like maxReverseVelocity could have changed if (key.equals(FigureConstants.MODEL)) { updateDecorations(); } }
@Override // SimpleLineConnection public void propertiesChanged(AttributesChangeEvent e) { if (!e.getInitiator().equals(this)) { SelectionProperty pType = (SelectionProperty) getModel().getProperty(ElementPropKeys.PATH_CONN_TYPE); PathModel.LinerType type = (PathModel.LinerType) pType.getValue(); setLinerByType(type); // Länge neu berechnen calculateLength(); lineout(); } super.propertiesChanged(e); }