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 intcolorAlphaThe color alpha.ColoringRulecoloringRuleThe coloring rule.ColorcontrolColorChannelThe control color channel.org.locationtech.jts.geom.EnvelopedatasetBoundaryThe dataset boundary.booleandrawOutlineOnlyThe draw outline only.intfilterRadiusThe filter radius.intmaxPartitionTreeLevelThe max partition tree level.intmaxPixelWeightThe max pixel weight.intminTreeLevelThe min tree level.booleanoverwriteExistingImagesThe overwrite existing images.doublepartitionIntervalXThe partition interval X.doublepartitionIntervalYThe partition interval Y.intpartitionsOnSingleAxisThe partitions on single axis.PhotoFilterphotoFilterThe photo filter.intresolutionXThe resolution X.intresolutionYThe resolution Y.booleanreverseSpatialCoordinateThe reverse spatial coordinate.doublesamplingFractionThe sample amount.booleanuseInverseRatioForControlColorChannelThe use inverse ratio for control color channel.booleanuseUserSuppliedResolutionThe use user supplied resolution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GlobalParametergetGlobalParameter()Gets the global parameter.static GlobalParametergetGlobalParameter(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 GlobalParametergetGlobalParameter(String parameterString)Gets the global parameter.booleanset(String keyValuePair)Sets the.booleanset(String key, String value)Sets the.booleansetColoringRule(ColoringRule coloringRule)Sets the coloring rule.booleansetDatasetBoundary(org.locationtech.jts.geom.Envelope datasetBoundary)Sets the dataset boundary.booleansetPhotoFilter(PhotoFilter photoFilter)Sets the photo filter.StringtoString()
-
-
-
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
-
-