edu.sc.seis.fissuresUtil.map.layers
Class ShapeLayerPropertiesHandler
java.lang.Object
edu.sc.seis.fissuresUtil.map.layers.ShapeLayerPropertiesHandler
public class ShapeLayerPropertiesHandler
- extends java.lang.Object
Method Summary |
static java.util.Properties |
getProperties()
|
static java.util.Properties |
getProperties(java.lang.String name,
java.lang.String shapefile)
|
static java.util.Properties |
getProperties(java.lang.String name,
java.lang.String shapefile,
java.lang.String fillColor)
|
static java.util.Properties |
getProperties(java.lang.String name,
java.lang.String shapefile,
java.lang.String fillColor,
int overviewLineWidth,
int lineWidthThreshold)
|
static java.util.Properties |
getProperties(java.lang.String name,
java.lang.String shapefile,
java.lang.String fillColor,
int overviewLineWidth,
int lineWidthThreshold,
java.lang.String lineColor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeLayerPropertiesHandler
public ShapeLayerPropertiesHandler()
getProperties
public static java.util.Properties getProperties()
- Returns:
- Properties with commonly-used default values.
getProperties
public static java.util.Properties getProperties(java.lang.String name,
java.lang.String shapefile)
- Parameters:
name
- A pretty name for the shape layer (required)shapefile
- The path of the shapefile without the .shp file extension
(required)
- Returns:
- Properties with these specified parameters and default fillColor,
lineWidth, lineWidthThreshold, and lineColor.
getProperties
public static java.util.Properties getProperties(java.lang.String name,
java.lang.String shapefile,
java.lang.String fillColor)
- Parameters:
name
- A pretty name for the shape layer (required)shapefile
- The path of the shapefile without the .shp file extension
(required)fillColor
- The area color. Can be null if you only want an outline.
- Returns:
- Properties with these specified parameters and default lineWidth,
lineWidthThreshold, and lineColor.
getProperties
public static java.util.Properties getProperties(java.lang.String name,
java.lang.String shapefile,
java.lang.String fillColor,
int overviewLineWidth,
int lineWidthThreshold)
- Parameters:
name
- A pretty name for the shape layer (required)shapefile
- The path of the shapefile without the .shp file extension
(required)fillColor
- The area color. Can be null if you only want an outline.overviewLineWidth
- This is the width of the lines as long as the scale is greater
than the lineWidthThreshold. Set to -1 if you want openmap
default value.lineWidthThreshold
- If map scale goes below this value, then the line with is
increased for easier viewing. Disable this feature by passing
-1.
- Returns:
- Properties with these specified parameters and OpenMap default
line coloring.
getProperties
public static java.util.Properties getProperties(java.lang.String name,
java.lang.String shapefile,
java.lang.String fillColor,
int overviewLineWidth,
int lineWidthThreshold,
java.lang.String lineColor)
- Parameters:
name
- A pretty name for the shape layer (required)shapefile
- The path of the shapefile without the .shp file extension
(required)fillColor
- The area color. Can be null if you only want an outline.overviewLineWidth
- This is the width of the lines as long as the scale is greater
than the lineWidthThreshold. Set to -1 if you want openmap
default value.lineWidthThreshold
- If map scale goes below this value, then the line with is
increased for easier viewing. Disable this feature by passing
-1.lineColor
- The line color. If null, then it defaults to black.
- Returns:
- Properties with all specified parameters.