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 void
centerAxesOnShape(Shape shape, Axis2D axis)
void
deleteAll()
void
doDispose(GlimpseContext context)
void
doPaintTo(GlimpseContext context)
Shape
loadNgdcLandFile(URL url, GeoProjection geoProjection)
void
loadNgdcLandFileAndCenterAxis(URL url, GeoProjection geoProjection, Axis2D axis)
void
setFill(boolean show)
void
setFillColor(float[] rgba)
void
setFillColor(float r, float g, float b, float a)
void
setLineColor(float[] rgba)
void
setLineColor(float r, float g, float b, float a)
void
setLineDotted(boolean dotted)
void
setLineDotted(int stippleFactor, short stipplePattern)
void
setLineWidth(int width)
void
setPolyDotted(boolean dotted)
void
setPolyDotted(byte[] stipple)
void
setShowLines(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)
-
-