Documentation of 'sgtplot.dm.SimpleGrid' Java class
SimpleGrid
sgtplot.dm

Class SimpleGrid

    • Constructor Detail

      • SimpleGrid

        public SimpleGrid()
        Default constructor.
      • SimpleGrid

        public SimpleGrid(double[] grid,
                          double[] xloc,
                          double[] yloc,
                          java.lang.String title)
        Constructor for X and Y coordinates as double.
        Parameters:
        grid - Z values
        xloc - X coordinates
        yloc - Y coordinates
        title - the title
      • SimpleGrid

        public SimpleGrid(double[] grid,
                          GeoDate[] tloc,
                          double[] yloc,
                          java.lang.String title)
        Constructor for X time and Y double.
        Parameters:
        grid - Z values
        tloc - Time coordinates
        yloc - Y coordinates
        title - the title
      • SimpleGrid

        public SimpleGrid(double[] grid,
                          double[] xloc,
                          GeoDate[] tloc,
                          java.lang.String title)
        Constructor for X double and Y time.
        Parameters:
        grid - Z values
        xloc - X coordinates
        tloc - Time coordinates
        title - the title
    • Method Detail

      • copy

        public SGTData copy()
        Create a copy of the grid.
        Specified by:
        copy in interface SGTData
        Returns:
        shallow copy
        Since:
        2.0
        See Also:
        SGTData
      • getXArray

        public double[] getXArray()
        Description copied from interface: SGTGrid
        Get the array of X values.
        Specified by:
        getXArray in interface SGTGrid
      • getXSize

        public int getXSize()
        Get the length of the x axis
        Specified by:
        getXSize in interface SGTGrid
        Since:
        2.0
      • getYArray

        public double[] getYArray()
        Description copied from interface: SGTGrid
        Get the array of Y values.
        Specified by:
        getYArray in interface SGTGrid
      • getYSize

        public int getYSize()
        Get the length of the y axis
        Specified by:
        getYSize in interface SGTGrid
        Since:
        2.0
      • getZArray

        public double[] getZArray()
        Description copied from interface: SGTGrid
        Get the array of Z values.
        Specified by:
        getZArray in interface SGTGrid
      • getTimeArray

        public GeoDate[] getTimeArray()
        Description copied from interface: SGTGrid
        Get the array of temporal values.
        Specified by:
        getTimeArray in interface SGTGrid
      • getTSize

        public int getTSize()
        Get the length of the Time axis
        Specified by:
        getTSize in interface SGTGrid
        Since:
        2.0
      • isXTime

        public boolean isXTime()
        Description copied from interface: SGTData
        Returns true if the X coordinate is Time.
        Specified by:
        isXTime in interface SGTData
      • isYTime

        public boolean isYTime()
        Description copied from interface: SGTData
        Returns true if the Y coordinate is Time.
        Specified by:
        isYTime in interface SGTData
      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: SGTData
        Get the title.
        Specified by:
        getTitle in interface SGTData
      • setAssociatedData

        public void setAssociatedData(SGTGrid assoc)
        Set the associated data grid.
        Property Change: associatedDataModified.
        Since:
        2.0
      • getAssociatedData

        public SGTGrid getAssociatedData()
        Description copied from interface: SGTGrid
        Get the associated data. The associated data must be of the same type (SGTGrid) and shape.
        Specified by:
        getAssociatedData in interface SGTGrid
      • hasAssociatedData

        public boolean hasAssociatedData()
        Description copied from interface: SGTGrid
        Is there associated data available?
        Specified by:
        hasAssociatedData in interface SGTGrid
      • hasXEdges

        public boolean hasXEdges()
        Description copied from interface: SGTGrid
        Are X edges available?
        Specified by:
        hasXEdges in interface SGTGrid
      • getXEdges

        public double[] getXEdges()
        Description copied from interface: SGTGrid
        Get the X coordinate edges. The XEdge length will be one greater than the XArray length.
        Specified by:
        getXEdges in interface SGTGrid
      • setXEdges

        public void setXEdges(double[] edge)
        Set the values for the x grid edges.
      • hasYEdges

        public boolean hasYEdges()
        Description copied from interface: SGTGrid
        Are Y edges available?
        Specified by:
        hasYEdges in interface SGTGrid
      • getYEdges

        public double[] getYEdges()
        Description copied from interface: SGTGrid
        Get the Y coordinate edges. The YEdge length will be one greater than the YArray length.
        Specified by:
        getYEdges in interface SGTGrid
      • setYEdges

        public void setYEdges(double[] edge)
        Set the values for the y grid edges.
      • getTimeEdges

        public GeoDate[] getTimeEdges()
        Description copied from interface: SGTGrid
        Get the Time edges. The TimeEdge length will be one greater than the TimeArray length.
        Specified by:
        getTimeEdges in interface SGTGrid
      • setTimeEdges

        public void setTimeEdges(GeoDate[] edge)
        Set the values for the temporal grid edges.
      • setTimeEdges

        public void setTimeEdges(GeoDateArray tarray)
        Since:
        3.0
      • setXMetaData

        public void setXMetaData(SGTMetaData md)
        Set the SGTMetaData associated with the x coordinate.
      • setYMetaData

        public void setYMetaData(SGTMetaData md)
        Set the SGTMetaData associated with the y coordinate.
      • setZMetaData

        public void setZMetaData(SGTMetaData md)
        Set the SGTMetaData associated with the z coordinate.
      • setTitle

        public void setTitle(java.lang.String title)
        Set the grid title
      • setKeyTitle

        public void setKeyTitle(SGLabel title)
        Set the title formatted for the VectorKey.
      • getId

        public java.lang.String getId()
        Get the unique identifier. The presence of the identifier is optional, but if it is present it should be unique. This field is used to search for the layer that contains the data.
        Specified by:
        getId in interface SGTData
        Returns:
        unique identifier
        Since:
        2.0
        See Also:
        Pane, Layer
      • setId

        public void setId(java.lang.String ident)
        Set the unique identifier.
      • setXArray

        public void setXArray(double[] xloc)
        Set the x coordinate grid centers
        Property Change: dataModified.
      • setYArray

        public void setYArray(double[] yloc)
        Set the y coordinate grid centers
        Property Change: dataModified.
      • setZArray

        public void setZArray(double[] grid)
        Set the z grid values.
        Property Change: dataModified.
      • setTimeArray

        public void setTimeArray(GeoDate[] tloc)
        set the temporal grid centers
        Property Change: dataModified.
      • setTimeArray

        public void setTimeArray(GeoDateArray tarray)
        Since:
        3.0
      • getXRange

        public SoTRange getXRange()
        Description copied from interface: SGTData
        Returns the range of the X coordinates. If all the data in the array is missing, this method will return Double.NaN as the start and end values for data of type double and return GeoDate(Long.MIN_VALUE) for data of type GeoDate.
        Specified by:
        getXRange in interface SGTData
        See Also:
        GeoDate.isMissing()
      • getZRange

        public Range2D getZRange()
        Description copied from interface: SGTGrid
        Get the range of Z values.
        Specified by:
        getZRange in interface SGTGrid
      • getXEdgesRange

        public SoTRange getXEdgesRange()
        Return the range of the x edges
        Specified by:
        getXEdgesRange in interface SGTGrid
        Since:
        2.0
      • getYEdgesRange

        public SoTRange getYEdgesRange()
        Return the range of the y edges
        Specified by:
        getYEdgesRange in interface SGTGrid
        Since:
        2.0
      • addPropertyChangeListener

        public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
        Description copied from interface: SGTData
        Add a PropertyChangeListener to the listener list.
        Specified by:
        addPropertyChangeListener in interface SGTData
      • removePropertyChangeListener

        public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
        Description copied from interface: SGTData
        Remove a PropertyChangeListener from the listener list.
        Specified by:
        removePropertyChangeListener in interface SGTData

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.