Class MarkAlongLine

Object
MarkAlongLine
All Implemented Interfaces:
Stroke

public class MarkAlongLine extends Object implements Stroke
Custom stroke to drape shapes along Line Strings
Author:
ImranR
  • Field Details

  • Constructor Details

    • MarkAlongLine

      public MarkAlongLine(Stroke delegate)
    • MarkAlongLine

      public MarkAlongLine(Stroke delegate, double size, Geometry wkt)
  • 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

      public Shape createStrokedShape(Shape shape)
      Specified by:
      createStrokedShape in interface Stroke
    • FitOnLength

      public static MarkAlongLine.MarkAlongLiteShape FitOnLength(MarkAlongLine.MarkAlongLiteShape markAlongLiteShape, double length, double minScaleLimit)
    • getSimplificatorFactor

      public double getSimplificatorFactor()