Interface Globe2D

  • All Known Implementing Classes:
    EarthFlat, FlatGlobe

    public interface Globe2D
    An interface for controlling aspects of a 2D Globe.
    • Method Detail

      • setContinuous

        void setContinuous​(boolean continuous)
        Specifies whether to treat the associated projection as contiguous with itself. If true, the scene controller will make the implementing globe appear to scroll continuously horizontally. Calling this method overrides the associated projection's value for this field.
        Parameters:
        continuous - true if it makes sense to treat the associated projection as continuous, otherwise false.
        See Also:
        GeographicProjection.isContinuous()
      • isContinuous

        boolean isContinuous()
        Indicates whether it makes sense to treat the associated projection as contiguous with itself. If true, the scene controller will make the implementing globe appear to scroll continuously horizontally.
        Returns:
        true if it makes sense to treat the associated projection as continuous, otherwise false.
      • getOffset

        int getOffset()
      • setOffset

        void setOffset​(int offset)
        Indicates an offset to apply to Cartesian points computed by this globe. The offset is in units of globe widths, e.g., an offset of one indicates a Cartesian offset of the globe's width in meters.
        Parameters:
        offset - The offset to apply, in units of globe widths.
      • setProjection

        void setProjection​(GeographicProjection projection)
        Specifies the geographic projection for this globe. The geographic projection converts geographic positions to Cartesian coordinates and back. Implementations of this interface define their default projection.
        Parameters:
        projection - The projection to apply to this globe.
        Throws:
        java.lang.IllegalArgumentException - if the projection is null.
        See Also:
        GeographicProjection
      • getProjection

        GeographicProjection getProjection()
        Returns the geographic projection for this globe.
        Returns:
        The geographic projection for this globe.