/** * Allows setting the label. * * @param label New label for the wrapped object * @since 0.3.1 */ public void setLabel(String label) { checkIsModifiable(); this.label = label; }
/** * Allows setting the object. * * @param object Object to be wrapped * @since 0.3.1 */ public void setObject(T object) { checkIsModifiable(); this.object = object; // if (object instanceof NetworkElement) // throw new RuntimeException("StringLabeller should not work with NetworkElements"); }