Examples of MfLogBrush


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

  {
    final MfLogRegion regio = file.getRegionObject(region);

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

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

    if (brush.isVisible())
    {
      state.preparePaint();
      graph.fill(rec);
      state.postPaint();
    }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfLogBrush lbrush = new MfLogBrush();
    lbrush.setStyle(MfLogBrush.BS_DIBPATTERN);
    lbrush.setBitmap(image);

    file.getCurrentState().setLogBrush(lbrush);
    file.storeObject(lbrush);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  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.MfLogBrush

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfLogBrush lbrush = new MfLogBrush();
    lbrush.setStyle(getStyle());
    lbrush.setColor(getColor());
    lbrush.setHatchedStyle(getHatch());

    file.getCurrentState().setLogBrush(lbrush);
    file.storeObject(lbrush);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  public void replay(final WmfFile file)
  {
    final MfLogBrush lbrush = new MfLogBrush();
    lbrush.setStyle(MfLogBrush.BS_DIBPATTERN);
    lbrush.setBitmap(image);

    file.getCurrentState().setLogBrush(lbrush);
    file.storeObject(lbrush);
  }
View Full Code Here

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

   *
   * @param file the meta file.
   */
  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);
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.