Examples of MfDcState


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

    final Arc2D arc = new Arc2D.Double();
    arc.setArcType(Arc2D.CHORD);
    arc.setFrame(rec.x, rec.y, rec.width, rec.height);
    arc.setAngles(start.x, start.y, end.x, end.y);

    final MfDcState state = file.getCurrentState();

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(arc);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
      graph.draw(arc);
      state.postDraw();
    }

  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    state.setTextAlign(textAlignMode);
  }
View Full Code Here

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

   */
  public void replay(final WmfFile file)
  {
    final Graphics2D graph = file.getGraphics2D();

    final MfDcState state = file.getCurrentState();

    final GeneralPath genPath = new GeneralPath();
    for (int i = 0; i < polycount; i++)
    {
      final int[] pointsX = getScaledPointsX(i);
      final int[] pointsY = getScaledPointsY(i);
      final Polygon polygon = new Polygon(pointsX, pointsY, pointsX.length);

      genPath.append(polygon, false);
    }

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(genPath);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
      graph.draw(genPath);
      state.postDraw();
    }
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    state.setMapMode(mapmode);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    state.setROP(drawmode);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    state.setStretchBltMode(stretchmode);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    final Point p = getScaledTarget();
    state.setViewportOrg(p.x, p.y);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    state.setTextColor(color);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    final Rectangle clipRect = state.getClipRegion();
    final Point p = getScaledDestination();
    clipRect.x += p.x;
    clipRect.y += p.y;
    state.setClipRegion(clipRect);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfDcState state = file.getCurrentState();
    final Dimension dim = getScaledDimension();
    state.setWindowExt(dim.width, dim.height);
  }
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.