Package org.apache.sedona.viz.core
Class GlobalParameter
- java.lang.Object
-
- org.apache.sedona.viz.core.GlobalParameter
-
- All Implemented Interfaces:
Serializable
public class GlobalParameter extends Object implements Serializable
The Class GlobalParameter.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
colorAlpha
The color alpha.ColoringRule
coloringRule
The coloring rule.Color
controlColorChannel
The control color channel.org.locationtech.jts.geom.Envelope
datasetBoundary
The dataset boundary.boolean
drawOutlineOnly
The draw outline only.int
filterRadius
The filter radius.int
maxPartitionTreeLevel
The max partition tree level.int
maxPixelWeight
The max pixel weight.int
minTreeLevel
The min tree level.boolean
overwriteExistingImages
The overwrite existing images.double
partitionIntervalX
The partition interval X.double
partitionIntervalY
The partition interval Y.int
partitionsOnSingleAxis
The partitions on single axis.PhotoFilter
photoFilter
The photo filter.int
resolutionX
The resolution X.int
resolutionY
The resolution Y.boolean
reverseSpatialCoordinate
The reverse spatial coordinate.double
samplingFraction
The sample amount.boolean
useInverseRatioForControlColorChannel
The use inverse ratio for control color channel.boolean
useUserSuppliedResolution
The use user supplied resolution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GlobalParameter
getGlobalParameter()
Gets the global parameter.static GlobalParameter
getGlobalParameter(int resolutionX, int resolutionY, boolean reverseSpatialCoordinate, boolean drawOutlineOnly, int minTreeLevel, int filterRadius, PhotoFilter photoFilter, Double samplingFraction, int maxPixelWeight, ColoringRule coloringRule, Color controlColorChannel, boolean useInverseRatioForControlColorChannel, int colorAlpha, org.locationtech.jts.geom.Envelope datasetBoundary, int maxPartitionTreeLevel, boolean overwriteExistingImages)
Gets the global parameter.static GlobalParameter
getGlobalParameter(String parameterString)
Gets the global parameter.boolean
set(String keyValuePair)
Sets the.boolean
set(String key, String value)
Sets the.boolean
setColoringRule(ColoringRule coloringRule)
Sets the coloring rule.boolean
setDatasetBoundary(org.locationtech.jts.geom.Envelope datasetBoundary)
Sets the dataset boundary.boolean
setPhotoFilter(PhotoFilter photoFilter)
Sets the photo filter.String
toString()
-
-
-
Field Detail
-
resolutionX
public int resolutionX
The resolution X.
-
resolutionY
public int resolutionY
The resolution Y.
-
reverseSpatialCoordinate
public boolean reverseSpatialCoordinate
The reverse spatial coordinate.
-
drawOutlineOnly
public boolean drawOutlineOnly
The draw outline only.
-
minTreeLevel
public int minTreeLevel
The min tree level.
-
filterRadius
public int filterRadius
The filter radius.
-
photoFilter
public PhotoFilter photoFilter
The photo filter.
-
samplingFraction
public double samplingFraction
The sample amount.
-
maxPixelWeight
public int maxPixelWeight
The max pixel weight.
-
coloringRule
public ColoringRule coloringRule
The coloring rule.
-
controlColorChannel
public Color controlColorChannel
The control color channel.
-
useInverseRatioForControlColorChannel
public boolean useInverseRatioForControlColorChannel
The use inverse ratio for control color channel.
-
colorAlpha
public int colorAlpha
The color alpha.
-
datasetBoundary
public org.locationtech.jts.geom.Envelope datasetBoundary
The dataset boundary.
-
partitionsOnSingleAxis
public int partitionsOnSingleAxis
The partitions on single axis.
-
partitionIntervalX
public double partitionIntervalX
The partition interval X.
-
partitionIntervalY
public double partitionIntervalY
The partition interval Y.
-
useUserSuppliedResolution
public boolean useUserSuppliedResolution
The use user supplied resolution.
-
maxPartitionTreeLevel
public int maxPartitionTreeLevel
The max partition tree level.
-
overwriteExistingImages
public boolean overwriteExistingImages
The overwrite existing images.
-
-
Method Detail
-
getGlobalParameter
public static GlobalParameter getGlobalParameter(String parameterString)
Gets the global parameter.- Parameters:
parameterString
- the parameter string- Returns:
- the global parameter
-
getGlobalParameter
public static GlobalParameter getGlobalParameter()
Gets the global parameter.- Returns:
- the global parameter
-
getGlobalParameter
public static GlobalParameter getGlobalParameter(int resolutionX, int resolutionY, boolean reverseSpatialCoordinate, boolean drawOutlineOnly, int minTreeLevel, int filterRadius, PhotoFilter photoFilter, Double samplingFraction, int maxPixelWeight, ColoringRule coloringRule, Color controlColorChannel, boolean useInverseRatioForControlColorChannel, int colorAlpha, org.locationtech.jts.geom.Envelope datasetBoundary, int maxPartitionTreeLevel, boolean overwriteExistingImages)
Gets the global parameter.- Parameters:
resolutionX
- the resolution XresolutionY
- the resolution YreverseSpatialCoordinate
- the reverse spatial coordinatedrawOutlineOnly
- the draw outline onlyminTreeLevel
- the min tree levelfilterRadius
- the filter radiusphotoFilter
- the photo filtersamplingFraction
- the sampling fractionmaxPixelWeight
- the max pixel weightcoloringRule
- the coloring rulecontrolColorChannel
- the control color channeluseInverseRatioForControlColorChannel
- the use inverse ratio for control color channelcolorAlpha
- the color alphadatasetBoundary
- the dataset boundarymaxPartitionTreeLevel
- the max partition tree leveloverwriteExistingImages
- the overwrite existing images- Returns:
- the global parameter
-
setDatasetBoundary
public boolean setDatasetBoundary(org.locationtech.jts.geom.Envelope datasetBoundary)
Sets the dataset boundary.- Parameters:
datasetBoundary
- the dataset boundary- Returns:
- true, if successful
-
setColoringRule
public boolean setColoringRule(ColoringRule coloringRule)
Sets the coloring rule.- Parameters:
coloringRule
- the coloring rule- Returns:
- true, if successful
-
setPhotoFilter
public boolean setPhotoFilter(PhotoFilter photoFilter)
Sets the photo filter.- Parameters:
photoFilter
- the photo filter- Returns:
- true, if successful
-
set
public boolean set(String keyValuePair)
Sets the.- Parameters:
keyValuePair
- the key value pair- Returns:
- true, if successful
-
set
public boolean set(String key, String value)
Sets the.- Parameters:
key
- the keyvalue
- the value- Returns:
- true, if successful
-
-