/** * Adds this instance to a VisAD display. This method is package private because it is expected * that only the constructor's DisplayAdapter argument will invoke this method. * * @throws VisADException VisAD failure. * @throws RemoteException Java RMI failure. */ void addTo() throws VisADException, RemoteException { display.addReferences( dataRenderer, dataReference, (constantMaps == null) ? null : constantMaps.getConstantMaps()); }
/** * Removes this instance from a VisAD display. This method is package private because it is * expected that only the constructor's DisplayAdapter argument will invoke this method. * * @throws VisADException VisAD failure. * @throws RemoteException Java RMI failure. */ void removeFrom() throws VisADException, RemoteException { display.removeReference(dataReference); }