Java Code Examples for org.jfree.chart.fx.interaction.MouseHandlerFX#isEnabled()

The following examples show how to use org.jfree.chart.fx.interaction.MouseHandlerFX#isEnabled() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse dragged event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseDragged(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseDragged(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseDragged(this, e);
        }
    }
}
 
Example 2
Source File: ChartCanvas.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Handles a scroll event by passing it on to the registered handlers.
 * 
 * @param e  the scroll event.
 */
protected void handleScroll(ScrollEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleScroll(this, e);
    }
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleScroll(this, e);
        }
    }
}
 
Example 3
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse moved event by passing it on to the registered handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseMoved(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseMoved(this, e);
    }
    
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseMoved(this, e);
        }
    }
}
 
Example 4
Source File: ChartCanvas.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Handles a mouse released event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseReleased(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseReleased(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseReleased(this, e);
        }
    }
}
 
Example 5
Source File: ChartCanvas.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Handles a mouse dragged event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseDragged(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseDragged(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseDragged(this, e);
        }
    }
}
 
Example 6
Source File: ChartCanvas.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Handles a mouse moved event by passing it on to the registered handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseMoved(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseMoved(this, e);
    }
    
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseMoved(this, e);
        }
    }
}
 
Example 7
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse moved event by passing it on to the registered handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseMoved(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseMoved(this, e);
    }
    
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseMoved(this, e);
        }
    }
}
 
Example 8
Source File: ChartCanvas.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Handles a mouse dragged event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseDragged(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseDragged(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseDragged(this, e);
        }
    }
}
 
Example 9
Source File: ChartCanvas.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse released event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseReleased(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseReleased(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseReleased(this, e);
        }
    }
}
 
Example 10
Source File: ChartCanvas.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse dragged event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseDragged(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseDragged(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseDragged(this, e);
        }
    }
}
 
Example 11
Source File: ChartCanvas.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Handles a mouse moved event by passing it on to the registered handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseMoved(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseMoved(this, e);
    }
    
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseMoved(this, e);
        }
    }
}
 
Example 12
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse released event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseReleased(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseReleased(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseReleased(this, e);
        }
    }
}
 
Example 13
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse dragged event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseDragged(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseDragged(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseDragged(this, e);
        }
    }
}
 
Example 14
Source File: ChartCanvas.java    From jfreechart-fx with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Handles a mouse released event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseReleased(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseReleased(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseReleased(this, e);
        }
    }
}
 
Example 15
Source File: ChartCanvas.java    From jfreechart-fx with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Handles a mouse dragged event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseDragged(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseDragged(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseDragged(this, e);
        }
    }
}
 
Example 16
Source File: ChartCanvas.java    From jfreechart-fx with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Handles a mouse moved event by passing it on to the registered handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseMoved(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseMoved(this, e);
    }
    
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseMoved(this, e);
        }
    }
}
 
Example 17
Source File: ChartCanvas.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a scroll event by passing it on to the registered handlers.
 * 
 * @param e  the scroll event.
 */
protected void handleScroll(ScrollEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleScroll(this, e);
    }
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleScroll(this, e);
        }
    }
}
 
Example 18
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a scroll event by passing it on to the registered handlers.
 * 
 * @param e  the scroll event.
 */
protected void handleScroll(ScrollEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleScroll(this, e);
    }
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleScroll(this, e);
        }
    }
}
 
Example 19
Source File: ChartCanvas.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse released event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseReleased(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseReleased(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseReleased(this, e);
        }
    }
}
 
Example 20
Source File: ChartCanvas.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Handles a mouse dragged event by passing it on to the registered 
 * handlers.
 * 
 * @param e  the mouse event.
 */
private void handleMouseDragged(MouseEvent e) {
    if (this.liveHandler != null && this.liveHandler.isEnabled()) {
        this.liveHandler.handleMouseDragged(this, e);
    }
    
    // pass on the event to the auxiliary handlers
    for (MouseHandlerFX handler: this.auxiliaryMouseHandlers) {
        if (handler.isEnabled()) {
            handler.handleMouseDragged(this, e);
        }
    }
}