|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.hci.r3.pen.ink.InkUtils
public class InkUtils
Integrate all the nice features that we can use to analyze ink into this class.
This software is distributed under the BSD License.
| Constructor Summary | |
|---|---|
InkUtils()
|
|
| Method Summary | |
|---|---|
static java.util.List<Ink> |
clusterStrokes(java.util.List<InkStroke> strokes,
double margin)
Clusters a list of strokes into a list of list of strokes. |
static java.util.List<InkStroke> |
getAllStrokesContainedWithin(java.util.List<Ink> inkWell,
InkStroke container)
Finds all the strokes contained within another stroke's bounding box. |
static java.util.List<InkStroke> |
getAllStrokesOutside(java.util.List<Ink> inkWell,
InkStroke container)
Finds all strokes outside a containing stroke (no overlap) |
static java.util.List<java.lang.reflect.Method> |
getExposedMethods()
Last year's Remote API fun was actually useful! Wow. |
static Ink |
getInkNearPoint(java.util.List<Ink> inkWell,
java.awt.geom.Point2D point,
double range)
Finds the first clusters near a particular point (perhaps revise to find nearest cluster). |
static double |
getMaxDistanceBetweenSamples(InkStroke stroke)
|
static java.util.List<InkStroke> |
getStrokesPartlyOutside(java.util.List<Ink> inkWell,
InkStroke container)
Finds all strokes that intersect with but are not entirely contained by another stroke. |
static InkStroke |
getStrokeWithLargestArea(java.util.List<Ink> inkWell)
Finds the stroke with the largest area within a list of clusters. |
static Ink |
getStrokeWithMostSamples(Ink ink)
Use this in the example! |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InkUtils()
| Method Detail |
|---|
public static java.util.List<Ink> clusterStrokes(java.util.List<InkStroke> strokes,
double margin)
strokes - list of strokes to groupmargin - the fraction of each stroke size to check for overlap
public static java.util.List<InkStroke> getAllStrokesContainedWithin(java.util.List<Ink> inkWell,
InkStroke container)
inkWell - the strokes to checkcontainer - the containing stroke
public static java.util.List<InkStroke> getAllStrokesOutside(java.util.List<Ink> inkWell,
InkStroke container)
inkWell - the list of strokes to checkcontainer - the containing stroke
public static java.util.List<java.lang.reflect.Method> getExposedMethods()
public static Ink getInkNearPoint(java.util.List<Ink> inkWell,
java.awt.geom.Point2D point,
double range)
inkWell - list of clusterspoint - the point to compare torange - number of units away from the point to check
public static double getMaxDistanceBetweenSamples(InkStroke stroke)
stroke -
public static java.util.List<InkStroke> getStrokesPartlyOutside(java.util.List<Ink> inkWell,
InkStroke container)
inkWell - the list of strokescontainer - the containing stroke
public static InkStroke getStrokeWithLargestArea(java.util.List<Ink> inkWell)
inkWell - the list of clusters
public static Ink getStrokeWithMostSamples(Ink ink)
ink -
public static void main(java.lang.String[] args)
args -
|
Copyright 2006 Stanford University | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||