Class StationModelDisplayable

Direct Known Subclasses:
GridValueDisplayable, StationLocationDisplayable

public class StationModelDisplayable extends DisplayableData
Class for displaying a station (layout) model plot
Author:
IDV Development Team
  • Field Details

  • Constructor Details

    • StationModelDisplayable

      public StationModelDisplayable() throws VisADException, RemoteException
      Default constructor;
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • StationModelDisplayable

      public StationModelDisplayable(String name) throws VisADException, RemoteException
      Construct a StationModelDisplayable with the specified name
      Parameters:
      name - name of displayable and StationModel
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • StationModelDisplayable

      public StationModelDisplayable(String name, JythonManager jythonManager) throws VisADException, RemoteException
      Construct a StationModelDisplayable with the specified name
      Parameters:
      name - name of displayable and StationModel
      jythonManager - The JythonManager for evaluating embedded expressions
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • StationModelDisplayable

      public StationModelDisplayable(StationModel model) throws VisADException, RemoteException
      Construct a StationModelDisplayable using the specified model.
      Parameters:
      model - StationModel to use for data depiction
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • StationModelDisplayable

      public StationModelDisplayable(StationModel model, JythonManager jythonManager) throws VisADException, RemoteException
      Construct a StationModelDisplayable using the specified model.
      Parameters:
      model - StationModel to use for data depiction
      jythonManager - The JythonManager for evaluating embedded expressions
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • StationModelDisplayable

      public StationModelDisplayable(String name, StationModel stationModel) throws VisADException, RemoteException
      Construct a StationModelDisplayable using the specified model and name.
      Parameters:
      name - name of for this displayable data reference
      stationModel - StationModel to use for data depiction
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • StationModelDisplayable

      public StationModelDisplayable(String name, StationModel stationModel, JythonManager jythonManager) throws VisADException, RemoteException
      Construct a StationModelDisplayable using the specified model and name.
      Parameters:
      name - name of for this displayable data reference
      stationModel - StationModel to use for data depiction
      jythonManager - The JythonManager for evaluating embedded expressions
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • StationModelDisplayable

      protected StationModelDisplayable(StationModelDisplayable that) throws VisADException, RemoteException
      Clone constructor to create another instance.
      Parameters:
      that - object to clone from.
      Throws:
      RemoteException - a remote error
      VisADException - a VisAD error
  • Method Details

    • setStationData

      public void setStationData(FieldImpl stationData) throws VisADException, RemoteException
      Set the station data to display using the StationModel.
      Parameters:
      stationData - Field of station observations.
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • setColor

      public void setColor(Color c) throws VisADException, RemoteException
      Set the color
      Overrides:
      setColor in class Displayable
      Parameters:
      c - the new color
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • getColor

      public Color getColor()
      Get the default color
      Returns:
      the color
    • toFront

      public void toFront() throws RemoteException, VisADException
      Implement toFront
      Overrides:
      toFront in class Displayable
      Throws:
      VisADException - unable to create specified VisAD objects
      RemoteException - unable to create specified remote objects
    • cloneForDisplay

      public Displayable cloneForDisplay() throws RemoteException, VisADException
      Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.
      Overrides:
      cloneForDisplay in class DisplayableData
      Returns:
      A semi-deep clone of this instance.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setStationModel

      public void setStationModel(StationModel model) throws VisADException, RemoteException
      Set the station ob model for this object
      Parameters:
      model - StationModel to use
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setStationModel

      public void setStationModel(StationModel model, boolean update) throws VisADException, RemoteException
      Set the station ob model for this object
      Parameters:
      model - StationModel to use
      update - update data using new model
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getStationModel

      public StationModel getStationModel()
      Get the station model used by this displayable.
      Returns:
      the station model
    • writeKmzFile

      public boolean writeKmzFile(File f, FieldImpl data, String name, int kmzIconWidth, int kmzIconHeight, Color bgColor) throws Exception
      Write the station display into a kmz file
      Parameters:
      f - The file
      data - The data
      name - Name for kml
      kmzIconWidth - icon width
      kmzIconHeight - icon height
      bgColor - background color of icon
      Returns:
      success
      Throws:
      Exception - on badness
    • destroy

      protected void destroy() throws RemoteException, VisADException
      Called when the displayable is removed from a display master
      Overrides:
      destroy in class DisplayableData
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setScale

      public void setScale(float newScale) throws VisADException, RemoteException
      Set the scale of the ShapeControl. Usually done to set the initial scale.
      Parameters:
      newScale - scale to use.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getScale

      public float getScale()
      Get the scale of the ShapeControl.
      Returns:
      current scale;
    • setShouldUseAltitude

      public void setShouldUseAltitude(boolean value) throws VisADException, RemoteException
      Set the ShouldUseAltitude property.
      Parameters:
      value - The new value for ShouldUseAltitude
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • getShouldUseAltitude

      public boolean getShouldUseAltitude()
      Get the ShouldUseAltitude property.
      Returns:
      The ShouldUseAltitude
    • setSelectedRange

      public void setSelectedRange(double low, double hi) throws VisADException, RemoteException
      Set selected range with the range for select
      Overrides:
      setSelectedRange in class Displayable
      Parameters:
      low - low select value
      hi - hi select value
      Throws:
      RemoteException - Java RMI error
      VisADException - problem creating VisAD object
    • setRangeForSelect

      public void setRangeForSelect(double low, double hi) throws VisADException, RemoteException
      Set the upper and lower limit of the range values associated with a color table.
      Parameters:
      low - the minimun value
      hi - the maximum value
      Throws:
      RemoteException - Java RMI error
      VisADException - problem creating VisAD object
    • hasSelectedRange

      public boolean hasSelectedRange()
      Returns whether this Displayable has a valid range (i.e., lowSelectedRange and highSelectedRange are both not NaN's
      Returns:
      true if range has been set
    • setRotateShapes

      public void setRotateShapes(boolean value)
      Set the RotateShapes property.
      Parameters:
      value - The new value for RotateShapes
    • getRotateShapes

      public boolean getRotateShapes()
      Get the RotateShapes property.
      Returns:
      The RotateShapes