public static enum Line.InterpolationMode extends Enum<Line.InterpolationMode>
Line.interpolate(InterpolationMode)
.
The behavior of some of these interpolation modes may be further
customized by specifying a Line.tension()
.
Enum Constant and Description |
---|
BASIS
a B-spline, with control point duplication on the ends.
|
BASIS_CLOSED
a closed B-spline, as in a loop.
|
BASIS_OPEN
an open B-spline; may not intersect the start or end.
|
BUNDLE
equivalent to basis, except the tension parameter is used to
straighten the spline.
|
CARDINAL
a Cardinal spline, with control point duplication on the ends.
|
CARDINAL_CLOSED
a closed Cardinal spline, as in a loop.
|
CARDINAL_OPEN
an open Cardinal spline; may not intersect the start or end, but will
intersect other control points.
|
LINEAR
piecewise linear segments, as in a polyline.
|
LINEAR_CLOSED
close the linear segments to form a polygon.
|
MONOTONE
cubic interpolation that preserves monotonicity in y.
|
STEP
alternate between horizontal and vertical segments, as in a step
function
|
STEP_AFTER
alternate between horizontal and vertical segments, as in a step
function
|
STEP_BEFORE
alternate between vertical and horizontal segments, as in a step
function.
|
Modifier and Type | Method and Description |
---|---|
static Line.InterpolationMode |
fromValue(String value) |
String |
getValue() |
static Line.InterpolationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Line.InterpolationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Line.InterpolationMode LINEAR
public static final Line.InterpolationMode LINEAR_CLOSED
public static final Line.InterpolationMode STEP
public static final Line.InterpolationMode STEP_BEFORE
public static final Line.InterpolationMode STEP_AFTER
public static final Line.InterpolationMode BASIS
public static final Line.InterpolationMode BASIS_OPEN
public static final Line.InterpolationMode BASIS_CLOSED
public static final Line.InterpolationMode BUNDLE
public static final Line.InterpolationMode CARDINAL
public static final Line.InterpolationMode CARDINAL_OPEN
public static final Line.InterpolationMode CARDINAL_CLOSED
public static final Line.InterpolationMode MONOTONE
public static Line.InterpolationMode[] values()
for (Line.InterpolationMode c : Line.InterpolationMode.values()) System.out.println(c);
public static Line.InterpolationMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
public static Line.InterpolationMode fromValue(String value)
Copyright © 2015 gwt-d3. All rights reserved.