/** * Specifies the end cap style of the generated buffer. * The styles supported are {@link #CAP_ROUND}, {@link #CAP_BUTT}, and {@link #CAP_SQUARE}. * The default is CAP_ROUND. * * @param endCapStyle the end cap style to specify */ public void setEndCapStyle(int endCapStyle) { bufParams.setEndCapStyle(endCapStyle); }
/** * Creates a set of parameters with the * given quadrantSegments and endCapStyle values. * * @param quadrantSegments the number of quadrant segments to use * @param endCapStyle the end cap style to use */ public BufferParameters(int quadrantSegments, int endCapStyle) { setQuadrantSegments(quadrantSegments); setEndCapStyle(endCapStyle); }
/** * Creates a set of parameters with the * given parameter values. * * @param quadrantSegments the number of quadrant segments to use * @param endCapStyle the end cap style to use * @param joinStyle the join style to use * @param mitreLimit the mitre limit to use */ public BufferParameters(int quadrantSegments, int endCapStyle, int joinStyle, double mitreLimit) { setQuadrantSegments(quadrantSegments); setEndCapStyle(endCapStyle); setJoinStyle(joinStyle); setMitreLimit(mitreLimit); }
/** * Specifies the end cap style of the generated buffer. * The styles supported are {@link BufferParameters#CAP_ROUND}, {@link BufferParameters##CAP_BUTT}, and {@link BufferParameters##CAP_SQUARE}. * The default is CAP_ROUND. * * @param endCapStyle the end cap style to specify */ public void setEndCapStyle(int endCapStyle) { bufParams.setEndCapStyle(endCapStyle); }
/** * Creates a set of parameters with the * given quadrantSegments and endCapStyle values. * * @param quadrantSegments the number of quadrant segments to use * @param endCapStyle the end cap style to use */ public BufferParameters(int quadrantSegments, int endCapStyle) { setQuadrantSegments(quadrantSegments); setEndCapStyle(endCapStyle); }
final Geometry createBuffer(List<Geometry> lineStrings, double bufferSize, boolean excludeTermini) { BufferParameters bufferParameters = new BufferParameters(); if (excludeTermini) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else { bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); } Geometry union = null; for (Geometry lineString : lineStrings) { Geometry buffer = BufferOp.bufferOp(lineString, bufferSize, bufferParameters); if (union == null) { union = buffer; } else { union = union.union(buffer); } } return union; }
String param = keyValue[1]; if (param.equalsIgnoreCase("round")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); } else if (param.equalsIgnoreCase("flat") || param.equalsIgnoreCase("butt")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else if (param.equalsIgnoreCase("square")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_SQUARE); } else { throw new IllegalArgumentException("Supported join values are round, flat, butt or square.");
String param = keyValue[1]; if (param.equalsIgnoreCase("round")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); } else if (param.equalsIgnoreCase("flat") || param.equalsIgnoreCase("butt")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else if (param.equalsIgnoreCase("square")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_SQUARE); } else { throw new IllegalArgumentException("Supported join values are round, flat, butt or square.");
String param = keyValue[1]; if (param.equalsIgnoreCase("round")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else if (param.equalsIgnoreCase("square")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else if (param.equalsIgnoreCase("flat")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else { throw new IllegalArgumentException("Supported join values are round or square.");
String param = keyValue[1]; if (param.equalsIgnoreCase("round")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); } else if (param.equalsIgnoreCase("square")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_SQUARE); } else { throw new IllegalArgumentException("Supported join values are round or square.");
String param = keyValue[1]; if (param.equalsIgnoreCase("round")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); } else if (param.equalsIgnoreCase("square")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_SQUARE); } else { throw new IllegalArgumentException("Supported join values are round or square.");
String param = keyValue[1]; if (param.equalsIgnoreCase("round")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else if (param.equalsIgnoreCase("square")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else if (param.equalsIgnoreCase("flat")) { bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); } else { throw new IllegalArgumentException("Supported join values are round or square.");
String param = keyValue[1]; if(param.equalsIgnoreCase("round")){ bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); bufferParameters.setEndCapStyle(BufferParameters.CAP_SQUARE);
String param = keyValue[1]; if(param.equalsIgnoreCase("round")){ bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); bufferParameters.setEndCapStyle(BufferParameters.CAP_SQUARE);
String param = keyValue[1]; if(param.equalsIgnoreCase("round")){ bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND); bufferParameters.setEndCapStyle(BufferParameters.CAP_FLAT); bufferParameters.setEndCapStyle(BufferParameters.CAP_SQUARE);
/** * Creates a set of parameters with the * given parameter values. * * @param quadrantSegments the number of quadrant segments to use * @param endCapStyle the end cap style to use * @param joinStyle the join style to use * @param mitreLimit the mitre limit to use */ public BufferParameters(int quadrantSegments, int endCapStyle, int joinStyle, double mitreLimit) { setQuadrantSegments(quadrantSegments); setEndCapStyle(endCapStyle); setJoinStyle(joinStyle); setMitreLimit(mitreLimit); }