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)
DraggableDragContext.drag in interface DraggabledragContext - the DragContext of this dragging event.public int getAntiAliasHint()
public Color getColor()
public LatLon[] getCorners()
public double getElevation()
public Object getImageSource()
public Position getReferencePosition()
MovablegetReferencePosition in interface Movableprotected void initializeTextureCoordinates()
public boolean isDragEnabled()
DraggableisDragEnabled in interface Draggablepublic void move(Position delta)
Movablepublic void moveTo(Position position)
Movablepublic void render(DrawContext dc)
RenderableRenderable to render itself using the provided draw context.render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setAntiAliasHint(int hint)
public void setColor(Color color)
public void setDragEnabled(boolean enabled)
DraggablesetDragEnabled in interface Draggableenabled - true if the object is enabled, else false.public void setElevation(double elevation)
public void setImageSource(Object imageSource)