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
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(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(Iterable<LatLon> positions,
Color color,
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(Iterable<LatLon> positions,
Color color,
Color borderColor,
Dimension textureSize)
drawShape
protected final BufferedImage drawShape(Globe globe,
Sector sector,
BufferedImage image)
- Draw all or part of the shape that intersects a given Sector into the given BufferedImage
- Specified by:
drawShape
in class SurfaceShape