Class SnapPayload

java.lang.Object
com.j3d.engine.react.events.EventPayload<SnapMouseOwner>
com.j3d.engine.react.events.payloads.SnapPayload

public class SnapPayload extends EventPayload<SnapMouseOwner>
Represents an event payload specifically for snapping operations, carrying information about the GObject that is being snapped to.

This stores the GObject that is being snapped to.

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • snap

      private final GObject snap
  • Constructor Details

    • SnapPayload

      public SnapPayload(SnapMouseOwner e, GObject snap)
      Default Constructor for EventPayload
      Parameters:
      e - The initiator of the broadcast.
      snap - The object to snap to.
  • Method Details

    • getSnap

      public GObject getSnap()
      Retrieves the GObject that this payload indicates should be snapped to.
      Returns:
      The GObject target for the snap operation.