/** * Registers multiple entries at once. * @param entries a list of entries */ public final void addEntries (List<Entry> entries) { for (Entry entry : entries) addEntry (entry); }
/** * Registers multiple entries at once. * @param entries a list of entries */ public final void addEntries (List<Entry> entries) { for (Entry entry : entries) addEntry (entry); }
protected void notifyEntryAdded (Entry entry) { anchors[index].addEntry (entry); }
protected void notifyEntryAdded (Entry entry) { anchors[index].addEntry (entry); }
/** * Sets a source anchor of the connection widget. * @param sourceAnchor the source anchor */ public final void setSourceAnchor (Anchor sourceAnchor) { if (this.sourceAnchor != null) this.sourceAnchor.removeEntry (sourceEntry); this.sourceAnchor = sourceAnchor; if (this.sourceAnchor != null) sourceAnchor.addEntry (sourceEntry); reroute (); }
/** * Sets a target anchor of the connection widget. * @param targetAnchor the target anchor */ public final void setTargetAnchor (Anchor targetAnchor) { if (this.targetAnchor != null) this.targetAnchor.removeEntry (targetEntry); this.targetAnchor = targetAnchor; if (targetAnchor != null) targetAnchor.addEntry (targetEntry); reroute (); }
/** * Sets a source anchor of the connection widget. * @param sourceAnchor the source anchor */ public final void setSourceAnchor (Anchor sourceAnchor) { if (this.sourceAnchor != null) this.sourceAnchor.removeEntry (sourceEntry); this.sourceAnchor = sourceAnchor; if (this.sourceAnchor != null) sourceAnchor.addEntry (sourceEntry); reroute (); }
/** * Sets a target anchor of the connection widget. * @param targetAnchor the target anchor */ public final void setTargetAnchor (Anchor targetAnchor) { if (this.targetAnchor != null) this.targetAnchor.removeEntry (targetEntry); this.targetAnchor = targetAnchor; if (targetAnchor != null) targetAnchor.addEntry (targetEntry); reroute (); }