Examples of valueToJava2D()


Examples of com.positive.charts.axis.ValueAxis.valueToJava2D()

    ValueAxis axis = this.getRangeAxis();
    if (this.getOrientation() == PlotOrientation.HORIZONTAL) {
      axis = this.getDomainAxis();
    }
    if (axis.getRange().contains(value)) {
      final int yy = (int) axis.valueToJava2D(value, dataArea,
          RectangleEdge.LEFT);
      gc.drawLine(RectangleUtil.getMinX(dataArea), yy, RectangleUtil
          .getMaxX(dataArea), yy);
    }
View Full Code Here

Examples of com.positive.charts.axis.ValueAxis.valueToJava2D()

    ValueAxis axis = this.getDomainAxis();
    if (this.getOrientation() == PlotOrientation.HORIZONTAL) {
      axis = this.getRangeAxis();
    }
    if (axis.getRange().contains(value)) {
      final int xx = (int) axis.valueToJava2D(value, dataArea,
          RectangleEdge.BOTTOM);
      gc.drawLine(xx, RectangleUtil.getMinY(dataArea), xx, RectangleUtil
          .getMaxY(dataArea));
    }
View Full Code Here

Examples of com.positive.charts.axis.ValueAxis.valueToJava2D()

      final XYDataset dataset, final PlotRenderingInfo info) {

    final XYBarRendererState state = new XYBarRendererState(info);
    final ValueAxis rangeAxis = plot.getRangeAxisForDataset(plot
        .indexOf(dataset));
    state.setG2Base(rangeAxis.valueToJava2D(this.base, dataArea, plot
        .getRangeAxisEdge()));
    return state;

  }
View Full Code Here

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

        Iterator iterator = this.xCrosshairs.iterator();
        while (iterator.hasNext()) {
            Crosshair ch = (Crosshair) iterator.next();
            if (ch.isVisible()) {
                double x = ch.getValue();
                double xx = xAxis.valueToJava2D(x, dataArea, xAxisEdge);
                if (plot.getOrientation() == PlotOrientation.VERTICAL) {
                    drawVerticalCrosshair(g2, dataArea, xx, ch);
                }
                else {
                    drawHorizontalCrosshair(g2, dataArea, xx, ch);
View Full Code Here

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

        iterator = this.yCrosshairs.iterator();
        while (iterator.hasNext()) {
            Crosshair ch = (Crosshair) iterator.next();
            if (ch.isVisible()) {
                double y = ch.getValue();
                double yy = yAxis.valueToJava2D(y, dataArea, yAxisEdge);
                if (plot.getOrientation() == PlotOrientation.VERTICAL) {
                    drawHorizontalCrosshair(g2, dataArea, yy, ch);
                }
                else {
                    drawVerticalCrosshair(g2, dataArea, yy, ch);
View Full Code Here

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

            XYPlot plot, XYDataset dataset, PlotRenderingInfo info) {

        XYBarRendererState state = new XYBarRendererState(info);
        ValueAxis rangeAxis = plot.getRangeAxisForDataset(plot.indexOf(
                dataset));
        state.setG2Base(rangeAxis.valueToJava2D(this.base, dataArea,
                plot.getRangeAxisEdge()));
        return state;

    }
View Full Code Here

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

        // calculate the maximum allowed candle width from the axis...
        ValueAxis axis = plot.getDomainAxis();
        double x1 = axis.getLowerBound();
        double x2 = x1 + this.maxCandleWidthInMilliseconds;
        RectangleEdge edge = plot.getDomainAxisEdge();
        double xx1 = axis.valueToJava2D(x1, dataArea, edge);
        double xx2 = axis.valueToJava2D(x2, dataArea, edge);
        this.maxCandleWidth = Math.abs(xx2 - xx1);
            // Absolute value, since the relative x
            // positions are reversed for horizontal orientation
View Full Code Here

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

        ValueAxis axis = plot.getDomainAxis();
        double x1 = axis.getLowerBound();
        double x2 = x1 + this.maxCandleWidthInMilliseconds;
        RectangleEdge edge = plot.getDomainAxisEdge();
        double xx1 = axis.valueToJava2D(x1, dataArea, edge);
        double xx2 = axis.valueToJava2D(x2, dataArea, edge);
        this.maxCandleWidth = Math.abs(xx2 - xx1);
            // Absolute value, since the relative x
            // positions are reversed for horizontal orientation

        // calculate the highest volume in the dataset...
View Full Code Here

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

        // calculate the maximum allowed candle width from the axis...
        ValueAxis axis = plot.getDomainAxis();
        double x1 = axis.getLowerBound();
        double x2 = x1 + this.maxCandleWidthInMilliseconds;
        RectangleEdge edge = plot.getDomainAxisEdge();
        double xx1 = axis.valueToJava2D(x1, dataArea, edge);
        double xx2 = axis.valueToJava2D(x2, dataArea, edge);
        this.maxCandleWidth = Math.abs(xx2 - xx1);
            // Absolute value, since the relative x
            // positions are reversed for horizontal orientation
View Full Code Here

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

        ValueAxis axis = plot.getDomainAxis();
        double x1 = axis.getLowerBound();
        double x2 = x1 + this.maxCandleWidthInMilliseconds;
        RectangleEdge edge = plot.getDomainAxisEdge();
        double xx1 = axis.valueToJava2D(x1, dataArea, edge);
        double xx2 = axis.valueToJava2D(x2, dataArea, edge);
        this.maxCandleWidth = Math.abs(xx2 - xx1);
            // Absolute value, since the relative x
            // positions are reversed for horizontal orientation

        // calculate the highest volume in the dataset...
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.