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

The following examples show how to use org.jfree.chart.fx.interaction.MouseHandlerFX#getID() . 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 openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a mouse handler to the list of available handlers (handlers that
 * are candidates to take the position of live handler).  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted). 
 */
public void addMouseHandler(MouseHandlerFX handler) {
    if (!this.hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.availableMouseHandlers.add(handler);
}
 
Example 2
Source File: ChartCanvas.java    From jfreechart-fx with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Adds a mouse handler to the list of available handlers (handlers that
 * are candidates to take the position of live handler).  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted). 
 */
public void addMouseHandler(MouseHandlerFX handler) {
    if (!hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.availableMouseHandlers.add(handler);
}
 
Example 3
Source File: ChartCanvas.java    From jfreechart-fx with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Adds a handler to the list of auxiliary handlers.  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted).
 */
public void addAuxiliaryMouseHandler(MouseHandlerFX handler) {
    if (!hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.auxiliaryMouseHandlers.add(handler);
}
 
Example 4
Source File: ChartCanvas.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a mouse handler to the list of available handlers (handlers that
 * are candidates to take the position of live handler).  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted). 
 */
public void addMouseHandler(MouseHandlerFX handler) {
    if (!this.hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.availableMouseHandlers.add(handler);
}
 
Example 5
Source File: ChartCanvas.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Adds a mouse handler to the list of available handlers (handlers that
 * are candidates to take the position of live handler).  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted). 
 */
public void addMouseHandler(MouseHandlerFX handler) {
    if (!this.hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.availableMouseHandlers.add(handler);
}
 
Example 6
Source File: ChartCanvas.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a mouse handler to the list of available handlers (handlers that
 * are candidates to take the position of live handler).  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted). 
 */
public void addMouseHandler(MouseHandlerFX handler) {
    if (!this.hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.availableMouseHandlers.add(handler);
}
 
Example 7
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a mouse handler to the list of available handlers (handlers that
 * are candidates to take the position of live handler).  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted). 
 */
public void addMouseHandler(MouseHandlerFX handler) {
    if (!this.hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.availableMouseHandlers.add(handler);
}
 
Example 8
Source File: ChartCanvas.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a mouse handler to the list of available handlers (handlers that
 * are candidates to take the position of live handler).  The handler must
 * have an ID that uniquely identifies it amongst the handlers registered
 * with this canvas.
 * 
 * @param handler  the handler ({@code null} not permitted). 
 */
public void addMouseHandler(MouseHandlerFX handler) {
    if (!this.hasUniqueID(handler)) {
        throw new IllegalArgumentException(
                "There is already a handler with that ID (" 
                        + handler.getID() + ").");
    }
    this.availableMouseHandlers.add(handler);
}