Class LandShapePainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.charts.shoreline.LandShapePainter
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
NdgcLandPainter
public class LandShapePainter extends GlimpsePainterBase
Originally designed to display shoreline data available from the NOAA/NGDC Coastline Extractor tool at http://www.ngdc.noaa.gov/mgg_coastline/ Now capable of painting all LandShapes, NdgcFile shapes as wells as Gshhs shapes. When downloading ndgc data, choose the following options: World Vector Shoreline Compression Method: None Coast Format: Mapgen Coast Preview: No Preview- Author:
- ulman, cunningham
-
-
Constructor Summary
Constructors Constructor Description LandShapePainter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcenterAxesOnShape(Shape shape, Axis2D axis)voiddeleteAll()voiddoDispose(GlimpseContext context)voiddoPaintTo(GlimpseContext context)ShapeloadNgdcLandFile(URL url, GeoProjection geoProjection)voidloadNgdcLandFileAndCenterAxis(URL url, GeoProjection geoProjection, Axis2D axis)voidsetFill(boolean show)voidsetFillColor(float[] rgba)voidsetFillColor(float r, float g, float b, float a)voidsetLineColor(float[] rgba)voidsetLineColor(float r, float g, float b, float a)voidsetLineDotted(boolean dotted)voidsetLineDotted(int stippleFactor, short stipplePattern)voidsetLineWidth(int width)voidsetPolyDotted(boolean dotted)voidsetPolyDotted(byte[] stipple)voidsetShowLines(boolean show)-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setLookAndFeel, setVisible
-
-
-
-
Method Detail
-
loadNgdcLandFileAndCenterAxis
public void loadNgdcLandFileAndCenterAxis(URL url, GeoProjection geoProjection, Axis2D axis) throws IOException
- Throws:
IOException
-
loadNgdcLandFile
public Shape loadNgdcLandFile(URL url, GeoProjection geoProjection) throws IOException
- Throws:
IOException
-
setLineColor
public void setLineColor(float r, float g, float b, float a)
-
setLineColor
public void setLineColor(float[] rgba)
-
setLineWidth
public void setLineWidth(int width)
-
setShowLines
public void setShowLines(boolean show)
-
setPolyDotted
public void setPolyDotted(byte[] stipple)
-
setPolyDotted
public void setPolyDotted(boolean dotted)
-
setLineDotted
public void setLineDotted(boolean dotted)
-
setLineDotted
public void setLineDotted(int stippleFactor, short stipplePattern)
-
setFill
public void setFill(boolean show)
-
setFillColor
public void setFillColor(float[] rgba)
-
setFillColor
public void setFillColor(float r, float g, float b, float a)
-
deleteAll
public void deleteAll()
-
doDispose
public void doDispose(GlimpseContext context)
-
doPaintTo
public void doPaintTo(GlimpseContext context)
-
-