Class SurfaceBox

    • Field Detail

      • locations

        protected java.util.List<LatLon> locations
      • lengthSegments

        protected int lengthSegments
      • widthSegments

        protected int widthSegments
      • enableStartCap

        protected boolean enableStartCap
      • enableEndCap

        protected boolean enableEndCap
      • enableCenterLine

        protected boolean enableCenterLine
      • activeCenterLineGeometry

        protected java.util.List<java.util.List<LatLon>> activeCenterLineGeometry
    • Constructor Detail

      • SurfaceBox

        public SurfaceBox()
    • Method Detail

      • getLocations

        public java.util.List<LatLon> getLocations()
      • setLocations

        public void setLocations​(java.util.List<LatLon> locations)
      • getLengthSegments

        public int getLengthSegments()
      • setLengthSegments

        public void setLengthSegments​(int lengthSegments)
      • getWidthSegments

        public int getWidthSegments()
      • setWidthSegments

        public void setWidthSegments​(int widthSegments)
      • isEnableCaps

        public boolean[] isEnableCaps()
      • setEnableCaps

        public void setEnableCaps​(boolean enableStartCap,
                                  boolean enableEndCap)
      • isEnableCenterLine

        public boolean isEnableCenterLine()
      • setEnableCenterLine

        public void setEnableCenterLine​(boolean enable)
      • getReferencePosition

        public Position getReferencePosition()
        Description copied from interface: Movable
        A position associated with the object that indicates its aggregate geographic position. The chosen position varies among implementers of this interface. For objects defined by a list of positions, the reference position is typically the first position in the list. For symmetric objects the reference position is often the center of the object. In many cases the object's reference position may be explicitly specified by the application.
        Specified by:
        getReferencePosition in interface Movable
        Specified by:
        getReferencePosition in interface Movable2
        Specified by:
        getReferencePosition in class AbstractSurfaceShape
        Returns:
        the object's reference position, or null if no reference position is available.
      • makeLocations

        protected java.util.ArrayList<LatLon> makeLocations​(int offset,
                                                            int count,
                                                            double edgeIntervalsPerDegree)
      • drawCenterLine

        protected void drawCenterLine​(DrawContext dc)
      • getLocations

        public java.lang.Iterable<? extends LatLon> getLocations​(Globe globe)
        Description copied from interface: SurfaceShape
        Returns the shape's locations as they appear on the specified globe, or null if the shape has no locations.
        Parameters:
        globe - the globe the shape is related to.
        Returns:
        the shapes locations on the globe, or null if the shape has no locations.