public void setWidth ( double width ) { switch ( type ) { case BOX : box . setWidth ( width ) ; box . setDepth ( width ) ; break ; case CYLINDER : cylinder . setRadius ( width * 0.5 ) ; break ; default : break ; } }
Sets the width of the line .