本文整理匯總了Java中org.jfree.chart.axis.ValueAxis.zoomRange方法的典型用法代碼示例。如果您正苦於以下問題:Java ValueAxis.zoomRange方法的具體用法?Java ValueAxis.zoomRange怎麽用?Java ValueAxis.zoomRange使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.jfree.chart.axis.ValueAxis
的用法示例。
在下文中一共展示了ValueAxis.zoomRange方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: calculateDomainAxesZoom
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
@Override
public List<Pair<Integer, Range>> calculateDomainAxesZoom(double lowerPercent, double upperPercent, boolean zoomIn) {
List<Pair<Integer, Range>> newRanges = new LinkedList<Pair<Integer, Range>>();
for (int i = 0; i < getDomainAxisCount(); i++) {
ValueAxis domainAxis = getDomainAxis(i);
if (domainAxis != null) {
if (domainAxis instanceof LinkAndBrushAxis) {
Range calculateZoomRange = ((LinkAndBrushAxis) domainAxis).calculateZoomRange(lowerPercent,
upperPercent, zoomIn);
newRanges.add(new Pair<Integer, Range>(i, calculateZoomRange));
} else if (zoomIn) {
domainAxis.zoomRange(lowerPercent, upperPercent);
}
}
}
return newRanges;
}
示例2: calculateRangeAxesZoom
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
@Override
public List<Pair<Integer, Range>> calculateRangeAxesZoom(double lowerPercent, double upperPercent,
PlotRenderingInfo info, Point2D source, boolean zoomIn) {
List<Pair<Integer, Range>> newRanges = new LinkedList<Pair<Integer, Range>>();
for (int i = 0; i < getRangeAxisCount(); i++) {
ValueAxis rangeAxis = getRangeAxis(i);
if (rangeAxis != null) {
if (rangeAxis instanceof LinkAndBrushAxis) {
Range calculateZoomRange = ((LinkAndBrushAxis) rangeAxis).calculateZoomRange(lowerPercent, upperPercent,
zoomIn);
newRanges.add(new Pair<Integer, Range>(i, calculateZoomRange));
} else if (zoomIn) {
rangeAxis.zoomRange(lowerPercent, upperPercent);
}
}
}
return newRanges;
}
示例3: zoomHorizontalAxes
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
* Zooms in on the horizontal axis/axes. The new lower and upper bounds are specified
* as percentages of the current axis range, where 0 percent is the current lower bound
* and 100 percent is the current upper bound.
*
* @param lowerPercent a percentage that determines the new lower bound for the axis
* (e.g. 0.20 is twenty percent).
* @param upperPercent a percentage that determines the new upper bound for the axis
* (e.g. 0.80 is eighty percent).
*/
public void zoomHorizontalAxes(double lowerPercent, double upperPercent) {
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.zoomRange(lowerPercent, upperPercent);
}
}
}
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.zoomRange(lowerPercent, upperPercent);
}
}
}
}
示例4: zoomVerticalAxes
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
* Zooms in on the vertical axes.
*
* @param lowerPercent the lower bound.
* @param upperPercent the upper bound.
*/
public void zoomVerticalAxes(double lowerPercent, double upperPercent) {
PlotOrientation orient = getOrientation();
if (orient == PlotOrientation.VERTICAL) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.zoomRange(lowerPercent, upperPercent);
}
}
}
else if (orient == PlotOrientation.HORIZONTAL) {
for (int i = 0; i < this.domainAxes.size(); i++) {
ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
if (domainAxis != null) {
domainAxis.zoomRange(lowerPercent, upperPercent);
}
}
}
}
示例5: zoomHorizontalAxes
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
* Zooms in on the horizontal axes.
*
* @param lowerPercent the lower bound.
* @param upperPercent the upper bound.
*/
public void zoomHorizontalAxes(double lowerPercent, double upperPercent) {
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.zoomRange(lowerPercent, upperPercent);
}
}
}
}
示例6: zoomVerticalAxes
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
* Zooms in on the vertical axes.
*
* @param lowerPercent the lower bound.
* @param upperPercent the upper bound.
*/
public void zoomVerticalAxes(double lowerPercent, double upperPercent) {
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.zoomRange(lowerPercent, upperPercent);
}
}
}
}
示例7: zoomRangeAxes
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
* Zooms in on the range axes.
*
* @param lowerPercent the lower bound.
* @param upperPercent the upper bound.
* @param info the plot rendering info.
* @param source the source point.
*/
public void zoomRangeAxes(double lowerPercent, double upperPercent,
PlotRenderingInfo info, Point2D source) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.zoomRange(lowerPercent, upperPercent);
}
}
}
示例8: zoomRangeAxes
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
* Zooms in on the range axes.
*
* @param lowerPercent the lower bound.
* @param upperPercent the upper bound.
* @param state the plot state.
* @param source the source point (in Java2D space) for the zoom.
*/
public void zoomRangeAxes(double lowerPercent, double upperPercent,
PlotRenderingInfo state, Point2D source) {
for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
if (rangeAxis != null) {
rangeAxis.zoomRange(lowerPercent, upperPercent);
}
}
}
示例9: zoomDomainAxes
import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
* Zooms in on the domain axis/axes. The new lower and upper bounds are
* specified as percentages of the current axis range, where 0 percent is
* the current lower bound and 100 percent is the current upper bound.
*
* @param lowerPercent a percentage that determines the new lower bound
* for the axis (e.g. 0.20 is twenty percent).
* @param upperPercent a percentage that determines the new upper bound
* for the axis (e.g. 0.80 is eighty percent).
* @param info the plot rendering info.
* @param source the source point.
*/
public void zoomDomainAxes(double lowerPercent, double upperPercent,
PlotRenderingInfo info, Point2D source) {
for (int i = 0; i < this.domainAxes.size(); i++) {
ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
if (domainAxis != null) {
domainAxis.zoomRange(lowerPercent, upperPercent);
}
}
}