public void setVisualStyle(GeoElement geo) { super.setVisualStyle(geo); if (geo.isGeoRay()) { GeoRay ray = (GeoRay) geo; allowOutlyingIntersections = ray.allowOutlyingIntersections; } }