gov.nasa.worldwind.geom
Class SurfaceShape
java.lang.Object
gov.nasa.worldwind.geom.SurfaceShape
- All Implemented Interfaces:
- Disposable, Renderable
- Direct Known Subclasses:
- SurfacePolygon
public abstract class SurfaceShape
- extends Object
- implements Renderable, Disposable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurfaceShape
public SurfaceShape(Iterable<LatLon> positions,
Color color,
Color borderColor)
dispose
public void dispose()
- Specified by:
dispose in interface Disposable
drawShape
protected abstract BufferedImage drawShape(BufferedImage image)
getBorderColor
public Color getBorderColor()
getNumEdgeIntervals
public int getNumEdgeIntervals()
getPaint
public Paint getPaint()
getPositions
public ArrayList<LatLon> getPositions()
getSector
public Sector getSector()
getStroke
public Stroke getStroke()
getTextureSize
public int getTextureSize()
isAntiAlias
public boolean isAntiAlias()
isDrawBorder
public boolean isDrawBorder()
isDrawInterior
public boolean isDrawInterior()
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
setAntiAlias
public void setAntiAlias(boolean antiAlias)
setBorderColor
public void setBorderColor(Color borderColor)
setDrawBorder
public void setDrawBorder(boolean drawBorder)
setDrawInterior
public void setDrawInterior(boolean drawInterior)
setNumEdgeIntervals
public void setNumEdgeIntervals(int numEdgeIntervals)
setPaint
public void setPaint(Paint paint)
setStroke
public void setStroke(Stroke stroke)
setTextureSize
public void setTextureSize(int textureSize)