本文整理匯總了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);
}
}
}