/** _more_ */ public void initDone() { try { setRequestProperties(); setVerticalAxisRange(new Range(0, 20000)); loadDataFromLine(); FieldImpl fieldImpl = (FieldImpl) (getGridDataInstance().getGrid()).getSample(0); GriddedSet domainSet = (GriddedSet) GridUtil.getSpatialDomain(fieldImpl); Unit xUnit = domainSet.getSetUnits()[0]; String unitlabel = xUnit.toString(); if (unitlabel.equalsIgnoreCase("1000.0 m")) { unitlabel = "km"; } // xScale.setTitle("Distance along ground (" + unitlabel + ")"); // Do we need this here or is it already done in setData? updateCenterPoint(); } catch (Exception e) { logException("Initializing the csSelector", e); } csSelector.addPropertyChangeListener(this); updatePositionWidget(); }