public class StrokeBBox extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY
The key to a property table, to store or access the cached
bounding box of a stroke.
|
Constructor and Description |
---|
StrokeBBox() |
Modifier and Type | Method and Description |
---|---|
static Rectangle2D |
apply(TimedStroke s)
Compute the stroke's bounding box using the minimum and maximum
x, y values in the path.
|
static Rectangle2D |
bboxNoCache(TimedStroke s)
Return the bounding box, but do not cache the
results in the stroke's property table.
|
public static String PROPERTY_KEY
public static Rectangle2D apply(TimedStroke s)
FIXME - this caching is extremely dangerous for incremental recognition. check number of points in stroke? have a force recompute function?
public static Rectangle2D bboxNoCache(TimedStroke s)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.