public class Quadrilateral extends Object implements Renderable, Movable, Draggable
Modifier and Type | Field and Description |
---|---|
protected boolean |
dragEnabled |
protected DraggableSupport |
draggableSupport |
protected WWTexture |
texture |
protected 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() |
Color |
getColor() |
LatLon[] |
getCorners() |
double |
getElevation() |
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(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(Object imageSource) |
protected boolean dragEnabled
protected DraggableSupport draggableSupport
protected WWTexture texture
protected 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 Color getColor()
public LatLon[] getCorners()
public double getElevation()
public 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(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(Object imageSource)