Examples of MfDcState


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 = getScaledDestination();
    state.setWindowOrg
        (state.getWindowOrgX() + p.x, state.getWindowOrgY() + p.y);
  }
View Full Code Here

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

    final Graphics2D graph = file.getGraphics2D();
    final Rectangle rec = getScaledBounds();
    final Dimension dim = getScaledRoundingDim();
    final RoundRectangle2D shape = new RoundRectangle2D.Double();
    shape.setRoundRect(rec.x, rec.y, rec.width, rec.height, dim.width, dim.height);
    final MfDcState state = file.getCurrentState();

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(shape);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
      graph.draw(shape);
      state.postDraw();
    }
  }
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 Rectangle rec = getScaledBounds();

    final MfDcState state = file.getCurrentState();

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(rec);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
      graph.draw(rec);
      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.setBkMode(bkmode);
  }
View Full Code Here

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

  public void replay(final WmfFile file)
  {
    final MfLogBrush brush = file.getBrushObject(brushObjectNr);
    final MfLogRegion regio = file.getRegionObject(regionObjectNr);

    final MfDcState state = file.getCurrentState();
    state.setLogRegion(regio);
    state.setLogBrush(brush);

    final Graphics2D graph = file.getGraphics2D();
    final Rectangle rec = scaleRect(regio.getBounds());

    final Rectangle2D rect = new Rectangle2D.Double();
    rect.setFrame(rec.x, rec.y, rec.width, rec.height);

    if (brush.isVisible())
    {
      state.preparePaint();
      graph.fill(rect);
      state.postPaint();
    }
  }
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 = getScaledDestination();
    state.setViewportOrg
        (state.getViewportOrgX() + p.x,
            state.getViewportOrgY() + 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();
    final Rectangle rect = state.getClipRegion();
    final Rectangle2D rec2 = rect.createIntersection(getScaledIntersectClipRect());
    state.setClipRegion(new Rectangle((int) rec2.getX(),
        (int) rec2.getY(),
        (int) rec2.getWidth(),
        (int) rec2.getHeight()));
  }
View Full Code Here

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

   */
  public void replay(final WmfFile file)
  {
    final Point p = getScaledTarget();
    final Graphics2D g = file.getGraphics2D();
    final MfDcState state = file.getCurrentState();

    state.prepareDraw();
    g.drawLine(p.x, p.y, p.x, p.y);
    state.postDraw();
  }
View Full Code Here

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

    final Point p = getScaledDestination();
    final int x = p.x;
    final int y = p.y;

    final Graphics2D graphics = file.getGraphics2D();
    final MfDcState state = file.getCurrentState();

    state.prepareDrawText();
    graphics.drawString(text, x, y);
    state.postDrawText();
  }
View Full Code Here

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

    final Arc2D arc = new Arc2D.Double();
    arc.setArcType(Arc2D.PIE);
    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
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.