当前位置: 首页>>代码示例>>Java>>正文


Java Zoomable.isRangeZoomable方法代码示例

本文整理汇总了Java中org.jfree.chart.plot.Zoomable.isRangeZoomable方法的典型用法代码示例。如果您正苦于以下问题:Java Zoomable.isRangeZoomable方法的具体用法?Java Zoomable.isRangeZoomable怎么用?Java Zoomable.isRangeZoomable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.plot.Zoomable的用法示例。


在下文中一共展示了Zoomable.isRangeZoomable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setChart

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * Sets the chart that is displayed in the panel.
 * 
 * @param chart
 *            the chart (<code>null</code> permitted).
 */

@Override
public void setChart(JFreeChart chart) {

	// stop listening for changes to the existing chart
	if (this.chart != null) {
		this.chart.removeChangeListener(this);
		this.chart.removeProgressListener(this);
	}

	// add the new chart
	this.chart = chart;
	if (chart != null) {
		this.chart.addChangeListener(this);
		this.chart.addProgressListener(this);
		Plot plot = chart.getPlot();
		this.domainZoomable = false;
		this.rangeZoomable = false;
		if (plot instanceof Zoomable) {
			Zoomable z = (Zoomable) plot;
			this.domainZoomable = z.isDomainZoomable();
			this.rangeZoomable = z.isRangeZoomable();
			this.orientation = z.getOrientation();
		}
	} else {
		this.domainZoomable = false;
		this.rangeZoomable = false;
	}

	repaint();

}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:39,代码来源:AbstractChartPanel.java

示例2: setRangeZoomable

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * A flag that controls mouse-based zooming on the vertical axis.
 * 
 * @param flag
 *            <code>true</code> enables zooming.
 */

