Package org.jfree.chart.plot.dial

Examples of org.jfree.chart.plot.dial.DialScale


    Rectangle2D lengthRect = DialPlot.rectangleByRadius(frame,
        this.getRadius(), this.getRadius());
    Rectangle2D widthRect = DialPlot.rectangleByRadius(frame,
        this.getWidthRadius(), this.getWidthRadius());
    double value = ChartThemesUtilities.getScaledValue(plot.getValue(this.getDatasetIndex()), scale);
    DialScale scale = plot.getScaleForDataset(this.getDatasetIndex());
    double angle = scale.valueToAngle(value);

    Arc2D arc1 = new Arc2D.Double(lengthRect, angle, 0, Arc2D.OPEN);
    Point2D pt1 = arc1.getEndPoint();
    Arc2D arc2 = new Arc2D.Double(widthRect, angle - 90.0, 180.0,
        Arc2D.OPEN);
View Full Code Here


    Rectangle2D arcRectInner = DialPlot.rectangleByRadius(frame,
        this.getInnerRadius(), this.getInnerRadius());
    Rectangle2D arcRectOuter = DialPlot.rectangleByRadius(frame,
        this.getOuterRadius(), this.getOuterRadius());
   
    DialScale scale = plot.getScale(this.getScaleIndex());
    if (scale == null) {
      throw new RuntimeException("No scale for scaleIndex = "
          + this.getScaleIndex());
    }
    double angleMin = scale.valueToAngle(this.getLowerBound());
    double angleMax = scale.valueToAngle(this.getUpperBound());

    Arc2D arcInner = new Arc2D.Double(arcRectInner, angleMin,
        angleMax - angleMin, Arc2D.OPEN);
    Arc2D arcOuter = new Arc2D.Double(arcRectOuter, angleMax,
        angleMin - angleMax, Arc2D.OPEN);
View Full Code Here

TOP

Related Classes of org.jfree.chart.plot.dial.DialScale

Copyright © 2018 www.massapicom. 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.