public void updateEdgeWidthTo(double value) { PPath ppath = getEdgePPath(); if (ppath != null) { if (isSelfLoop) { // ppath.setBounds(getSelfLoopBoundsFor(value)); ppath.setPathTo(createSelfLoopShape()); ppath.setStroke(null); } else { double strokeWidth = normalizeForWidthScale(value); Stroke stroke = createStrokeFor(strokeWidth); ppath.setStroke(stroke); } } updateVisibilityFor(value); }
public void updateVisibility() { updateVisibilityFor(getEdgeWeight()); }