示例#1
0
 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);
 }
示例#2
0
 public void updateVisibility() {
   updateVisibilityFor(getEdgeWeight());
 }