Examples of MfRecord


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

   * Writer function
   */
  public MfRecord getRecord()
  {

    final MfRecord record = new MfRecord(0);
    record.setParam(0, 0);
    record.setParam(1, 6);
    record.setParam(2, 0x1234);
    record.setParam(3, 0);
    record.setParam(4, 0); // Length
    record.setParam(5, 0); // Bands
    record.setParam(6, 0); // Max-Bands
    record.setParam(7, regionX);
    record.setParam(8, regionY);
    record.setParam(9, regionX + regionWidth);
    record.setParam(10, regionY + regionHeight);

    // some more data ... a array of rectangles (16bit x 4)
    // which makes up the defined region
    // the rectangles are sorted and seem to be packed in some way
    // todo: Not complete ..
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);
    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

   * @return the created record.
   */
  public MfRecord getRecord()
      throws RecordCreationException
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setLongParam(POS_COLOR, GDIColor.translateColor(getColor()));
    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.setLongParam(POS_COLOR, GDIColor.translateColor(getColor()));
    final Point target = getTarget();
    record.setParam(POS_Y, (int) target.getY());
    record.setParam(POS_X, (int) target.getX());
    return record;
  }
View Full Code Here

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

   * @return the created record.
   */
  public MfRecord getRecord()
  {
    final Point dest = getDestination();
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_Y, dest.y);
    record.setParam(POS_X, dest.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
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    final Dimension dim = getDimension();
    record.setParam(POS_HEIGHT, dim.height);
    record.setParam(POS_WIDTH, dim.width);
    return record;
  }
View Full Code Here

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

    if (cEntries == null)
    {
      throw new NullPointerException("No CEntries set");
    }

    final MfRecord record = new MfRecord(2 * cEntries.length + BASE_RECORD_SIZE);
    record.setParam(POS_H_PALETTE, getHPalette());
    record.setParam(POS_CSTART, getStartPos());
    record.setParam(POS_CENTRIES, cEntries.length);

    for (int i = 0; i < cEntries.length; i++)
    {
      record.setLongParam(2 * i + BASE_RECORD_SIZE, GDIColor.translateColor(cEntries[i]));
    }
    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_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

  /**
   * Writer function
   */
  public MfRecord getRecord()
  {
    final MfRecord record = new MfRecord(RECORD_SIZE);
    record.setParam(POS_FILLTYPE, getFillType());
    record.setLongParam(POS_COLOR, GDIColor.translateColor(getColor()));
    final Point target = getTarget();
    record.setParam(POS_Y, (int) target.getY());
    record.setParam(POS_X, (int) target.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(1);
    record.setParam(0, 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.