org.opensha.commons.mapping.gmt
Class GMT_Map

java.lang.Object
  extended by org.opensha.commons.mapping.gmt.GMT_Map
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InterpDiffMap

public class GMT_Map
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class GMT_Map.HighwayFile
           
 
Field Summary
static Region ca_topo_region
           
 
Constructor Summary
GMT_Map(Region region, GeoDataSet griddedData, double griddedDataInc, CPT cpt)
           
GMT_Map(Region region, GeoDataSet griddedData, double griddedDataInc, String cptFile)
           
 
Method Summary
 void addPolys(PSXYPolygon line)
           
 void addSymbol(PSXYSymbol symbol)
           
 void clearCustomScale()
           
 CoastAttributes getCoast()
           
 CPT getCpt()
           
 String getCptFile()
           
 String getCustomLabel()
           
 Double getCustomScaleMax()
           
 Double getCustomScaleMin()
           
 int getDpi()
           
 String getGmtScriptFileName()
           
 GeoDataSet getGriddedData()
           
 double getGriddedDataInc()
           
 GMT_Map.HighwayFile getHighwayFile()
           
 double getImageWidth()
           
 String getJPGFileName()
           
 String getPDFFileName()
           
 String getPNGFileName()
           
 ArrayList<PSXYPolygon> getPolys()
           
 String getPSFileName()
           
 Region getRegion()
           
 ArrayList<PSXYSymbol> getSymbols()
           
 PSXYSymbolSet getSymbolSet()
           
 TopographicSlopeFile getTopoResolution()
           
 String getXyzFileName()
           
 boolean isBlackBackground()
           
 boolean isCPTEqualSpacing()
           
 boolean isCustomScale()
           
 boolean isGenerateKML()
           
 boolean isLogPlot()
           
 boolean isRescaleCPT()
           
 boolean isUseGMTSmoothing()
           
 void setBlackBackground(boolean blackBackground)
           
 void setCoast(CoastAttributes coast)
           
 void setCpt(CPT cpt)
           
 void setCPTEqualSpacing(boolean cptEqualSpacing)
           
 void setCptFile(String cptFile)
           
 void setCustomLabel(String customLabel)
           
 void setCustomScaleMax(Double customScaleMax)
           
 void setCustomScaleMin(Double customScaleMin)
           
 void setDpi(int dpi)
           
 void setGenerateKML(boolean generateKML)
           
 void setGmtScriptFileName(String gmtScriptFileName)
           
 void setGriddedData(GeoDataSet griddedData)
           
 void setGriddedData(GeoDataSet griddedData, double griddedDataInc, CPT cpt)
          Set the gridded XYZ dataset for this map
 void setGriddedData(GeoDataSet griddedData, double griddedDataInc, String cptFile)
          Set the gridded XYZ dataset for this map
 void setGriddedDataInc(double griddedDataInc)
           
 void setHighwayFile(GMT_Map.HighwayFile highwayFile)
           
 void setImageWidth(double imageWidth)
           
 void setJPGFileName(String jpgFileName)
           
 void setLogPlot(boolean logPlot)
           
 void setPDFFileName(String psFileName)
           
 void setPNGFileName(String pngFileName)
           
 void setPolys(ArrayList<PSXYPolygon> xyLines)
           
 void setPSFileName(String psFileName)
           
 void setRegion(Region region)
           
 void setRescaleCPT(boolean rescaleCPT)
           
 void setSymbols(ArrayList<PSXYSymbol> xySymbols)
           
 void setSymbolSet(PSXYSymbolSet xySymbolSet)
           
 void setTopoResolution(TopographicSlopeFile topoResolution)
           
 void setUseGMTSmoothing(boolean useGMTSmoothing)
           
 void setXyzFileName(String xyzFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ca_topo_region

public static Region ca_topo_region
Constructor Detail

GMT_Map

public GMT_Map(Region region,
               GeoDataSet griddedData,
               double griddedDataInc,
               String cptFile)

GMT_Map

public GMT_Map(Region region,
               GeoDataSet griddedData,
               double griddedDataInc,
               CPT cpt)
Method Detail

setGriddedData

public void setGriddedData(GeoDataSet griddedData,
                           double griddedDataInc,
                           String cptFile)
Set the gridded XYZ dataset for this map

Parameters:
griddedData - - XYZ dataset
griddedDataInc - - Degree spacing of dataset
cptFile - - CPT file

setGriddedData

public void setGriddedData(GeoDataSet griddedData,
                           double griddedDataInc,
                           CPT cpt)
Set the gridded XYZ dataset for this map

Parameters:
griddedData - - XYZ dataset
griddedDataInc - - Degree spacing of dataset
cpt - - CPT object

getRegion

public Region getRegion()

setRegion

public void setRegion(Region region)

getCptFile

public String getCptFile()

setCptFile

public void setCptFile(String cptFile)

getCpt

public CPT getCpt()

setCpt

public void setCpt(CPT cpt)

isRescaleCPT

public boolean isRescaleCPT()

setRescaleCPT

public void setRescaleCPT(boolean rescaleCPT)

isCPTEqualSpacing

public boolean isCPTEqualSpacing()

setCPTEqualSpacing

public void setCPTEqualSpacing(boolean cptEqualSpacing)

getGriddedDataInc

public double getGriddedDataInc()

setGriddedDataInc

public void setGriddedDataInc(double griddedDataInc)

getGriddedData

public GeoDataSet getGriddedData()

setGriddedData

public void setGriddedData(GeoDataSet griddedData)

getHighwayFile

public GMT_Map.HighwayFile getHighwayFile()

setHighwayFile

public void setHighwayFile(GMT_Map.HighwayFile highwayFile)

getTopoResolution

public TopographicSlopeFile getTopoResolution()

setTopoResolution

public void setTopoResolution(TopographicSlopeFile topoResolution)

getCoast

public CoastAttributes getCoast()

setCoast

public void setCoast(CoastAttributes coast)

getImageWidth

public double getImageWidth()

setImageWidth

public void setImageWidth(double imageWidth)

getCustomLabel

public String getCustomLabel()

setCustomLabel

public void setCustomLabel(String customLabel)

isCustomScale

public boolean isCustomScale()

clearCustomScale

public void clearCustomScale()

getCustomScaleMin

public Double getCustomScaleMin()

setCustomScaleMin

public void setCustomScaleMin(Double customScaleMin)

getCustomScaleMax

public Double getCustomScaleMax()

setCustomScaleMax

public void setCustomScaleMax(Double customScaleMax)

getDpi

public int getDpi()

setDpi

public void setDpi(int dpi)

isUseGMTSmoothing

public boolean isUseGMTSmoothing()

setUseGMTSmoothing

public void setUseGMTSmoothing(boolean useGMTSmoothing)

isBlackBackground

public boolean isBlackBackground()

setBlackBackground

public void setBlackBackground(boolean blackBackground)

isLogPlot

public boolean isLogPlot()

setLogPlot

public void setLogPlot(boolean logPlot)

getXyzFileName

public String getXyzFileName()

setXyzFileName

public void setXyzFileName(String xyzFileName)

getPSFileName

public String getPSFileName()

setPSFileName

public void setPSFileName(String psFileName)

getPDFFileName

public String getPDFFileName()

setPDFFileName

public void setPDFFileName(String psFileName)

getPNGFileName

public String getPNGFileName()

setPNGFileName

public void setPNGFileName(String pngFileName)

getJPGFileName

public String getJPGFileName()

setJPGFileName

public void setJPGFileName(String jpgFileName)

getGmtScriptFileName

public String getGmtScriptFileName()

setGmtScriptFileName

public void setGmtScriptFileName(String gmtScriptFileName)

getSymbols

public ArrayList<PSXYSymbol> getSymbols()

setSymbols

public void setSymbols(ArrayList<PSXYSymbol> xySymbols)

addSymbol

public void addSymbol(PSXYSymbol symbol)

getPolys

public ArrayList<PSXYPolygon> getPolys()

setPolys

public void setPolys(ArrayList<PSXYPolygon> xyLines)

addPolys

public void addPolys(PSXYPolygon line)

getSymbolSet

public PSXYSymbolSet getSymbolSet()

setSymbolSet

public void setSymbolSet(PSXYSymbolSet xySymbolSet)

isGenerateKML

public boolean isGenerateKML()

setGenerateKML

public void setGenerateKML(boolean generateKML)