Package org.geotools.renderer.style
Class MarkAlongLine
- Object
-
- MarkAlongLine
-
-
Field Summary
Fields Modifier and Type Field Description static String
VENDOR_OPTION_NAME
static String
VENDOR_OPTION_SCALE_LIMIT
static String
VENDOR_OPTION_SIMPLICATION_FACTOR
-
Constructor Summary
Constructors Constructor Description MarkAlongLine(Stroke delegate)
MarkAlongLine(Stroke delegate, double size, Geometry wkt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Shape
createStrokedShape(Shape shape)
static MarkAlongLine.MarkAlongLiteShape
FitOnLength(MarkAlongLine.MarkAlongLiteShape markAlongLiteShape, double length, double minScaleLimit)
float
getScaleImit()
float
getSimplicationFactor()
double
getSimplificatorFactor()
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 Detail
-
VENDOR_OPTION_NAME
public static final String VENDOR_OPTION_NAME
- See Also:
- Constant Field Values
-
VENDOR_OPTION_SCALE_LIMIT
public static final String VENDOR_OPTION_SCALE_LIMIT
- See Also:
- Constant Field Values
-
VENDOR_OPTION_SIMPLICATION_FACTOR
public static final String VENDOR_OPTION_SIMPLICATION_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public Shape createStrokedShape(Shape shape)
- Specified by:
createStrokedShape
in interfaceStroke
-
FitOnLength
public static MarkAlongLine.MarkAlongLiteShape FitOnLength(MarkAlongLine.MarkAlongLiteShape markAlongLiteShape, double length, double minScaleLimit)
-
getSimplificatorFactor
public double getSimplificatorFactor()
-
-