Package org.geotools.renderer.style
Class MarkAlongLine
Object
MarkAlongLine
- All Implemented Interfaces:
Stroke
Custom stroke to drape shapes along Line Strings
- Author:
- ImranR
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMarkAlongLine
(Stroke delegate) MarkAlongLine
(Stroke delegate, double size, Geometry wkt) -
Method Summary
Modifier and TypeMethodDescriptioncreateStrokedShape
(Shape shape) static MarkAlongLine.MarkAlongLiteShape
FitOnLength
(MarkAlongLine.MarkAlongLiteShape markAlongLiteShape, double length, double minScaleLimit) float
float
double
void
setScaleImit
(float scaleImit) shape`s size cannot be reduced beyond this scale Limit 0 - always scale 1 - never scalevoid
setSimplicationFactor
(float simplicationFactor) Multiplier between 0 to 1, used to calculate the distance in pixel to be used for simplification of source linear geometry *
-
Field Details
-
VENDOR_OPTION_NAME
- See Also:
-
VENDOR_OPTION_SCALE_LIMIT
- See Also:
-
VENDOR_OPTION_SIMPLICATION_FACTOR
- See Also:
-
-
Constructor Details
-
MarkAlongLine
-
MarkAlongLine
-
-
Method Details
-
getScaleImit
public float getScaleImit()- Returns:
- the scaleImit
-
setScaleImit
public void setScaleImit(float scaleImit) shape`s size cannot be reduced beyond this scale Limit 0 - always scale 1 - never scale- Parameters:
scaleImit
- the scaleImit to set
-
getSimplicationFactor
public float getSimplicationFactor()- Returns:
- the simplicationTolerance
-
setSimplicationFactor
public void setSimplicationFactor(float simplicationFactor) Multiplier between 0 to 1, used to calculate the distance in pixel to be used for simplification of source linear geometry *0 - never simplify 1 - use complete height as simplification distance default - 0.5 (half the height)
- Parameters:
simplicationFactor
- to scale WKT shape height and use it for simplification
-
createStrokedShape
- Specified by:
createStrokedShape
in interfaceStroke
-
FitOnLength
public static MarkAlongLine.MarkAlongLiteShape FitOnLength(MarkAlongLine.MarkAlongLiteShape markAlongLiteShape, double length, double minScaleLimit) -
getSimplificatorFactor
public double getSimplificatorFactor()
-