Here you can find the source of minCurveSegmentLength(String segmentTypeName)
Parameter | Description |
---|---|
segmentTypeName | The local name of element representing a the curve segment. |
public static int minCurveSegmentLength(String segmentTypeName)
//package com.java2s; //License from project: Apache License public class Main { /**/* w w w . j a va 2 s . c o m*/ * Indicates the minimum number of direct positions required to specify a * GML curve segment. The value depends on the type of curve segment, but * falls in the range 1-3. * * @param segmentTypeName * The local name of element representing a the curve segment. * @return An integer value > 0. */ public static int minCurveSegmentLength(String segmentTypeName) { int minLength = 2; if (segmentTypeName.endsWith("ByCenterPoint")) { minLength = 1; } else if (segmentTypeName.equals("ArcString") || segmentTypeName.equals("Arc") || segmentTypeName.equals("Circle")) { minLength = 3; } return minLength; } }