Examples of FloatDimension


Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

    report.setName(getDemoName());

    final TextFieldElementFactory factory = new TextFieldElementFactory();
    factory.setName("T1");
    factory.setAbsolutePosition(new Point2D.Float(0, 0));
    factory.setMinimumSize(new FloatDimension(150, 12));
    factory.setColor(Color.black);
    factory.setHorizontalAlignment(ElementAlignment.RIGHT);
    factory.setVerticalAlignment(ElementAlignment.MIDDLE);
    factory.setNullString("-");
    factory.setFieldname(DemoReportController.MESSAGE_ONE_FIELDNAME);
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

    b.getStyle().setStyleProperty(TextStyleKeys.FONT, "SansSerif");
    b.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(12));

    LabelElementFactory labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
    labelFactory.setMinimumSize(new FloatDimension(200, 15));
    labelFactory.setText("People in the same office:");
    b.addElement(labelFactory.createElement());

    labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(200, 0));
    labelFactory.setMinimumSize(new FloatDimension(-100, 15));
    labelFactory.setText("Notes:");
    b.addElement(labelFactory.createElement());

    final Element line = HorizontalLineElementFactory.createHorizontalLine(15);
    line.getStyle().setStyleProperty(ElementStyleKeys.STROKE, new BasicStroke(1));
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

    b.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10));

    TextFieldElementFactory textFieldFactory = new TextFieldElementFactory();
    textFieldFactory.setFieldname("office.Name");
    textFieldFactory.setAbsolutePosition(new Point2D.Float(0, 0));
    textFieldFactory.setMinimumSize(new FloatDimension(200, 12));
    b.addElement(textFieldFactory.createElement());

    textFieldFactory = new TextFieldElementFactory();
    textFieldFactory.setFieldname("office.Annotations");
    textFieldFactory.setAbsolutePosition(new Point2D.Float(200, 0));
    textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
    textFieldFactory.setDynamicHeight(Boolean.TRUE);
    b.addElement(textFieldFactory.createElement());

    report.getItemBand().addElement(b);
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

  {
    if (borderRadiusWidth == null || borderRadiusHeight == null)
    {
      return null;
    }
    return new FloatDimension(borderRadiusWidth.floatValue(), borderRadiusHeight.floatValue());
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

  {
    if (borderBottomLeftRadiusWidth == null || borderBottomLeftRadiusHeight == null)
    {
      return null;
    }
    return new FloatDimension(borderBottomLeftRadiusWidth.floatValue(), borderBottomLeftRadiusHeight.floatValue());
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

  {
    if (borderBottomRightRadiusWidth == null || borderBottomRightRadiusHeight == null)
    {
      return null;
    }
    return new FloatDimension(borderBottomRightRadiusWidth.floatValue(), borderBottomRightRadiusHeight.floatValue());
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

  {
    if (borderTopLeftRadiusWidth == null || borderTopLeftRadiusHeight == null)
    {
      return null;
    }
    return new FloatDimension(borderTopLeftRadiusWidth.floatValue(), borderTopLeftRadiusHeight.floatValue());
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

  {
    if (borderTopRightRadiusWidth == null || borderTopRightRadiusHeight == null)
    {
      return null;
    }
    return new FloatDimension(borderTopRightRadiusWidth.floatValue(), borderTopRightRadiusHeight.floatValue());
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

    {
      return null;
    }
    if (minimumWidth == null)
    {
      return new FloatDimension(0, minimumHeight.floatValue());
    }
    if (minimumHeight == null)
    {
      return new FloatDimension(minimumWidth.floatValue(), 0);
    }
    return new FloatDimension(minimumWidth.floatValue(), minimumHeight.floatValue());
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FloatDimension

    {
      return null;
    }
    if (maximumWidth == null)
    {
      return new FloatDimension(0, maximumHeight.floatValue());
    }
    if (maximumHeight == null)
    {
      return new FloatDimension(maximumWidth.floatValue(), 0);
    }
    return new FloatDimension(maximumWidth.floatValue(), maximumHeight.floatValue());
  }
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.