/**
   * Constructs from nothing.
   *
   * @throws visad.VisADException if a VisAD failure occurs.
   * @throws java.rmi.RemoteException if a Java RMI failure occurs.
   * @throws RemoteException _more_
   * @throws VisADException _more_
   */
  public TrajectoryFeatureTypeSoundingControl() throws VisADException, RemoteException {

    super(true);

    track = new LineDrawing("TrajectoryFeatureTypeSoundingControl track");
    track.setPointSize(2f);

    stationProbes = new PickableLineDrawing("RAOB Points");
    selectedStation = new IndicatorPoint("Selected Station", RealTupleType.LatitudeLongitudeTuple);
  }
Exemplo n.º 2
0
  /**
   * 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} 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)}.
   *
   * @param maps The set of ScalarMap-s to be added.
   * @throws BadMappingException The RealType of the color parameter has not been set or its
   *     ScalarMap is already in the set.
   */
  protected void setScalarMaps(ScalarMapSet maps) throws BadMappingException {

    if (colorMaps[0] == null) {
      throw new BadMappingException(
          getClass().getName() + ".setScalarMaps(ScalarMapSet): " + "Color not yet set");
    }

    for (int i = 0; i < colorMaps.length; i++) {
      maps.add(colorMaps[i]);
    }
    super.setScalarMapSet(maps);
  }
Exemplo n.º 3
0
 /**
  * Set the display.
  *
  * @param display display to set this into
  * @throws DisplayException Display type exception
  * @throws RemoteException Java RMI error
  * @throws VisADException problem creating VisAD object
  */
 public void setDisplay(LocalDisplay display)
     throws DisplayException, VisADException, RemoteException {
   super.setDisplay(display);
   setColorsInControls(colorPalette);
 }