NASA World Wind

gov.nasa.worldwind.render
Class Quadrilateral

java.lang.Object
  extended by gov.nasa.worldwind.render.Quadrilateral
All Implemented Interfaces:
Movable, Renderable

public class Quadrilateral
extends java.lang.Object
implements Renderable, Movable


Constructor Summary
Quadrilateral(LatLon southwestCorner, LatLon northeastCorner, double elevation)
           
Quadrilateral(Sector sector, double elevation)
           
 
Method Summary
 int getAntiAliasHint()
           
 java.awt.Color getColor()
           
 LatLon[] getCorners()
           
 double getElevation()
           
 Position getReferencePosition()
           
 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 DrawContext provided.
 void setAntiAliasHint(int hint)
           
 void setColor(java.awt.Color color)
           
 void setCorners(LatLon southWest, LatLon northEast)
           
 void setElevation(double elevation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quadrilateral

public Quadrilateral(LatLon southwestCorner,
                     LatLon northeastCorner,
                     double elevation)

Quadrilateral

public Quadrilateral(Sector sector,
                     double elevation)
Method Detail

getAntiAliasHint

public int getAntiAliasHint()

getColor

public java.awt.Color getColor()

getCorners

public LatLon[] getCorners()

getElevation

public double getElevation()

getReferencePosition

public Position getReferencePosition()
Specified by:
getReferencePosition in interface Movable

move

public void move(Position delta)
Description copied from interface: Movable
Shift the shape over the globe's surface while maintaining its original azimuth -- its orientation relative to North.

Specified by:
move in interface Movable
Parameters:
delta - the latitude and longitude to add to the shapes reference position.

moveTo

public void moveTo(Position position)
Description copied from interface: Movable
Move the shape over the globe's surface while maintaining its original azimuth -- its orientation relative to North.

Specified by:
moveTo in interface Movable
Parameters:
position - the new position of the shapes reference position.

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the DrawContext provided. The DrawContext provides the elevation model, openGl instance, globe and other information required for drawing. It is recommended that the DrawContext is non-null as most implementations do not support null DrawContexts.

Specified by:
render in interface Renderable
Parameters:
dc - the DrawContext to be used
See Also:
DrawContext

setAntiAliasHint

public void setAntiAliasHint(int hint)

setColor

public void setColor(java.awt.Color color)

setCorners

public void setCorners(LatLon southWest,
                       LatLon northEast)

setElevation

public void setElevation(double elevation)

NASA World Wind