public class Quadrilateral extends java.lang.Object implements Renderable, Movable, Draggable
Modifier and Type | Field and Description |
---|---|
protected boolean |
dragEnabled |
protected DraggableSupport |
draggableSupport |
protected WWTexture |
texture |
protected java.nio.DoubleBuffer |
textureCoordinates |
Constructor and Description |
---|
Quadrilateral(LatLon southwestCorner,
LatLon northeastCorner,
double elevation) |
Quadrilateral(Sector sector,
double elevation) |
Modifier and Type | Method and Description |
---|---|
protected void |
doDrag(DragContext dragContext) |
void |
drag(DragContext dragContext)
Drag the object given the provided
DragContext . |
int |
getAntiAliasHint() |
java.awt.Color |
getColor() |
LatLon[] |
getCorners() |
double |
getElevation() |
java.lang.Object |
getImageSource() |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
protected void |
initializeTextureCoordinates() |
boolean |
isDragEnabled()
Indicates whether the object is enabled for dragging.
|
void |
move(Position delta)
Shift the shape over the globe's surface while maintaining its original azimuth, its orientation relative to
North.
|
void |
moveTo(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 |
setAntiAliasHint(int hint) |
void |
setColor(java.awt.Color color) |
void |
setCorners(LatLon southWest,
LatLon northEast) |
void |
setDragEnabled(boolean enabled)
Controls whether the object is enabled for dragging.
|
void |
setElevation(double elevation) |
void |
setImageSource(java.lang.Object imageSource) |
protected boolean dragEnabled
protected DraggableSupport draggableSupport
protected WWTexture texture
protected java.nio.DoubleBuffer textureCoordinates
public Quadrilateral(LatLon southwestCorner, LatLon northeastCorner, double elevation)
public Quadrilateral(Sector sector, double elevation)
protected void doDrag(DragContext dragContext)
public void drag(DragContext dragContext)
Draggable
DragContext
.drag
in interface Draggable
dragContext
- the DragContext
of this dragging event.public int getAntiAliasHint()
public java.awt.Color getColor()
public LatLon[] getCorners()
public double getElevation()
public java.lang.Object getImageSource()
public Position getReferencePosition()
Movable
getReferencePosition
in interface Movable
protected void initializeTextureCoordinates()
public boolean isDragEnabled()
Draggable
isDragEnabled
in interface Draggable
public void move(Position delta)
Movable
public void moveTo(Position position)
Movable
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 setAntiAliasHint(int hint)
public void setColor(java.awt.Color color)
public void setDragEnabled(boolean enabled)
Draggable
setDragEnabled
in interface Draggable
enabled
- true
if the object is enabled, else false
.public void setElevation(double elevation)
public void setImageSource(java.lang.Object imageSource)