public class OffsetParameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
OffsetParameters.OffsetType |
Modifier and Type | Method and Description |
---|---|
static OffsetParameters |
create()
Creates a new OffsetParameters object.
|
double |
getBevelRatio()
The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection
can be located before it is bevelled.
|
com.google.gwt.core.client.JsArray<Geometry> |
getGeometries()
The array of geomtries to be offset.
|
float |
getOffsetDistance()
Specifies the distance for constructing an offset based on the input geometries.
|
OffsetParameters.OffsetType |
getOffsetHow()
Get the offset how parameter.
|
GeometryService.UnitType |
getOffsetUnit()
The offset distance unit.
|
void |
setBevelRatio(double bevelRatio)
set the bevel ratio parameter.
|
void |
setGeometries(Geometry[] geometries)
Set the geometries parameter.
|
void |
setOffsetDistance(float offsetDistance)
Set the offset distance parameter.
|
void |
setOffsetHow(OffsetParameters.OffsetType offsetHow)
Set the offset how parameter.
|
void |
setOffsetUnit(GeometryService.UnitType offsetUnit)
Set the offset unit.
|
public static OffsetParameters create()
public final double getBevelRatio()
public final void setBevelRatio(double bevelRatio)
bevelRatio
- - The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection
can be located before it is bevelled. When mitered is specified, the value set for bevelRatio is ignored and 10 is
sed internally. If bevelled is specified 1.1 will be used if no value is set for bevelRatio. The bevelRatio is ignored
when rounded is specified.public final com.google.gwt.core.client.JsArray<Geometry> getGeometries()
public final void setGeometries(Geometry[] geometries)
geometries
- - The array of geomtries to be offset.public final float getOffsetDistance()
public final void setOffsetDistance(float offsetDistance)
offsetDistance
- - Specifies the distance for constructing an offset based on the input geometries. If the
offsetDistance parameter is positive the constructed offset will be on the right side of the curve. Left side offsets
are constructed with negative values.public final OffsetParameters.OffsetType getOffsetHow()
public final void setOffsetHow(OffsetParameters.OffsetType offsetHow)
offsetHow
- public final GeometryService.UnitType getOffsetUnit()
public final void setOffsetUnit(GeometryService.UnitType offsetUnit)
offsetUnit
- - The offset distance unit.