Utilities
The small helpers that the other families share: points and boxes, Bézier curves, sorted and registry lists, lockable values, threads, platform folders, JSON files and pixel buffers. Learn: Threads, Where JOID stores files.
| Type | Kind | Summary |
|---|---|---|
Bezier | class | Computes the points of quadratic and cubic Bézier curves. |
BoundingBox | class | Mutable rectangle stored by its minimum and maximum corners, in design pixels. |
IIndexedElement | interface | Element that gives its place in an IndexedList. |
ImageUtils | class | Decodes an image with a chosen reader and prepares pixels with transparent areas for filtering. |
IndexedList | class | List kept sorted by the index of its elements, with equal indexes in insertion order. |
JsonFiles | class | Reads and writes the JSON files of JOID safely: atomic writes, and a damaged file set aside instead of lost. |
LockableValue | class | Mutable value that can be locked, after which its setters refuse to change it and point to the methods that return a copy. |
PixelLayout | enum | Order of the four bytes of a pixel in a buffer, to convert between buffers and ARGB int pixels. |
Platform | enum | Operating system that JOID runs on, and where it keeps its cache there. |
Point | class | Immutable point of two or three double coordinates, compared by value. |
Registry | class | Ordered list of registered values in which the most recent registration wins. |
RenderThreadFuture | class | Future that completes on the render thread once the work it wraps is done, so the stages chained on it can touch the interface. |
ThreadUtils | class | Creates daemon threads and runs a task on the render thread. |
