|
|||||||||
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.NormalizeTimeStrokeFilter
public class NormalizeTimeStrokeFilter
Interpolate a timed stroke so that its points are spaced evenly over time.
Field Summary | |
---|---|
static int |
DEFAULT_TIMESTEP
The default timestep, 10ms. |
Fields inherited from class diva.sketch.toolbox.StrokeFilter |
---|
PROPERTY_KEY |
Constructor Summary | |
---|---|
NormalizeTimeStrokeFilter()
Interpolate to the default timestep. |
|
NormalizeTimeStrokeFilter(int timestep)
Interpolate to the given time step (in milliseconds) |
Method Summary | |
---|---|
TimedStroke |
apply(TimedStroke s)
Interpolate a timed stroke so that it contains a specified number of points. |
int |
getTimestep()
Return the timestep that the filter interpolates to in millisecs. |
static TimedStroke |
interpolate(TimedStroke s)
Normalize an individual stroke to time increments according to DEFAULT_TIMESTEP. |
static TimedStroke |
interpolate(TimedStroke s,
int timestep)
Normalize an individual stroke to time increments given by timestep. |
void |
setTimestep(int timestep)
Set the timestep (milliseconds) that the filter interpolates to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_TIMESTEP
Constructor Detail |
---|
public NormalizeTimeStrokeFilter(int timestep)
public NormalizeTimeStrokeFilter()
Method Detail |
---|
public int getTimestep()
public void setTimestep(int timestep)
public TimedStroke apply(TimedStroke s)
apply
in class StrokeFilter
public static TimedStroke interpolate(TimedStroke s)
public static TimedStroke interpolate(TimedStroke s, int timestep)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |