@Override public void draw(Graphics g) { if (specifiedByUser) strokeColor = specifiedStrokeColor; else strokeColor = normalStrokeColor; super.draw(g); }
public void draw(Graphics g) { super.draw(g); int size2 = HANDLE_SIZE/2; if (!overlay) { for (int i=0; i<handle.length; i++) drawHandle(g, xp2[handle[i]]-size2, yp2[handle[i]]-size2); } }
public void draw(Graphics g) { super.draw(g); int size2 = HANDLE_SIZE/2; if (!overlay) { for (int i=0; i<handle.length; i++) drawHandle(g, xp2[handle[i]]-size2, yp2[handle[i]]-size2); } }
public void draw(Graphics g) { super.draw(g); if (!overlay && ic!=null) { double mag = ic.getMagnification(); int size2 = HANDLE_SIZE/2; for (int i=0; i<4; i++) { if (i==3) //mark starting point handleColor = strokeColor!=null?strokeColor:ROIColor; else handleColor=Color.white; drawHandle(g, hxs(i)-size2, hys(i)-size2); } } }
public void draw(Graphics g) { super.draw(g); if (!overlay && ic!=null) { double mag = ic.getMagnification(); int size2 = HANDLE_SIZE/2; for (int i=0; i<4; i++) { if (i==3) //mark starting point handleColor = strokeColor!=null?strokeColor:ROIColor; else handleColor=Color.white; drawHandle(g, hxs(i)-size2, hys(i)-size2); } } }