|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.toolbox.StrokeFilter
diva.sketch.toolbox.NormalizeLengthStrokeFilter
public class NormalizeLengthStrokeFilter
Interpolate a timed stroke so that it contains a specified number of points.
Field Summary |
---|
Fields inherited from class diva.sketch.toolbox.StrokeFilter |
---|
PROPERTY_KEY |
Constructor Summary | |
---|---|
NormalizeLengthStrokeFilter(int numPoints)
Interpolate to the given number of points. |
Method Summary | |
---|---|
TimedStroke |
apply(TimedStroke s)
Interpolate a timed stroke so that it contains a certain number of points (specified through the constructor). |
int |
getPointCount()
Return the number of points that the filter interpolates to. |
static TimedStroke |
interpolate(TimedStroke s,
int numPoints)
Interpolate the given stroke to make it the given number of points. |
void |
setPointCount(int numPoints)
Set the number of points that the filter interpolates to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormalizeLengthStrokeFilter(int numPoints)
Method Detail |
---|
public int getPointCount()
public void setPointCount(int numPoints)
public TimedStroke apply(TimedStroke s)
apply
in class StrokeFilter
public static TimedStroke interpolate(TimedStroke s, int numPoints)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |