/** * Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin * @return the anchor */ public Anchor createAnchor () { if (anchor == null) anchor = new VMDNodeAnchor (this, false); return anchor; }
/** * Computes a result (position and direction) for a specific entry. * @param entry the entry * @return the calculated result */ public Result compute (Entry entry) { recalculate (); return results.get (entry); }
return; Widget widget = getRelatedWidget (); Point relatedLocation = getRelatedSceneLocation (); HashMap<Entry, Float> bottommap = new HashMap<Entry, Float> (); for (Entry entry : getEntries ()) { Point oppositeLocation = getOppositeSceneLocation (entry); if (oppositeLocation == null || relatedLocation == null) { results.put (entry, new Result (new Point (bounds.x, bounds.y), DIRECTION_ANY)); Entry[] topList = toArray (topmap); Entry[] bottomList = toArray (bottommap);
return; Widget widget = getRelatedWidget (); Point relatedLocation = getRelatedSceneLocation (); HashMap<Entry, Float> bottommap = new HashMap<Entry, Float> (); for (Entry entry : getEntries ()) { Point oppositeLocation = getOppositeSceneLocation (entry); if (oppositeLocation == null || relatedLocation == null) { results.put (entry, new Result (new Point (bounds.x, bounds.y), DIRECTION_ANY)); Entry[] topList = toArray (topmap); Entry[] bottomList = toArray (bottommap);
/** * Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin * @return the anchor */ public Anchor createAnchor () { if (anchor == null) anchor = new VMDNodeAnchor (this, false); return anchor; }
/** * Computes a result (position and direction) for a specific entry. * @param entry the entry * @return the calculated result */ public Result compute (Entry entry) { recalculate (); return results.get (entry); }
this.scheme = scheme; nodeAnchor = new VMDNodeAnchor (this, true, scheme);
this.scheme = scheme; nodeAnchor = new VMDNodeAnchor (this, true, scheme);