Java Code Examples for org.jfree.chart.axis.ValueAxis#pan()
The following examples show how to use
org.jfree.chart.axis.ValueAxis#pan() .
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: XYPlot.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * Pans the range axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } int rangeAxisCount = getRangeAxisCount(); for (int i = 0; i < rangeAxisCount; i++) { ValueAxis axis = getRangeAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 2
Source File: CombinedRangeXYPlot.java From ECG-Viewer with GNU General Public License v2.0 | 6 votes |
/** * Pans all domain axes by the specified percentage. * * @param panRange the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.15 */ @Override public void panDomainAxes(double panRange, PlotRenderingInfo info, Point2D source) { XYPlot subplot = findSubplot(info, source); if (subplot == null) { return; } if (!subplot.isDomainPannable()) { return; } PlotRenderingInfo subplotInfo = info.getSubplotInfo( info.getSubplotIndex(source)); if (subplotInfo == null) { return; } for (int i = 0; i < subplot.getDomainAxisCount(); i++) { ValueAxis domainAxis = subplot.getDomainAxis(i); if (domainAxis != null) { domainAxis.pan(panRange); } } }
Example 3
Source File: Cardumen_0082_s.java From coming with MIT License | 6 votes |
/** * Pans the domain axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isDomainPannable()) { return; } int domainAxisCount = getDomainAxisCount(); for (int i = 0; i < domainAxisCount; i++) { ValueAxis axis = getDomainAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 4
Source File: Cardumen_0082_t.java From coming with MIT License | 6 votes |
/** * Pans the range axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } int rangeAxisCount = getRangeAxisCount(); for (int i = 0; i < rangeAxisCount; i++) { ValueAxis axis = getRangeAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 5
Source File: Cardumen_0082_t.java From coming with MIT License | 6 votes |
/** * Pans the domain axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isDomainPannable()) { return; } int domainAxisCount = getDomainAxisCount(); for (int i = 0; i < domainAxisCount; i++) { ValueAxis axis = getDomainAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 6
Source File: Cardumen_009_t.java From coming with MIT License | 6 votes |
/** * Pans the range axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } int rangeAxisCount = getRangeAxisCount(); for (int i = 0; i < rangeAxisCount; i++) { ValueAxis axis = getRangeAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 7
Source File: Cardumen_009_t.java From coming with MIT License | 6 votes |
/** * Pans the domain axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isDomainPannable()) { return; } int domainAxisCount = getDomainAxisCount(); for (int i = 0; i < domainAxisCount; i++) { ValueAxis axis = getDomainAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 8
Source File: XYPlot.java From buffer_bci with GNU General Public License v3.0 | 6 votes |
/** * Pans the range axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } int rangeAxisCount = getRangeAxisCount(); for (int i = 0; i < rangeAxisCount; i++) { ValueAxis axis = getRangeAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 9
Source File: Cardumen_009_s.java From coming with MIT License | 6 votes |
/** * Pans the domain axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isDomainPannable()) { return; } int domainAxisCount = getDomainAxisCount(); for (int i = 0; i < domainAxisCount; i++) { ValueAxis axis = getDomainAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 10
Source File: CombinedRangeXYPlot.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * Pans all domain axes by the specified percentage. * * @param panRange the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.15 */ @Override public void panDomainAxes(double panRange, PlotRenderingInfo info, Point2D source) { XYPlot subplot = findSubplot(info, source); if (subplot == null) { return; } if (!subplot.isDomainPannable()) { return; } PlotRenderingInfo subplotInfo = info.getSubplotInfo( info.getSubplotIndex(source)); if (subplotInfo == null) { return; } for (int i = 0; i < subplot.getDomainAxisCount(); i++) { ValueAxis domainAxis = subplot.getDomainAxis(i); if (domainAxis != null) { domainAxis.pan(panRange); } } }
Example 11
Source File: CombinedDomainXYPlot.java From ECG-Viewer with GNU General Public License v2.0 | 6 votes |
/** * Pans all range axes by the specified percentage. * * @param panRange the distance to pan (as a percentage of the axis length). * @param info the plot info ({@code null} not permitted). * @param source the source point where the pan action started. * * @since 1.0.15 */ @Override public void panRangeAxes(double panRange, PlotRenderingInfo info, Point2D source) { XYPlot subplot = findSubplot(info, source); if (subplot == null) { return; } if (!subplot.isRangePannable()) { return; } PlotRenderingInfo subplotInfo = info.getSubplotInfo( info.getSubplotIndex(source)); if (subplotInfo == null) { return; } for (int i = 0; i < subplot.getRangeAxisCount(); i++) { ValueAxis rangeAxis = subplot.getRangeAxis(i); if (rangeAxis != null) { rangeAxis.pan(panRange); } } }
Example 12
Source File: XYPlot.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * Pans the domain axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isDomainPannable()) { return; } int domainAxisCount = getDomainAxisCount(); for (int i = 0; i < domainAxisCount; i++) { ValueAxis axis = getDomainAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 13
Source File: CombinedDomainXYPlot.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * Pans all range axes by the specified percentage. * * @param panRange the distance to pan (as a percentage of the axis length). * @param info the plot info ({@code null} not permitted). * @param source the source point where the pan action started. * * @since 1.0.15 */ @Override public void panRangeAxes(double panRange, PlotRenderingInfo info, Point2D source) { XYPlot subplot = findSubplot(info, source); if (subplot == null) { return; } if (!subplot.isRangePannable()) { return; } PlotRenderingInfo subplotInfo = info.getSubplotInfo( info.getSubplotIndex(source)); if (subplotInfo == null) { return; } for (int i = 0; i < subplot.getRangeAxisCount(); i++) { ValueAxis rangeAxis = subplot.getRangeAxis(i); if (rangeAxis != null) { rangeAxis.pan(panRange); } } }
Example 14
Source File: XYPlot.java From buffer_bci with GNU General Public License v3.0 | 6 votes |
/** * Pans the range axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } int rangeAxisCount = getRangeAxisCount(); for (int i = 0; i < rangeAxisCount; i++) { ValueAxis axis = getRangeAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 15
Source File: XYPlot.java From ccu-historian with GNU General Public License v3.0 | 6 votes |
/** * Pans the range axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } int rangeAxisCount = getRangeAxisCount(); for (int i = 0; i < rangeAxisCount; i++) { ValueAxis axis = getRangeAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 16
Source File: XYPlot.java From ccu-historian with GNU General Public License v3.0 | 6 votes |
/** * Pans the domain axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isDomainPannable()) { return; } int domainAxisCount = getDomainAxisCount(); for (int i = 0; i < domainAxisCount; i++) { ValueAxis axis = getDomainAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 17
Source File: CombinedDomainXYPlot.java From ccu-historian with GNU General Public License v3.0 | 6 votes |
/** * Pans all range axes by the specified percentage. * * @param panRange the distance to pan (as a percentage of the axis length). * @param info the plot info ({@code null} not permitted). * @param source the source point where the pan action started. * * @since 1.0.15 */ @Override public void panRangeAxes(double panRange, PlotRenderingInfo info, Point2D source) { XYPlot subplot = findSubplot(info, source); if (subplot == null) { return; } if (!subplot.isRangePannable()) { return; } PlotRenderingInfo subplotInfo = info.getSubplotInfo( info.getSubplotIndex(source)); if (subplotInfo == null) { return; } for (int i = 0; i < subplot.getRangeAxisCount(); i++) { ValueAxis rangeAxis = subplot.getRangeAxis(i); if (rangeAxis != null) { rangeAxis.pan(panRange); } } }
Example 18
Source File: CombinedRangeXYPlot.java From buffer_bci with GNU General Public License v3.0 | 6 votes |
/** * Pans all domain axes by the specified percentage. * * @param panRange the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.15 */ @Override public void panDomainAxes(double panRange, PlotRenderingInfo info, Point2D source) { XYPlot subplot = findSubplot(info, source); if (subplot == null) { return; } if (!subplot.isDomainPannable()) { return; } PlotRenderingInfo subplotInfo = info.getSubplotInfo( info.getSubplotIndex(source)); if (subplotInfo == null) { return; } for (int i = 0; i < subplot.getDomainAxisCount(); i++) { ValueAxis domainAxis = subplot.getDomainAxis(i); if (domainAxis != null) { domainAxis.pan(panRange); } } }
Example 19
Source File: XYPlot.java From openstock with GNU General Public License v3.0 | 6 votes |
/** * Pans the range axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } int rangeAxisCount = getRangeAxisCount(); for (int i = 0; i < rangeAxisCount; i++) { ValueAxis axis = getRangeAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }
Example 20
Source File: XYPlot.java From buffer_bci with GNU General Public License v3.0 | 6 votes |
/** * Pans the domain axes by the specified percentage. * * @param percent the distance to pan (as a percentage of the axis length). * @param info the plot info * @param source the source point where the pan action started. * * @since 1.0.13 */ @Override public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isDomainPannable()) { return; } int domainAxisCount = getDomainAxisCount(); for (int i = 0; i < domainAxisCount; i++) { ValueAxis axis = getDomainAxis(i); if (axis == null) { continue; } if (axis.isInverted()) { percent = -percent; } axis.pan(percent); } }