| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | bindBooleanToPseudoclass(Node
The node which the pseudo class will be applied to. node, ObservableValue<Boolean> The flag to switch on/off. booleanProperty, PseudoClass The style class to be applied. pseudoClass)Binds a boolean property to a pseudo class. |
| public static void | bindBooleanToStyleClass(Node
The node which the style class will be applied to. node, ObservableValue<Boolean> The flag to switch on/off. booleanProperty, String The style class to be applied. styleClass)Binds a boolean property to a style class in the given node. |
| public static Point2D | Returns: The point calculated.The middle of the circle in pixel representation. middle, double The radius of the circle. radius, double The angle for which the point is going to be calculated. angle)Calculates the x,y position of the given angle in relation with the circle represented by the middle point and radius. |
| public static double | Returns: The distance between the angles.The initial angle. alpha, double The final angle. beta)Calculates the distance between two angles in degrees, the result is a number between 0 - 180. |
| public static double | Returns: The rotation between the angles.The initial angle. alpha, double The final angle. beta)Calculates the rotation, which means the signed distance between two angles. |
| private static double |
| ControlsUtil | back to summary |
|---|---|
| private ControlsUtil() | |
| bindBooleanToPseudoclass | back to summary |
|---|---|
| public static void bindBooleanToPseudoclass(Node node, ObservableValue<Boolean> booleanProperty, PseudoClass pseudoClass) Binds a boolean property to a pseudo class. Doing this the pseudo class is switched on/off in the given node.
| |
| bindBooleanToStyleClass | back to summary |
|---|---|
| public static void bindBooleanToStyleClass(Node node, ObservableValue<Boolean> booleanProperty, String styleClass) Binds a boolean property to a style class in the given node. Doing this the style class is switched on/off depending on the boolean property.
| |
| calculatePointOnCircle | back to summary |
|---|---|
| public static Point2D calculatePointOnCircle(Point2D middle, double radius, double angle) Calculates the x,y position of the given angle in relation with the circle represented by the middle point and radius. | |
| distance | back to summary |
|---|---|
| public static double distance(double alpha, double beta) Calculates the distance between two angles in degrees, the result is a number between 0 - 180.
| |
| rotation | back to summary |
|---|---|
| public static double rotation(double alpha, double beta) Calculates the rotation, which means the signed distance between two angles.
| |
| switchPixelAndCartesian | back to summary |
|---|---|
| private static double switchPixelAndCartesian(double value) | |