public static class ShapeEditingExtension.Arrow extends Object implements Renderable, Movable2, Highlightable, Attributable, Draggable
Modifier and Type | Field and Description |
---|---|
protected boolean |
dragEnabled |
protected DraggableSupport |
draggableSupport |
protected Path |
head |
protected Path |
shaft |
Constructor and Description |
---|
Arrow(LatLon location0,
LatLon location1,
double altitude) |
Arrow(ShapeEditingExtension.Arrow source) |
Modifier and Type | Method and Description |
---|---|
protected void |
doDrag(DragContext dragContext) |
void |
drag(DragContext dragContext)
Drag the object given the provided
DragContext . |
double |
getAltitude() |
int |
getAltitudeMode() |
ShapeAttributes |
getAttributes()
Return the shape's current attributes.
|
ShapeAttributes |
getHighlightAttributes()
Return the shape's highlight attributes.
|
LatLon[] |
getLocations() |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
boolean |
isDragEnabled()
Indicates whether the object is enabled for dragging.
|
boolean |
isHighlighted()
Indicates whether to highlight the shape.
|
protected void |
makeArrowhead(DrawContext dc) |
void |
moveTo(Globe globe,
Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to
North.
|
void |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
void |
setAttributes(ShapeAttributes attributes)
Set the shape's attributes.
|
void |
setDragEnabled(boolean enabled)
Controls whether the object is enabled for dragging.
|
void |
setHighlightAttributes(ShapeAttributes attributes)
Set the shape's highlight attributes.
|
void |
setHighlighted(boolean highlighted)
Specifies whether to highlight the shape.
|
void |
setLocations(LatLon location0,
LatLon location1) |
protected boolean dragEnabled
protected DraggableSupport draggableSupport
protected Path head
protected Path shaft
public Arrow(ShapeEditingExtension.Arrow source)
protected void doDrag(DragContext dragContext)
public void drag(DragContext dragContext)
Draggable
DragContext
.drag
in interface Draggable
dragContext
- the DragContext
of this dragging event.public double getAltitude()
public int getAltitudeMode()
public ShapeAttributes getAttributes()
Attributable
getAttributes
in interface Attributable
public ShapeAttributes getHighlightAttributes()
Attributable
getHighlightAttributes
in interface Attributable
public LatLon[] getLocations()
public Position getReferencePosition()
Movable2
getReferencePosition
in interface Movable2
public boolean isDragEnabled()
Draggable
isDragEnabled
in interface Draggable
public boolean isHighlighted()
Highlightable
isHighlighted
in interface Highlightable
protected void makeArrowhead(DrawContext dc)
public void moveTo(Globe globe, Position position)
Movable2
public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext
public void setAttributes(ShapeAttributes attributes)
Attributable
setAttributes
in interface Attributable
attributes
- the attributes to assign to the shape.public void setDragEnabled(boolean enabled)
Draggable
setDragEnabled
in interface Draggable
enabled
- true
if the object is enabled, else false
.public void setHighlightAttributes(ShapeAttributes attributes)
Attributable
setHighlightAttributes
in interface Attributable
attributes
- the highlight attributes to assign to the shape.public void setHighlighted(boolean highlighted)
Highlightable
setHighlighted
in interface Highlightable
highlighted
- true to highlight the shape, otherwise false.