Class SelectionUI

java.lang.Object
com.j3d.engine.interact.selection.SelectionUI

public class SelectionUI extends Object
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 Details

    • STRICT_COLOR

      public static final Color STRICT_COLOR
    • SOFT_COLOR

      public static final Color SOFT_COLOR
    • SUBTRACT_COLOR

      public static final Color SUBTRACT_COLOR
    • UNION_COLOR

      public static final Color UNION_COLOR
    • inferredSelection

      public static SelectionUtils.InferredSelectionType inferredSelection
      The basic inferred selection via mouse dragging in combination with keybinds.
  • Constructor Details

    • SelectionUI

      public SelectionUI()
  • Method Details