Package com.positive.charts.util

Examples of com.positive.charts.util.Size2D


  protected Size2D arrangeRR(final BlockContainer container, final GC g2,
      final RectangleConstraint constraint) {

    // first arrange without constraints, and see if this fits within
    // the required ranges...
    final Size2D s1 = this.arrangeNN(container, g2);
    if (constraint.getHeightRange().contains(s1.height)) {
      return s1; // TODO: we didn't check the width yet
    } else {
      final RectangleConstraint c = constraint.toFixedHeight(constraint
          .getHeightRange().getUpperBound());
View Full Code Here


   *            the constraint (<code>null</code> not permitted).
   *
   * @return The block size (in Java2D units, never <code>null</code>).
   */
  public Size2D arrange(final GC g2, final RectangleConstraint constraint) {
    return new Size2D(this.calculateTotalWidth(this.getWidth()), this
        .calculateTotalHeight(this.getHeight()));
  }
View Full Code Here

   *
   * @return The block size (in Java2D units, never <code>null</code>).
   */
  public Size2D arrange(final GC g2, final RectangleConstraint constraint) {
    g2.setFont(this.font);
    final Size2D s = this.label.calculateDimensions(g2);
    return new Size2D(this.calculateTotalWidth(s.getWidth()), this
        .calculateTotalHeight(s.getHeight()));
  }
View Full Code Here

   */
  protected double calculateTextBlockHeight(final TextBlock block,
      final CategoryLabelPosition position, final GC g2) {

    final RectangleInsets insets = this.getTickLabelInsets();
    final Size2D size = block.calculateDimensions(g2);
    final Rectangle box = RectangleUtil.Double(0.0, 0.0, size.width,
        size.height);
    // Shape rotatedBox = ShapeUtilities.rotateShape(
    // box, position.getAngle(), 0.0f, 0.0f
    // );
View Full Code Here

   */
  protected double calculateTextBlockWidth(final TextBlock block,
      final CategoryLabelPosition position, final GC g2) {

    final RectangleInsets insets = this.getTickLabelInsets();
    final Size2D size = block.calculateDimensions(g2);
    final Rectangle box = RectangleUtil.Double(0.0, 0.0, size.width,
        size.height);
    // TODO : support rotation
    // Shape rotatedBox = ShapeUtilities.rotateShape(
    // box, position.getAngle(), 0.0f, 0.0f
View Full Code Here

TOP

Related Classes of com.positive.charts.util.Size2D

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.