Examples of MfRecord


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

   * @return the created record.
   */
  public MfRecord getRecord()
  {
    final Rectangle rc = getIntersectClipRect();
    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

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setLongParam(POS_COLOR, GDIColor.translateColor(getColor()));
    final Point p = getTarget();
    record.setParam(POS_X, p.x);
    record.setParam(POS_Y, p.y);
    return record;
  }
View Full Code Here

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

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

    final MfRecord record = new MfRecord(2 + cEntries * 2);
    record.setParam(POS_HPALETTE, getHPalette());
    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

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

  public MfRecord getRecord()
      throws RecordCreationException
  {
    final String text = getText();
    final int parCntText = (int) Math.ceil(text.length() / 2);
    final MfRecord record = new MfRecord(parCntText + 3);
    record.setParam(0, text.length());

    final byte[] textRaw = text.getBytes();
    for (int i = 0; i < count; i++)
    {
      record.setByte(MfRecord.RECORD_HEADER_SIZE + 2 + i, textRaw[i]);
    }

    final Point dest = getDestination();
    record.setParam((int) (Math.ceil(count / 2) + 1), dest.y);
    record.setParam((int) (Math.ceil(count / 2) + 2), dest.x);
    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()
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(PARAM_STYLE, getStyle());
    record.setLongParam(PARAM_COLOR, GDIColor.translateColor(getColor()));
    record.setParam(PARAM_HATCH, getHatch());
    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);
    record.setParam(POS_ROP, getROP());
    final Rectangle bounds = getBounds();
    record.setParam(POS_HEIGHT, bounds.height);
    record.setParam(POS_WIDTH, bounds.width);
    record.setParam(POS_Y, bounds.y);
    record.setParam(POS_X, bounds.x);
    return record;
  }
View Full Code Here

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

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    return new MfRecord(0);
  }
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_X_DENOM, getXDenom());
    record.setParam(POS_X_NUM, getXNum());
    record.setParam(POS_Y_DENOM, getYDenom());
    record.setParam(POS_Y_NUM, getYNum());
    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
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.