Examples of centerRange()


Examples of org.jfree.chart.axis.NumberAxis.centerRange()

          nAxis.setLowerBound(lowerRangeVal);
          nAxis.setUpperBound(upperRangeVal);
        }
        nAxis.resizeRange(zoomFactor);
        if (! Double.isNaN(anchorValueR))
          nAxis.centerRange(anchorValueR);
      }

      ValueAxis dAxis = xyPlot.getDomainAxis();
      if (dAxis instanceof DateAxis) {
        ((DateAxis) dAxis).setMinimumDate(lowerDomainValD.getTime());
View Full Code Here

Examples of org.jfree.chart.axis.NumberAxis.centerRange()

        NumberAxis nAxis = (NumberAxis) dAxis;
        if (lowerDomainValN != upperDomainValN) {
          nAxis.setRange(lowerDomainValN, upperDomainValN);
        }
        if (! Double.isNaN(anchorValueD))
          nAxis.centerRange(anchorValueD);
      }
    } else if (plot instanceof CategoryPlot) {
      CategoryPlot catPlot = (CategoryPlot) plot;
      NumberAxis axis = (NumberAxis) catPlot.getRangeAxis();
      axis.setLowerBound(lowerRangeVal);
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.centerRange()

            xaxis.setUpperBound(right + width * zoomSensitivity * deltaX);

            /**
             * Disables lower bound changing on the y axis
             */
            yaxis.centerRange(0.0);
            yaxis.setLowerBound(down - height * zoomSensitivity * deltaY);
            yaxis.setUpperBound(up + height * zoomSensitivity * deltaY);

        } else if (this.currentMouseMode == MOUSEMODE.PANX) {
           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.