Class Quadrilateral

    • Field Detail

      • textureCoordinates

        protected java.nio.DoubleBuffer textureCoordinates
      • dragEnabled

        protected boolean dragEnabled
    • Constructor Detail

      • Quadrilateral

        public Quadrilateral​(LatLon southwestCorner,
                             LatLon northeastCorner,
                             double elevation)
      • Quadrilateral

        public Quadrilateral​(Sector sector,
                             double elevation)
    • Method Detail

      • getColor

        public java.awt.Color getColor()
      • setColor

        public void setColor​(java.awt.Color color)
      • setImageSource

        public void setImageSource​(java.lang.Object imageSource)
      • getImageSource

        public java.lang.Object getImageSource()
      • getAntiAliasHint

        public int getAntiAliasHint()
      • setAntiAliasHint

        public void setAntiAliasHint​(int hint)
      • setCorners

        public void setCorners​(LatLon southWest,
                               LatLon northEast)
      • getCorners

        public LatLon[] getCorners()
      • getElevation

        public double getElevation()
      • setElevation

        public void setElevation​(double elevation)
      • initializeTextureCoordinates

        protected void initializeTextureCoordinates()
      • render

        public void render​(DrawContext dc)
        Description copied from interface: Renderable
        Causes this Renderable to render itself using the provided draw context.
        Specified by:
        render in interface Renderable
        Parameters:
        dc - the DrawContext to be used
        See Also:
        DrawContext
      • 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
        Returns:
        the object's reference position, or null if no reference position is available.
      • move

        public void move​(Position delta)
        Description copied from interface: Movable
        Shift the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North.
        Specified by:
        move in interface Movable
        Parameters:
        delta - the latitude and longitude to add to the shape's reference position.
      • moveTo

        public void moveTo​(Position position)
        Description copied from interface: Movable
        Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North.
        Specified by:
        moveTo in interface Movable
        Parameters:
        position - the new position of the shape's reference position.
      • isDragEnabled

        public boolean isDragEnabled()
        Description copied from interface: Draggable
        Indicates whether the object is enabled for dragging.
        Specified by:
        isDragEnabled in interface Draggable
        Returns:
        true if the object is enabled, else false.
      • setDragEnabled

        public void setDragEnabled​(boolean enabled)
        Description copied from interface: Draggable
        Controls whether the object is enabled for dragging.
        Specified by:
        setDragEnabled in interface Draggable
        Parameters:
        enabled - true if the object is enabled, else false.
      • doDrag

        protected void doDrag​(DragContext dragContext)