Skip to content

Commit

Permalink
add RolloverProducer.isDragging()
Browse files Browse the repository at this point in the history
  • Loading branch information
homebeaver committed Jun 19, 2023
1 parent 9ab00c9 commit 3c2c974
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ public abstract class RolloverProducer implements MouseListener, MouseMotionList

private boolean isDragging;

protected boolean isDragging() {
return isDragging;
}

/**
* Installs all listeners, as required.
*
* @param component target to install required listeners on, must
* not be null.
* @param component target to install required listeners on,
* must not be null.
*/
public void install(JComponent component) {
component.addMouseListener(this);
Expand Down Expand Up @@ -309,8 +313,8 @@ protected void updateClientProperty(JComponent component, String property, boole

/**
* Subclasses must implement to map the given mouse coordinates into
* appropriate client coordinates. The result must be stored in the
* rollover field.
* appropriate client coordinates.
* The result must be stored in the rollover field.
*
* @param component the target component which received a mouse event
* @param mousePoint the mouse position of the event, coordinates are
Expand Down

0 comments on commit 3c2c974

Please sign in to comment.