Example usage for java.awt.event MouseListener getClass

List of usage examples for java.awt.event MouseListener getClass

Introduction

In this page you can find the example usage for java.awt.event MouseListener getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:cgpanalyser.gui.chart.XYChartPanel.java

private void removeOldXYMouseMarkerListeners(XYMouseMarker mouseMarker) {
    MouseListener[] mouseListeners = this.getMouseListeners();
    for (MouseListener currentMouseListener : mouseListeners) {
        if (currentMouseListener.getClass() == mouseMarker.getClass())
            removeMouseListener(currentMouseListener);
    }//from   ww w.  j  a v a  2s. c  om
}