本文整理了Java中org.jfree.chart.plot.XYPlot.getRangeAxisCount()
方法的一些代码示例,展示了XYPlot.getRangeAxisCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYPlot.getRangeAxisCount()
方法的具体详情如下:
包路径:org.jfree.chart.plot.XYPlot
类名称:XYPlot
方法名:getRangeAxisCount
[英]Returns the number of range axes.
[中]返回范围轴的数量。
代码示例来源: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;
for (int i = 0; i < subplot.getRangeAxisCount(); i++) {
ValueAxis rangeAxis = subplot.getRangeAxis(i);
if (rangeAxis != null) {
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
int rangeAxisCount = plot.getRangeAxisCount();
for (int i = 0; i < rangeAxisCount; i++) {
ValueAxis axis = (ValueAxis) plot.getRangeAxis(i);
代码示例来源:origin: jfree/jfreechart
int rangeAxisCount = plot.getRangeAxisCount();
for (int i = 0; i < rangeAxisCount; i++) {
ValueAxis axis = plot.getRangeAxis(i);
代码示例来源:origin: bcdev/beam
void updateAnnotation(RasterDataNode raster) {
removeAnnotation();
final AbstractTimeSeries timeSeries = getTimeSeries();
TimeCoding timeCoding = timeSeries.getRasterTimeMap().get(raster);
if (timeCoding != null) {
final ProductData.UTC startTime = timeCoding.getStartTime();
final Millisecond timePeriod = new Millisecond(startTime.getAsDate(),
ProductData.UTC.UTC_TIME_ZONE,
Locale.getDefault());
double millisecond = timePeriod.getFirstMillisecond();
Range valueRange = null;
for (int i = 0; i < timeSeriesPlot.getRangeAxisCount(); i++) {
valueRange = Range.combine(valueRange, timeSeriesPlot.getRangeAxis(i).getRange());
}
if (valueRange != null) {
XYAnnotation annotation = new XYLineAnnotation(millisecond, valueRange.getLowerBound(), millisecond,
valueRange.getUpperBound());
timeSeriesPlot.addAnnotation(annotation, true);
}
}
}
代码示例来源:origin: bcdev/beam
@Override
public void pixelPosChanged(ImageLayer imageLayer, int pixelX, int pixelY,
int currentLevel, boolean pixelPosValid, MouseEvent e) {
if (!graphModel.isShowCursorTimeSeries()) {
return;
}
if (pixelPosValid && isVisible() && currentView != null) {
final TimeSeriesGraphUpdater.Position position = new TimeSeriesGraphUpdater.Position(pixelX, pixelY, currentLevel);
graphModel.updateTimeSeries(position, TimeSeriesType.CURSOR);
}
final boolean autorange = e.isShiftDown();
final XYPlot xyPlot = chart.getXYPlot();
for (int i = 0; i < xyPlot.getRangeAxisCount(); i++) {
xyPlot.getRangeAxis(i).setAutoRange(autorange);
}
graphModel.updateAnnotation(currentView.getRaster());
}
内容来源于网络,如有侵权,请联系作者删除!