|
JTS Topology Suite version 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.operation.buffer.BufferParameters
public class BufferParameters
Contains the parameters which describe how a buffer should be constructed.
| Field Summary | |
|---|---|
static int |
CAP_FLAT
Specifies a flat line buffer end cap style. |
static int |
CAP_ROUND
Specifies a round line buffer end cap style. |
static int |
CAP_SQUARE
Specifies a square line buffer end cap style. |
static double |
DEFAULT_MITRE_LIMIT
The default mitre limit Allows fairly pointy mitres. |
static int |
DEFAULT_QUADRANT_SEGMENTS
The default number of facets into which to divide a fillet of 90 degrees. |
static int |
JOIN_BEVEL
Specifies a bevel join style. |
static int |
JOIN_MITRE
Specifies a mitre join style. |
static int |
JOIN_ROUND
Specifies a round join style. |
| Constructor Summary | |
|---|---|
BufferParameters()
Creates a default set of parameters |
|
BufferParameters(int quadrantSegments)
Creates a set of parameters with the given quadrantSegments value. |
|
BufferParameters(int quadrantSegments,
int endCapStyle)
Creates a set of parameters with the given quadrantSegments and endCapStyle values. |
|
BufferParameters(int quadrantSegments,
int endCapStyle,
int joinStyle,
double mitreLimit)
Creates a set of parameters with the given parameter values. |
|
| Method Summary | |
|---|---|
static double |
bufferDistanceError(int quadSegs)
Computes the maximum distance error due to a given level of approximation to a true arc. |
int |
getEndCapStyle()
Gets the end cap style. |
int |
getJoinStyle()
Gets the join style |
double |
getMitreLimit()
Gets the mitre ratio limit. |
int |
getQuadrantSegments()
Gets the number of quadrant segments which will be used |
boolean |
isSingleSided()
Tests whether the buffer is to be generated on a single side only. |
void |
setEndCapStyle(int endCapStyle)
Specifies the end cap style of the generated buffer. |
void |
setJoinStyle(int joinStyle)
Sets the join style for outside (reflex) corners between line segments. |
void |
setMitreLimit(double mitreLimit)
Sets the limit on the mitre ratio used for very sharp corners. |
void |
setQuadrantSegments(int quadSegs)
Sets the number of line segments used to approximate an angle fillet. |
void |
setSingleSided(boolean isSingleSided)
Sets whether the computed buffer should be single-sided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CAP_ROUND
public static final int CAP_FLAT
public static final int CAP_SQUARE
public static final int JOIN_ROUND
public static final int JOIN_MITRE
public static final int JOIN_BEVEL
public static final int DEFAULT_QUADRANT_SEGMENTS
public static final double DEFAULT_MITRE_LIMIT
| Constructor Detail |
|---|
public BufferParameters()
public BufferParameters(int quadrantSegments)
quadrantSegments - the number of quadrant segments to use
public BufferParameters(int quadrantSegments,
int endCapStyle)
quadrantSegments - the number of quadrant segments to useendCapStyle - the end cap style to use
public BufferParameters(int quadrantSegments,
int endCapStyle,
int joinStyle,
double mitreLimit)
quadrantSegments - the number of quadrant segments to useendCapStyle - the end cap style to usejoinStyle - the join style to usemitreLimit - the mitre limit to use| Method Detail |
|---|
public int getQuadrantSegments()
public void setQuadrantSegments(int quadSegs)
mitreLimit = |quadSegs|
quadrantSegments - the number of segments in a fillet for a quadrantpublic static double bufferDistanceError(int quadSegs)
quadSegs - the number of segments used to approximate a quarter-circle
public int getEndCapStyle()
public void setEndCapStyle(int endCapStyle)
CAP_ROUND, #CAP_BUTT, and CAP_SQUARE.
The default is CAP_ROUND.
endCapStyle - the end cap style to specifypublic int getJoinStyle()
public void setJoinStyle(int joinStyle)
JOIN_ROUND (which is the default),
JOIN_MITRE and {link JOIN_BEVEL}.
joinStyle - the code for the join stylepublic double getMitreLimit()
public void setMitreLimit(double mitreLimit)
mitreLimit - the mitre ratio limitpublic void setSingleSided(boolean isSingleSided)
The End Cap Style for single-sided buffers is always ignored, and forced to the equivalent of CAP_FLAT.
isSingleSided - true if a single-sided buffer should be constructedpublic boolean isSingleSided()
|
JTS Topology Suite version 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||