@Override
public void setRangeZoomable(boolean flag) {
	if (flag) {
		Plot plot = this.chart.getPlot();
		if (plot instanceof Zoomable) {
			Zoomable z = (Zoomable) plot;
			this.rangeZoomable = flag && z.isRangeZoomable();
		}
	} else {
		this.rangeZoomable = false;
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:20,代码来源:AbstractChartPanel.java

示例3: setChart

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * Sets the chart that is displayed in the panel.
 *
 * @param chart  the chart (<code>null</code> permitted).
 */
public void setChart(JFreeChart chart) {
    // stop listening for changes to the existing chart
    if (this.chart != null) {
        this.chart.removeChangeListener(this);
        this.chart.removeProgressListener(this);
    }

    // add the new chart
    this.chart = chart;
    if (chart != null) {
        this.chart.addChangeListener(this);
        this.chart.addProgressListener(this);
        Plot plot = chart.getPlot();
        this.domainZoomable = false;
        this.rangeZoomable = false;
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            this.domainZoomable = z.isDomainZoomable();
            this.rangeZoomable = z.isRangeZoomable();
            this.orientation = z.getOrientation();
        }
    }
    else {
        this.domainZoomable = false;
        this.rangeZoomable = false;
    }
    if (this.useBuffer) {
        this.refreshBuffer = true;
    }
    redraw();
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:37,代码来源:ChartComposite.java

示例4: setChart

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * Sets the chart that is displayed in the panel.
 *
 * @param chart  the chart (<code>null</code> permitted).
 */
public void setChart(JFreeChart chart) {

    // stop listening for changes to the existing chart
    if (this.chart != null) {
        this.chart.removeChangeListener(this);
        this.chart.removeProgressListener(this);
    }

    // add the new chart
    this.chart = chart;
    if (chart != null) {
        this.chart.addChangeListener(this);
        this.chart.addProgressListener(this);
        Plot plot = chart.getPlot();
        this.domainZoomable = false;
        this.rangeZoomable = false;
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            this.domainZoomable = z.isDomainZoomable();
            this.rangeZoomable = z.isRangeZoomable();
            this.orientation = z.getOrientation();
        }
    }
    else {
        this.domainZoomable = false;
        this.rangeZoomable = false;
    }
    if (this.useBuffer) {
        this.refreshBuffer = true;
    }
    repaint();

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:39,代码来源:ChartPanel.java

示例5: setRangeZoomable

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * A flag that controls mouse-based zooming on the vertical axis.
 *
 * @param flag  <code>true</code> enables zooming.
 */
public void setRangeZoomable(boolean flag) {
    if (flag) {
        Plot plot = this.chart.getPlot();
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            this.rangeZoomable = flag && (z.isRangeZoomable());  
        }
    }
    else {
        this.rangeZoomable = false;
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:ChartPanel.java

示例6: setChart

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * Sets the chart that is displayed in the panel.
 *
 * @param chart  the chart (<code>null</code> permitted).
 */
public void setChart(JFreeChart chart) {
    // stop listening for changes to the existing chart
    if (this.chart != null) {
        this.chart.removeChangeListener(this);
        this.chart.removeProgressListener(this);
    }

    // add the new chart
    this.chart = chart;
    if (chart != null) {
        this.chart.addChangeListener(this);
        this.chart.addProgressListener(this);
        Plot plot = chart.getPlot();
        this.domainZoomable = false;
        this.rangeZoomable = false;
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            this.domainZoomable = z.isDomainZoomable();
            this.rangeZoomable = z.isRangeZoomable();
            this.orientation = z.getOrientation();
        }
    }
    else {
        this.domainZoomable = false;
        this.rangeZoomable = false;
    }
    if (this.useBuffer) {
        this.refreshBuffer = true;
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:36,代码来源:ChartComposite.java

示例7: setRangeZoomable

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * A flag that controls mouse-based zooming on the vertical axis.
 *
 * @param flag  <code>true</code> enables zooming.
 */
public void setRangeZoomable(boolean flag) {
    if (flag) {
        Plot plot = this.chart.getPlot();
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            this.rangeZoomable = flag && (z.isRangeZoomable());
        }
    }
    else {
        this.rangeZoomable = false;
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:18,代码来源:ChartComposite.java

示例8: setChart

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * Sets the chart that is displayed in the panel.
 *
 * @param chart  the chart ({@code null} permitted).
 */
public void setChart(JFreeChart chart) {

    // stop listening for changes to the existing chart
    if (this.chart != null) {
        this.chart.removeChangeListener(this);
        this.chart.removeProgressListener(this);
    }

    // add the new chart
    this.chart = chart;
    if (chart != null) {
        this.chart.addChangeListener(this);
        this.chart.addProgressListener(this);
        Plot plot = chart.getPlot();
        this.domainZoomable = false;
        this.rangeZoomable = false;
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            this.domainZoomable = z.isDomainZoomable();
            this.rangeZoomable = z.isRangeZoomable();
            this.orientation = z.getOrientation();
        }
    }
    else {
        this.domainZoomable = false;
        this.rangeZoomable = false;
    }
    if (this.useBuffer) {
        this.refreshBuffer = true;
    }
    repaint();

}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:39,代码来源:ChartPanel.java

示例9: setRangeZoomable

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * A flag that controls mouse-based zooming on the vertical axis.
 *
 * @param flag  {@code true} enables zooming.
 */
public void setRangeZoomable(boolean flag) {
    if (flag) {
        Plot plot = this.chart.getPlot();
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            this.rangeZoomable = flag && (z.isRangeZoomable());
        }
    }
    else {
        this.rangeZoomable = false;
    }
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:18,代码来源:ChartPanel.java

示例10: displayPopupMenu

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * The idea is to modify the zooming options depending on the type of chart being displayed by
 * the panel.
 * 
 * @param x
 *            horizontal position of the popup.
 * @param y
 *            vertical position of the popup.
 */

@Override
protected void displayPopupMenu(int x, int y) {

	if (this.popup == null) {
		return;
	}

	// go through each zoom menu item and decide whether or not to
	// enable it...
	boolean isDomainZoomable = false;
	boolean isRangeZoomable = false;
	Plot plot = this.chart != null ? this.chart.getPlot() : null;
	if (plot instanceof Zoomable) {
		Zoomable z = (Zoomable) plot;
		isDomainZoomable = z.isDomainZoomable();
		isRangeZoomable = z.isRangeZoomable();
	}

	if (this.zoomInDomainMenuItem != null) {
		this.zoomInDomainMenuItem.setEnabled(isDomainZoomable);
	}
	if (this.zoomOutDomainMenuItem != null) {
		this.zoomOutDomainMenuItem.setEnabled(isDomainZoomable);
	}
	if (this.zoomResetDomainMenuItem != null) {
		this.zoomResetDomainMenuItem.setEnabled(isDomainZoomable);
	}

	if (this.zoomInRangeMenuItem != null) {
		this.zoomInRangeMenuItem.setEnabled(isRangeZoomable);
	}
	if (this.zoomOutRangeMenuItem != null) {
		this.zoomOutRangeMenuItem.setEnabled(isRangeZoomable);
	}

	if (this.zoomResetRangeMenuItem != null) {
		this.zoomResetRangeMenuItem.setEnabled(isRangeZoomable);
	}

	if (this.zoomInBothMenuItem != null) {
		this.zoomInBothMenuItem.setEnabled(isDomainZoomable && isRangeZoomable);
	}
	if (this.zoomOutBothMenuItem != null) {
		this.zoomOutBothMenuItem.setEnabled(isDomainZoomable && isRangeZoomable);
	}
	if (this.zoomResetBothMenuItem != null) {
		this.zoomResetBothMenuItem.setEnabled(isDomainZoomable && isRangeZoomable);
	}

	coordinateTransformation.showPopupMenu(new Point(x, y), this, popup);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:62,代码来源:AbstractChartPanel.java

示例11: displayPopupMenu

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * The idea is to modify the zooming options depending on the type of chart 
 * being displayed by the panel.
 *
 * @param x  horizontal position of the popup.
 * @param y  vertical position of the popup.
 */
protected void displayPopupMenu(int x, int y) 
{
    if (this.popup != null) {
        // go through each zoom menu item and decide whether or not to 
        // enable it...
        Plot plot = this.chart.getPlot();
        boolean isDomainZoomable = false;
        boolean isRangeZoomable = false;
        if (plot instanceof Zoomable) 
        {
            Zoomable z = (Zoomable) plot;
            isDomainZoomable = z.isDomainZoomable();
            isRangeZoomable = z.isRangeZoomable();
        }
        if (this.zoomInDomainMenuItem != null) {
            this.zoomInDomainMenuItem.setEnabled(isDomainZoomable);
        }
        if (this.zoomOutDomainMenuItem != null) {
            this.zoomOutDomainMenuItem.setEnabled(isDomainZoomable);
        } 
        if (this.zoomResetDomainMenuItem != null) {
            this.zoomResetDomainMenuItem.setEnabled(isDomainZoomable);
        }

        if (this.zoomInRangeMenuItem != null) {
            this.zoomInRangeMenuItem.setEnabled(isRangeZoomable);
        }
        if (this.zoomOutRangeMenuItem != null) {
            this.zoomOutRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomResetRangeMenuItem != null) {
            this.zoomResetRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomInBothMenuItem != null) {
            this.zoomInBothMenuItem.setEnabled(
                isDomainZoomable & isRangeZoomable
            );
        }
        if (this.zoomOutBothMenuItem != null) {
            this.zoomOutBothMenuItem.setEnabled(
                isDomainZoomable & isRangeZoomable
            );
        }
        if (this.zoomResetBothMenuItem != null) {
            this.zoomResetBothMenuItem.setEnabled(
                isDomainZoomable & isRangeZoomable
            );
        }

        this.popup.setLocation(x, y);
        this.popup.setVisible(true);
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:64,代码来源:ChartComposite.java

示例12: displayPopupMenu

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * The idea is to modify the zooming options depending on the type of chart 
 * being displayed by the panel.
 *
 * @param x  horizontal position of the popup.
 * @param y  vertical position of the popup.
 */
protected void displayPopupMenu(int x, int y) {

    if (this.popup != null) {

        // go through each zoom menu item and decide whether or not to 
        // enable it...
        Plot plot = this.chart.getPlot();
        boolean isDomainZoomable = false;
        boolean isRangeZoomable = false;
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            isDomainZoomable = z.isDomainZoomable();
            isRangeZoomable = z.isRangeZoomable();
        }
        
        if (this.zoomInDomainMenuItem != null) {
            this.zoomInDomainMenuItem.setEnabled(isDomainZoomable);
        }
        if (this.zoomOutDomainMenuItem != null) {
            this.zoomOutDomainMenuItem.setEnabled(isDomainZoomable);
        } 
        if (this.zoomResetDomainMenuItem != null) {
            this.zoomResetDomainMenuItem.setEnabled(isDomainZoomable);
        }

        if (this.zoomInRangeMenuItem != null) {
            this.zoomInRangeMenuItem.setEnabled(isRangeZoomable);
        }
        if (this.zoomOutRangeMenuItem != null) {
            this.zoomOutRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomResetRangeMenuItem != null) {
            this.zoomResetRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomInBothMenuItem != null) {
            this.zoomInBothMenuItem.setEnabled(isDomainZoomable 
                    && isRangeZoomable);
        }
        if (this.zoomOutBothMenuItem != null) {
            this.zoomOutBothMenuItem.setEnabled(isDomainZoomable 
                    && isRangeZoomable);
        }
        if (this.zoomResetBothMenuItem != null) {
            this.zoomResetBothMenuItem.setEnabled(isDomainZoomable 
                    && isRangeZoomable);
        }

        this.popup.show(this, x, y);
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:61,代码来源:ChartPanel.java

示例13: displayPopupMenu

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * The idea is to modify the zooming options depending on the type of chart
 * being displayed by the panel.
 *
 * @param x  horizontal position of the popup.
 * @param y  vertical position of the popup.
 */
protected void displayPopupMenu(int x, int y) {
    if (this.popup != null) {
        // go through each zoom menu item and decide whether or not to
        // enable it...
        Plot plot = this.chart.getPlot();
        boolean isDomainZoomable = false;
        boolean isRangeZoomable = false;
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            isDomainZoomable = z.isDomainZoomable();
            isRangeZoomable = z.isRangeZoomable();
        }
        if (this.zoomInDomainMenuItem != null) {
            this.zoomInDomainMenuItem.setEnabled(isDomainZoomable);
        }
        if (this.zoomOutDomainMenuItem != null) {
            this.zoomOutDomainMenuItem.setEnabled(isDomainZoomable);
        }
        if (this.zoomResetDomainMenuItem != null) {
            this.zoomResetDomainMenuItem.setEnabled(isDomainZoomable);
        }

        if (this.zoomInRangeMenuItem != null) {
            this.zoomInRangeMenuItem.setEnabled(isRangeZoomable);
        }
        if (this.zoomOutRangeMenuItem != null) {
            this.zoomOutRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomResetRangeMenuItem != null) {
            this.zoomResetRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomInBothMenuItem != null) {
            this.zoomInBothMenuItem.setEnabled(isDomainZoomable
                    & isRangeZoomable);
        }
        if (this.zoomOutBothMenuItem != null) {
            this.zoomOutBothMenuItem.setEnabled(isDomainZoomable
                    & isRangeZoomable);
        }
        if (this.zoomResetBothMenuItem != null) {
            this.zoomResetBothMenuItem.setEnabled(isDomainZoomable
                    & isRangeZoomable);
        }

        this.popup.setLocation(x, y);
        this.popup.setVisible(true);
    }

}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:59,代码来源:ChartComposite.java

示例14: displayPopupMenu

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * The idea is to modify the zooming options depending on the type of chart
 * being displayed by the panel.
 *
 * @param x  horizontal position of the popup.
 * @param y  vertical position of the popup.
 */
protected void displayPopupMenu(int x, int y) {

    if (this.popup == null) {
        return;
    }

    // go through each zoom menu item and decide whether or not to
    // enable it...
    boolean isDomainZoomable = false;
    boolean isRangeZoomable = false;
    Plot plot = (this.chart != null ? this.chart.getPlot() : null);
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        isDomainZoomable = z.isDomainZoomable();
        isRangeZoomable = z.isRangeZoomable();
    }

    if (this.zoomInDomainMenuItem != null) {
        this.zoomInDomainMenuItem.setEnabled(isDomainZoomable);
    }
    if (this.zoomOutDomainMenuItem != null) {
        this.zoomOutDomainMenuItem.setEnabled(isDomainZoomable);
    }
    if (this.zoomResetDomainMenuItem != null) {
        this.zoomResetDomainMenuItem.setEnabled(isDomainZoomable);
    }

    if (this.zoomInRangeMenuItem != null) {
        this.zoomInRangeMenuItem.setEnabled(isRangeZoomable);
    }
    if (this.zoomOutRangeMenuItem != null) {
        this.zoomOutRangeMenuItem.setEnabled(isRangeZoomable);
    }

    if (this.zoomResetRangeMenuItem != null) {
        this.zoomResetRangeMenuItem.setEnabled(isRangeZoomable);
    }

    if (this.zoomInBothMenuItem != null) {
        this.zoomInBothMenuItem.setEnabled(isDomainZoomable
                && isRangeZoomable);
    }
    if (this.zoomOutBothMenuItem != null) {
        this.zoomOutBothMenuItem.setEnabled(isDomainZoomable
                && isRangeZoomable);
    }
    if (this.zoomResetBothMenuItem != null) {
        this.zoomResetBothMenuItem.setEnabled(isDomainZoomable
                && isRangeZoomable);
    }

    this.popup.show(this, x, y);

}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:62,代码来源:ChartPanel.java

示例15: displayPopupMenu

import org.jfree.chart.plot.Zoomable; //导入方法依赖的package包/类
/**
 * The idea is to modify the zooming options depending on the type of chart
 * being displayed by the panel.
 *
 * @param x  horizontal position of the popup.
 * @param y  vertical position of the popup.
 */
protected void displayPopupMenu(int x, int y) {

    if (this.popup != null) {

        // go through each zoom menu item and decide whether or not to
        // enable it...
        Plot plot = this.chart.getPlot();
        boolean isDomainZoomable = false;
        boolean isRangeZoomable = false;
        if (plot instanceof Zoomable) {
            Zoomable z = (Zoomable) plot;
            isDomainZoomable = z.isDomainZoomable();
            isRangeZoomable = z.isRangeZoomable();
        }

        if (this.zoomInDomainMenuItem != null) {
            this.zoomInDomainMenuItem.setEnabled(isDomainZoomable);
        }
        if (this.zoomOutDomainMenuItem != null) {
            this.zoomOutDomainMenuItem.setEnabled(isDomainZoomable);
        }
        if (this.zoomResetDomainMenuItem != null) {
            this.zoomResetDomainMenuItem.setEnabled(isDomainZoomable);
        }

        if (this.zoomInRangeMenuItem != null) {
            this.zoomInRangeMenuItem.setEnabled(isRangeZoomable);
        }
        if (this.zoomOutRangeMenuItem != null) {
            this.zoomOutRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomResetRangeMenuItem != null) {
            this.zoomResetRangeMenuItem.setEnabled(isRangeZoomable);
        }

        if (this.zoomInBothMenuItem != null) {
            this.zoomInBothMenuItem.setEnabled(isDomainZoomable
                    && isRangeZoomable);
        }
        if (this.zoomOutBothMenuItem != null) {
            this.zoomOutBothMenuItem.setEnabled(isDomainZoomable
                    && isRangeZoomable);
        }
        if (this.zoomResetBothMenuItem != null) {
            this.zoomResetBothMenuItem.setEnabled(isDomainZoomable
                    && isRangeZoomable);
        }

        this.popup.show(this, x, y);
    }

}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:61,代码来源:ChartPanel.java


注:本文中的org.jfree.chart.plot.Zoomable.isRangeZoomable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。