Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class GraphShapeRegistry
- Object
- GraphShapeRegistry
The outlines behind the names of GraphShapes, and the place to add
outlines of your own.
The registry is shared by every graph of the application, and like the components that read it, it belongs to the event dispatch thread.
Methods
public static void register(String name, GraphShape shape) | Adds an outline under a name, or replaces the one that had it. |
public static GraphShape get(String name) | The outline registered under a name, or null. |
public static boolean contains(String name, double px, double py, double x, double y, double w, double h) | True when a point lies inside a shape drawn in the given bounds. |
Inherited methods
Method details
register
public static void register(String name, GraphShape shape)Adds an outline under a name, or replaces the one that had it.
get
public static GraphShape get(String name)The outline registered under a name, or null. A node whose shape has
no outline is drawn as the ordinary box.
contains
public static boolean contains(String name, double px, double py, double x, double y, double w, double h)True when a point lies inside a shape drawn in the given bounds. A
name with no outline is its bounds.