Class SelectionUI
java.lang.Object
com.j3d.engine.interact.selection.SelectionUI
SelectionUI is a utility class for rendering the selection rectangle on the screen and determining the type of selection based on user input.
It provides methods to draw the selection rectangle with appropriate colours and cursors, and to infer the selection type (strict, soft, add, subtract)
based on the mouse drag direction and keyboard modifiers.
- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisStrict(ScreenPoint[] selectionArea) static voidrun(Graphics2D g, ScreenPoint[] selectionArea, SceneManager sceneManager)
-
Field Details
-
STRICT_COLOR
-
SOFT_COLOR
-
SUBTRACT_COLOR
-
UNION_COLOR
-
inferredSelection
The basic inferred selection via mouse dragging in combination with keybinds.
-
-
Constructor Details
-
SelectionUI
public SelectionUI()
-
-
Method Details
-
run
-
isStrict
-