/** * Set the line width used for LineAttributes. Calls changeControl and resets the display. * * @param width width to use (>= 1.0) * @throws VisADException couldn't set the line width on local display * @throws RemoteException couldn't set the line width on remote display */ public void setLineWidth(float width) throws VisADException, RemoteException { if (width < 1.0f) width = 1.0f; if (Util.isApproximatelyEqual(lineWidth, width)) return; lineWidth = width; // WLH 2 Dec 2002 in response to qomo2.txt DisplayRendererJ3D dr = (DisplayRendererJ3D) getDisplayRenderer(); dr.setLineWidth(width); changeControl(true); getDisplay().reDisplayAll(); }