本文整理了Java中org.jfree.chart.plot.XYPlot.isRangePannable()
方法的一些代码示例,展示了XYPlot.isRangePannable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYPlot.isRangePannable()
方法的具体详情如下:
包路径:org.jfree.chart.plot.XYPlot
类名称:XYPlot
方法名:isRangePannable
[英]Returns true if panning is enabled for the range axis/axes, and false otherwise. The default value is false.
[中]如果为范围轴启用平移,则返回true,否则返回false。默认值为false。
代码示例来源:origin: jfree/jfreechart
/**
* Returns {@code true} if the range is pannable for at least one subplot,
* and {@code false} otherwise.
*
* @return A boolean.
*/
@Override
public boolean isRangePannable() {
for (XYPlot subplot : this.subplots) {
if (subplot.isRangePannable()) {
return true;
}
}
return false;
}
代码示例来源:origin: jfree/jfreechart
/**
* 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;
}
axis.pan(axis.isInverted() ? -percent : percent);
}
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* 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);
}
}
代码示例来源:origin: jfree/jfreechart
return;
if (!subplot.isRangePannable()) {
return;
内容来源于网络,如有侵权,请联系作者删除!