Examples of MfDcState


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

  {
    switch (rop)
    {
      case ROPConstants.PATCOPY:
      {
        final MfDcState state = file.getCurrentState();
        state.preparePaint();
        final Graphics2D g2 = (Graphics2D) file.getGraphics2D().create();
        g2.setPaintMode();
        g2.fill(getScaledBounds());
        state.postPaint();
        break;
      }
      case ROPConstants.PATINVERT:
      {
        final MfDcState state = file.getCurrentState();
        state.preparePaint();
        final Graphics2D g2 = (Graphics2D) file.getGraphics2D().create();
        g2.setXORMode(g2.getColor());
        g2.fill(getScaledBounds());
        state.postPaint();
        break;
      }
      case ROPConstants.DSTINVERT:
      {
        final Graphics2D g2 = (Graphics2D) file.getGraphics2D().create();
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());

    if (brush.isVisible())
    {
      final Dimension dim = getScaledDimension();
      // upper side
      final Rectangle2D rect = new Rectangle2D.Double();
      rect.setFrame(rec.x, rec.y, rec.width, dim.height);
      state.preparePaint();
      graph.fill(rect);

      // lower side
      rect.setFrame(rec.x, rec.y - dim.height, rec.width, dim.height);
      graph.fill(rect);

      // east
      rect.setFrame(rec.x, rec.y, dim.width, rec.height);
      graph.fill(rect);

      // west
      rect.setFrame(rec.width - dim.width, rec.y, dim.width, rec.height);
      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.setCurPos(p.x, p.y);

  }
View Full Code Here

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

    final Rectangle rec = getScaledBounds();

    final Ellipse2D ellipse = new Ellipse2D.Double();
    ellipse.setFrame(rec.x, rec.y, rec.width, rec.height);

    final MfDcState state = file.getCurrentState();

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(ellipse);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
      graph.draw(ellipse);
      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();
    final Dimension dim = getScaledDimension();
    state.setViewportExt(dim.width, dim.height);
  }
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.setTextJustification(extraSpaceLength, breakCount);
  }
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.setPolyFillMode(fillmode);
  }
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.