Static Public Member Functions | |
static List< Ink > | clusterStrokes (List< InkStroke > strokes, final double margin) |
Clusters a list of strokes into a list of list of strokes. | |
static List< InkStroke > | getAllStrokesContainedWithin (List< Ink > inkWell, InkStroke container) |
Finds all the strokes contained within another stroke's bounding box. | |
static List< InkStroke > | getAllStrokesOutside (List< Ink > inkWell, InkStroke container) |
Finds all strokes outside a containing stroke (no overlap). | |
static Ink | getInkNearPoint (List< Ink > inkWell, Point2D point, double range) |
Finds the first clusters near a particular point (perhaps revise to find nearest cluster). | |
static double | getMaxDistanceBetweenSamples (InkStroke stroke) |
static List< InkStroke > | getStrokesPartlyOutside (List< Ink > inkWell, InkStroke container) |
Finds all strokes that intersect with but are not entirely contained by another stroke. | |
static InkStroke | getStrokeWithLargestArea (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! | |
HideFromFlash static void | main (String[] args) |
Package Functions | |
HideFromFlash () public static List< Method > getExposedMethods() | |
Last year's Remote API fun was actually useful! Wow. |
This software is distributed under the BSD License.
Definition at line 25 of file InkUtils.java.
Clusters a list of strokes into a list of list of strokes.
The margin allows you to control how big the compared bounding boxes are. A margin of 2.0 would double the width and height of each bounding box before making intersection comparisons.
strokes | list of strokes to group | |
margin | the fraction of each stroke size to check for overlap |
Definition at line 38 of file InkUtils.java.
References InkStroke.getBounds().
static List<InkStroke> getAllStrokesContainedWithin | ( | List< Ink > | inkWell, | |
InkStroke | container | |||
) | [static] |
Finds all the strokes contained within another stroke's bounding box.
inkWell | the strokes to check | |
container | the containing stroke |
Definition at line 94 of file InkUtils.java.
References InkStroke.getBounds().
Finds all strokes outside a containing stroke (no overlap).
inkWell | the list of strokes to check | |
container | the containing stroke |
Definition at line 123 of file InkUtils.java.
References InkStroke.getBounds().
Finds the first clusters near a particular point (perhaps revise to find nearest cluster).
inkWell | list of clusters | |
point | the point to compare to | |
range | number of units away from the point to check |
Definition at line 182 of file InkUtils.java.
static double getMaxDistanceBetweenSamples | ( | InkStroke | stroke | ) | [static] |
stroke |
Definition at line 197 of file InkUtils.java.
References InkStroke.getSamples().
static List<InkStroke> getStrokesPartlyOutside | ( | List< Ink > | inkWell, | |
InkStroke | container | |||
) | [static] |
Finds all strokes that intersect with but are not entirely contained by another stroke.
inkWell | the list of strokes | |
container | the containing stroke |
Definition at line 217 of file InkUtils.java.
References InkStroke.getBounds().
Finds the stroke with the largest area within a list of clusters.
inkWell | the list of clusters |
Definition at line 245 of file InkUtils.java.
References InkStroke.getArea().
Use this in the example!
ink |
Definition at line 271 of file InkUtils.java.
References Ink.getStrokes().
HideFromFlash | ( | ) | [package] |
Last year's Remote API fun was actually useful! Wow.
Definition at line 147 of file InkUtils.java.
HideFromFlash static void main | ( | String[] | args | ) | [static] |