gov.nasa.worldwind.render
Class SurfacePolygon
java.lang.Object
gov.nasa.worldwind.render.SurfaceShape
gov.nasa.worldwind.render.SurfacePolygon
- All Implemented Interfaces:
- Disposable, Movable, Renderable
- Direct Known Subclasses:
- SurfaceEllipse, SurfaceQuad, SurfaceSector
public class SurfacePolygon
- extends SurfaceShape
Constructor Summary |
SurfacePolygon(java.lang.Iterable<LatLon> positions)
A Renderable polygon shape defined by a list of LatLon |
SurfacePolygon(java.lang.Iterable<LatLon> positions,
java.awt.Color color,
java.awt.Color borderColor)
A Renderable polygon shape defined by a list of LatLon |
SurfacePolygon(java.lang.Iterable<LatLon> positions,
java.awt.Color color,
java.awt.Color borderColor,
java.awt.Dimension textureSize)
|
Method Summary |
protected java.awt.image.BufferedImage |
drawShape(Globe globe,
Sector sector,
java.awt.image.BufferedImage image)
Draw all or part of the shape that intersects a given Sector into the given BufferedImage |
Methods inherited from class gov.nasa.worldwind.render.SurfaceShape |
createEllipse, createTextureTiles, dispose, getBorderColor, getNumEdgeIntervalsPerDegree, getPaint, getPositions, getReferencePosition, getSectors, getStroke, getTextureSize, isAntiAlias, isDrawBorder, isDrawInterior, move, moveTo, render, setAntiAlias, setBorderColor, setDrawBorder, setDrawInterior, setNumEdgeIntervalsPerDegree, setPaint, setPositions, setStroke, setTextureSize, shiftTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurfacePolygon
public SurfacePolygon(java.lang.Iterable<LatLon> positions)
- A Renderable polygon shape defined by a list of LatLon
- Parameters:
positions
- the list of LatLon positions that makes the polygon
SurfacePolygon
public SurfacePolygon(java.lang.Iterable<LatLon> positions,
java.awt.Color color,
java.awt.Color borderColor)
- A Renderable polygon shape defined by a list of LatLon
- Parameters:
positions
- the list of LatLon positions that makes the polygoncolor
- the interior fill colorborderColor
- the border color
SurfacePolygon
public SurfacePolygon(java.lang.Iterable<LatLon> positions,
java.awt.Color color,
java.awt.Color borderColor,
java.awt.Dimension textureSize)
drawShape
protected final java.awt.image.BufferedImage drawShape(Globe globe,
Sector sector,
java.awt.image.BufferedImage image)
- Draw all or part of the shape that intersects a given Sector into the given BufferedImage
- Specified by:
drawShape
in class SurfaceShape