Java Code Examples for org.jfree.chart.event.AxisChangeEvent#getSource()

The following examples show how to use org.jfree.chart.event.AxisChangeEvent#getSource() . 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: ContourPlot.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example 2
Source File: ContourPlot.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example 3
Source File: ContourPlot.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example 4
Source File: ContourPlot.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example 5
Source File: ContourPlot.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example 6
Source File: ContourPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example 7
Source File: ContourPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
@Override
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
        ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}
 
Example 8
Source File: ModifiedPlot.java    From chipster with MIT License 5 votes vote down vote up
/**
 * Receives notification of a change to one of the plot's axes.
 *
 * @param event  information about the event.
 */
public void axisChanged(AxisChangeEvent event) {
    Object source = event.getSource();
    if (source.equals(this.rangeAxis) || source.equals(this.domainAxis)) {
    	org.jfree.chart.axis.ColorBar cba = this.colorBar;
        if (this.colorBar.getAxis().isAutoRange()) {
            cba.getAxis().configure();
        }

    }
    super.axisChanged(event);
}