Package com.positive.charts.text

Examples of com.positive.charts.text.TextBox


        g2.drawLine((int) anchorX, (int) anchorY, (int) targetX,
            (int) targetY);
      }

    }
    final TextBox tb = record.getLabel();
    tb.draw(g2, (float) targetX, (float) targetY, RectangleAnchor.RIGHT);

  }
View Full Code Here


      final String label = this.labelGenerator.generateSectionLabel(
          this.dataset, leftKeys.getKey(i));
      if (label != null) {
        final TextBlock block = TextUtilities.createTextBlock(label,
            this.labelFont, this.labelPaint);
        final TextBox labelBox = new TextBox(block);
        labelBox.setBackgroundPaint(this.labelBackgroundPaint);
        labelBox.setOutlinePaint(this.labelOutlinePaint);
        labelBox.setOutlineStroke(this.labelOutlineStroke);
        labelBox.setShadowPaint(this.labelShadowPaint);
        labelBox.setInteriorGap(this.labelPadding);
        final double theta = Math.toRadians(leftKeys.getValue(i)
            .doubleValue());
        final double baseY = state.getPieCenterY() - Math.sin(theta)
            * verticalLinkRadius;
        final double hh = labelBox.getHeight(g2);

        this.labelDistributor.addPieLabelRecord(new PieLabelRecord(
            leftKeys.getKey(i), theta, baseY, labelBox, hh, lGap
                / 2.0 + lGap / 2.0 * -Math.cos(theta),
            0.9 + this.getExplodePercent(leftKeys.getKey(i))));
View Full Code Here

        g2.drawLine((int) anchorX, (int) anchorY, (int) targetX,
            (int) targetY);
      }
    }

    final TextBox tb = record.getLabel();
    tb.draw(g2, (float) targetX, (float) targetY, RectangleAnchor.LEFT);

  }
View Full Code Here

          this.dataset, keys.getKey(i));

      if (label != null) {
        final TextBlock block = TextUtilities.createTextBlock(label,
            this.labelFont, this.labelPaint);
        final TextBox labelBox = new TextBox(block);
        labelBox.setBackgroundPaint(this.labelBackgroundPaint);
        labelBox.setOutlinePaint(this.labelOutlinePaint);
        labelBox.setOutlineStroke(this.labelOutlineStroke);
        labelBox.setShadowPaint(this.labelShadowPaint);
        labelBox.setInteriorGap(this.labelPadding);
        final double theta = Math.toRadians(keys.getValue(i)
            .doubleValue());
        final double baseY = state.getPieCenterY() - Math.sin(theta)
            * verticalLinkRadius;
        final double hh = labelBox.getHeight(g2);
        this.labelDistributor.addPieLabelRecord(new PieLabelRecord(keys
            .getKey(i), theta, baseY, labelBox, hh, lGap / 2.0
            + lGap / 2.0 * Math.cos(theta), 0.9 + this
            .getExplodePercent(keys.getKey(i))));
      }
View Full Code Here

TOP

Related Classes of com.positive.charts.text.TextBox

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.