Class ShapeEditingExtension.Arrow

    • Field Detail

      • shaft

        protected Path shaft
      • head

        protected Path head
      • dragEnabled

        protected boolean dragEnabled
    • Method Detail

      • setLocations

        public void setLocations​(LatLon location0,
                                 LatLon location1)
      • getLocations

        public LatLon[] getLocations()
      • getAltitude

        public double getAltitude()
      • getAltitudeMode

        public int getAltitudeMode()
      • setAttributes

        public void setAttributes​(ShapeAttributes attributes)
        Description copied from interface: Attributable
        Set the shape's attributes.
        Specified by:
        setAttributes in interface Attributable
        Parameters:
        attributes - the attributes to assign to the shape.
      • setHighlightAttributes

        public void setHighlightAttributes​(ShapeAttributes attributes)
        Description copied from interface: Attributable
        Set the shape's highlight attributes.
        Specified by:
        setHighlightAttributes in interface Attributable
        Parameters:
        attributes - the highlight attributes to assign to the shape.
      • isHighlighted

        public boolean isHighlighted()
        Description copied from interface: Highlightable
        Indicates whether to highlight the shape.
        Specified by:
        isHighlighted in interface Highlightable
        Returns:
        true to highlight the shape, otherwise false.
      • setHighlighted

        public void setHighlighted​(boolean highlighted)
        Description copied from interface: Highlightable
        Specifies whether to highlight the shape.
        Specified by:
        setHighlighted in interface Highlightable
        Parameters:
        highlighted - true to highlight the shape, otherwise false.
      • 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
      • makeArrowhead

        protected void makeArrowhead​(DrawContext dc)
      • getReferencePosition

        public Position getReferencePosition()
        Description copied from interface: Movable2
        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 Movable2
        Returns:
        the object's reference position, or null if no reference position is available.
      • moveTo

        public void moveTo​(Globe globe,
                           Position position)
        Description copied from interface: Movable2
        Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North.
        Specified by:
        moveTo in interface Movable2
        Parameters:
        globe - the globe on which to move the shape.
        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)