Examples of MfRecord


Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(getPointCount() * 2 + 1);
    final int count = getPointCount();
    final int[] points_x = getPointsX();
    final int[] points_y = getPointsY();

    record.setParam(0, count);

    for (int i = 0; i < count; i++)
    {
      record.setParam(1 + 2 * i, points_x[i]);
      record.setParam(2 + 2 * i, points_y[i]);
    }
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   *
   * @return the created record.
   */
  public MfRecord getRecord()
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    final Rectangle bounds = getBounds();
    final Point start = getStartingIntersection();
    final Point end = getEndingIntersection();

    record.setParam(PARAM_LEFT_POS, (int) bounds.getX());
    record.setParam(PARAM_TOP_POS, (int) bounds.getY());
    record.setParam(PARAM_RIGHT_POS, (int) (bounds.getX() + bounds.getWidth()));
    record.setParam(PARAM_BOTTOM_POS, (int) (bounds.getY() + bounds.getHeight()));
    record.setParam(PARAM_Y_START_POS, (int) (start.getY()));
    record.setParam(PARAM_X_START_POS, (int) (start.getX()));
    record.setParam(PARAM_Y_END_POS, (int) (end.getY()));
    record.setParam(PARAM_X_END_POS, (int) (end.getX()));
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_TEXT_ALIGNMENT, getTextAlignMode());
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

    int pointsTotal = 0;
    for (int i = 0; i < numberOfPolygons; i++)
    {
      pointsTotal += getPointsX(i).length;
    }
    final MfRecord record = new MfRecord(1 + numberOfPolygons + pointsTotal * 2);
    record.setParam(0, numberOfPolygons);

    int numberOfPointsRead = 0;
    for (int i = 0; i < numberOfPolygons; i++)
    {
      final int[] x_points = getPointsX(i);
      final int[] y_points = getPointsY(i);
      final int numberOfPointsInPolygon = x_points.length;
      record.setParam(1 + i, numberOfPointsInPolygon);

      final int readPos = numberOfPointsRead * 2 + numberOfPolygons + 1;
      for (int j = 0; j < numberOfPointsInPolygon; j++)
      {
        record.setParam((readPos + 1) + j * 2, x_points[i]);
        record.setParam((readPos + 2) + j * 2, y_points[i]);
      }
      numberOfPointsRead += numberOfPointsInPolygon;
    }
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_MAPMODE, getMapMode());
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_ROP2, getDrawMode());
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_OBJECT_ID, getObjectId());
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_STRETCHMODE, getStretchMode());
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

   * Writer function
   */
  public MfRecord getRecord()
  {
    final Rectangle rc = getBounds();
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_BOTTOM, (int) (rc.getY() + rc.getHeight()));
    record.setParam(POS_RIGHT, (int) (rc.getX() + rc.getWidth()));
    record.setParam(POS_TOP, (int) (rc.getY()));
    record.setParam(POS_LEFT, (int) (rc.getX()));
    return record;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.MfRecord

    if (cEntries == 0)
    {
      throw new RecordCreationException("Empty AnimatePaletteRecord is not valid");
    }

    final MfRecord record = new MfRecord(2 + cEntries * 2);
    record.setParam(POS_START_ANIMATE_COLOR, getPosStartAnimate());
    record.setParam(POS_CENTRIES, cEntries);

    for (int i = 0; i < cEntries; i++)
    {
      final Color c = colors[i];
      // a long parameter is 2 words long
      record.setLongParam(i * 2 + POS_START_ENTRIES, GDIColor.translateColor(c));
    }
    return record;
  }
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.