Package org.jfree.ui

Examples of org.jfree.ui.RectangleEdge


        final double[] adjStackLeft = adjustedStackValues(stack0, stack1);
        final double[] adjStackRight = adjustedStackValues(stack1, stack2);

        final float transY1;

        final RectangleEdge edge1 = plot.getRangeAxisEdge();

        final GeneralPath left = new GeneralPath();
        final GeneralPath right = new GeneralPath();
        if (y1 >= 0.0) {  // handle positive value
            transY1 = (float) rangeAxis.valueToJava2D(y1 + stack1[1], dataArea,
View Full Code Here


    }

    final LegendTitle chLegend = chart.getLegend();
    if (chLegend != null)
    {
      final RectangleEdge loc = translateEdge(getLegendLocation().toLowerCase());
      if (loc != null)
      {
        chLegend.setPosition(loc);
      }
      if (getLegendFont() != null)
View Full Code Here

      final XYZDataset xyzData = (XYZDataset) dataset;
      z = xyzData.getZValue(series, item);
    }
    if (!Double.isNaN(z))
    {
      final RectangleEdge domainAxisLocation = plot.getDomainAxisEdge();
      final RectangleEdge rangeAxisLocation = plot.getRangeAxisEdge();
      final double transX = domainAxis.valueToJava2D(x, dataArea, domainAxisLocation);
      final double transY = rangeAxis.valueToJava2D(y, dataArea, rangeAxisLocation);

      double circleSize;
View Full Code Here

    else
    {
      final LegendTitle chLegend = chart.getLegend();
      if (chLegend != null)
      {
        final RectangleEdge loc = translateEdge(legendLocation.toLowerCase());
        if (loc != null)
        {
          chLegend.setPosition(loc);
        }
        if (getLegendFont() != null)
View Full Code Here

    return titleText;
  }

  protected RectangleEdge translateEdge(final String edge)
  {
    final RectangleEdge translatedEdge = LEGEND_LOCATIONS.get(edge);
    if (translatedEdge != null)
    {
      return translatedEdge;
    }
    return RectangleEdge.LEFT;
View Full Code Here

     */
    public void draw(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea,
            CategoryAxis domainAxis, ValueAxis rangeAxis) {

        PlotOrientation orientation = plot.getOrientation();
        RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(
                plot.getDomainAxisLocation(), orientation);
        RectangleEdge rangeEdge = Plot.resolveRangeAxisLocation(
                plot.getRangeAxisLocation(), orientation);
        CategoryDataset dataset = plot.getDataset();
        int catIndex = dataset.getColumnIndex(getCategory());
        int catCount = dataset.getColumnCount();
        double j2DX = domainAxis.getCategoryMiddle(catIndex, catCount,
View Full Code Here

           int rendererIndex,
           PlotRenderingInfo info)
   {

      PlotOrientation orientation = plot.getOrientation();
      RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(
              plot.getDomainAxisLocation(), orientation);
      RectangleEdge rangeEdge = Plot.resolveRangeAxisLocation(
              plot.getRangeAxisLocation(), orientation);

      float anchorX = (float) domainAxis.valueToJava2D(
              this.x, dataArea, domainEdge);
      float anchorY = (float) rangeAxis.valueToJava2D(
View Full Code Here

                     PlotRenderingInfo info) {

        PlotOrientation orientation = plot.getOrientation();
        AxisLocation domainAxisLocation = plot.getDomainAxisLocation();
        AxisLocation rangeAxisLocation = plot.getRangeAxisLocation();
        RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(
                domainAxisLocation, orientation);
        RectangleEdge rangeEdge = Plot.resolveRangeAxisLocation(
                rangeAxisLocation, orientation);
        Range xRange = domainAxis.getRange();
        Range yRange = rangeAxis.getRange();
        double anchorX = 0.0;
        double anchorY = 0.0;
View Full Code Here

      if (this.polygon.length < 4)
      {
         return;
      }
      PlotOrientation orientation = plot.getOrientation();
      RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(
              plot.getDomainAxisLocation(), orientation);
      RectangleEdge rangeEdge = Plot.resolveRangeAxisLocation(
              plot.getRangeAxisLocation(), orientation);

      GeneralPath area = new GeneralPath();
     
      double x = domainAxis.valueToJava2D(this.polygon[0], dataArea,
View Full Code Here

                     PlotRenderingInfo info) {

        PlotOrientation orientation = plot.getOrientation();
        AxisLocation domainAxisLocation = plot.getDomainAxisLocation();
        AxisLocation rangeAxisLocation = plot.getRangeAxisLocation();
        RectangleEdge domainEdge
            = Plot.resolveDomainAxisLocation(domainAxisLocation, orientation);
        RectangleEdge rangeEdge
            = Plot.resolveRangeAxisLocation(rangeAxisLocation, orientation);
        float j2DX
            = (float) domainAxis.valueToJava2D(this.x, dataArea, domainEdge);
        float j2DY
            = (float) rangeAxis.valueToJava2D(this.y, dataArea, rangeEdge);
View Full Code Here

TOP

Related Classes of org.jfree.ui.RectangleEdge

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.