private final void dragBuffersInitialize( final @Nonnull PointReadable<ScreenRelative> mouse_position) { this.position_initial.setXI(this.componentGetPositionParentRelative().getXI()); this.position_initial.setYI(this.componentGetPositionParentRelative().getYI()); this.drag_start.setXI(mouse_position.getXI()); this.drag_start.setYI(mouse_position.getYI()); }
private final void dragBuffersUpdate( final @Nonnull PointReadable<ScreenRelative> mouse_position) { this.drag_delta_previous.setXI(mouse_position.getXI() - this.mouse_previous.getXI()); this.drag_delta_previous.setYI(mouse_position.getYI() - this.mouse_previous.getYI()); this.mouse_previous.setXI(mouse_position.getXI()); this.mouse_previous.setYI(mouse_position.getYI()); this.drag_delta_initial.setXI(mouse_position.getXI() - this.drag_start.getXI()); this.drag_delta_initial.setYI(mouse_position.getYI() - this.drag_start.getYI()); }