/** * Set the units for the displayed range * * @param unit Unit for display * @throws VisADException VisAD failure. * @throws RemoteException Java RMI failure. */ public void setDisplayUnit(Unit unit) throws VisADException, RemoteException { // Make sure this unit is ok // For now lets comment this out // checkUnit (contourRealType, unit); super.setDisplayUnit(unit); // applyDisplayUnit (contourMap, contourRealType); }
/** * Sets the set of ScalarMap-s of this instance. The ScalarMap-s of this instance will be added to * the set before the SCALAR_MAP_SET property is set. This method fires a PropertyChangeEvent for * SCALAR_MAP_SET with <code>null</code> for the old value and the new set of ScalarMap-s for the * new Value. Intermediate subclasses that have their own ScalarMap-s should override this method * and invoke <code>super.setScalarMaps(ScalarMapSet)</code>. * * @param maps The set of ScalarMap-s to be added. * @throws BadMappingException The RealType of the contour parameter has not been set or its * ScalarMap is alread in the set. */ protected void setScalarMaps(ScalarMapSet maps) throws BadMappingException { if (contourMap == null) { throw new BadMappingException( getClass().getName() + ".setScalarMaps(ScalarMapSet): " + "Contour parameter not yet set"); } maps.add(contourMap); super.setScalarMapSet(maps); }