本文整理汇总了Java中org.jfree.chart.axis.ValueAxis.resizeRange方法的典型用法代码示例。如果您正苦于以下问题:Java ValueAxis.resizeRange方法的具体用法?Java ValueAxis.resizeRange怎么用?Java ValueAxis.resizeRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.axis.ValueAxis
的用法示例。
在下文中一共展示了ValueAxis.resizeRange方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: zoomHorizontalAxes
import org.jfree.chart.axis.ValueAxis; //导入方法依赖的package包/类
/**
* Multiplies the range on the horizontal axis/axes by the specified factor.
*
* @param factor the zoom factor.
*/
public void zoomHorizontalAxes(double factor) {
PlotOrientation orient = getOrientation();
if (orient == PlotOrientation.HORIZONTAL) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.resizeRange(factor);
}
}
}
else if (orient == PlotOrientation.VERTICAL) {
for (int i = 0; i < this.domainAxes.size(); i++) {
ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
if (domainAxis != null) {
domainAxis.resizeRange(factor);
}
}
}
}
示例2: zoomVerticalAxes
import org.jfree.chart.axis.ValueAxis; //导入方法依赖的package包/类
/**
* Multiplies the range on the vertical axis/axes by the specified factor.
*
* @param factor the zoom factor.
*/
public void zoomVerticalAxes(double factor) {
PlotOrientation orient = getOrientation();
if (orient == PlotOrientation.HORIZONTAL) {
for (int i = 0; i < this.domainAxes.size(); i++) {
ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
if (domainAxis != null) {
domainAxis.resizeRange(factor);
}
}
}
else if (orient == PlotOrientation.VERTICAL) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.resizeRange(factor);
}
}
}
}
示例3: zoomHorizontalAxes
import org.jfree.chart.axis.ValueAxis; //导入方法依赖的package包/类
/**
* Multiplies the range on the horizontal axis/axes by the specified factor.
*
* @param factor the zoom factor.
*/
public void zoomHorizontalAxes(double factor) {
if (this.orientation == PlotOrientation.HORIZONTAL) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.resizeRange(factor);
}
}
}
}
示例4: zoomVerticalAxes
import org.jfree.chart.axis.ValueAxis; //导入方法依赖的package包/类
/**
* Multiplies the range on the vertical axis/axes by the specified factor.
*
* @param factor the zoom factor.
*/
public void zoomVerticalAxes(double factor) {
if (this.orientation == PlotOrientation.VERTICAL) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.resizeRange(factor);
}
}
}
}
示例5: zoomDomainAxes
import org.jfree.chart.axis.ValueAxis; //导入方法依赖的package包/类
/**
* Multiplies the range on the domain axis/axes by the specified factor.
*
* @param factor the zoom factor.
* @param info the plot rendering info.
* @param source the source point.
*/
public void zoomDomainAxes(double factor, PlotRenderingInfo info,
Point2D source) {
for (int i = 0; i < this.domainAxes.size(); i++) {
ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
if (domainAxis != null) {
domainAxis.resizeRange(factor);
}
}
}
示例6: zoomRangeAxes
import org.jfree.chart.axis.ValueAxis; //导入方法依赖的package包/类
/**
* Multiplies the range on the range axis/axes by the specified factor.
*
* @param factor the zoom factor.
* @param info the plot rendering info.
* @param source the source point.
*/
public void zoomRangeAxes(double factor, PlotRenderingInfo info,
Point2D source) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.resizeRange(factor);
}
}
}
示例7: zoomRangeAxes
import org.jfree.chart.axis.ValueAxis; //导入方法依赖的package包/类
/**
* Multiplies the range on the range axis/axes by the specified factor.
*
* @param factor the zoom factor.
* @param state the plot state.
* @param source the source point (in Java2D space) for the zoom.
*/
public void zoomRangeAxes(double factor, PlotRenderingInfo state,
Point2D source) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.resizeRange(factor);
}
}
}