Examples of draw()


Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable.draw()

    final LogicalPageDrawable drawable = new LogicalPageDrawable();
    drawable.init(logicalPageBox, metaData, report.getResourceManager());

    final TracingGraphics g2 = new TracingGraphics();
    drawable.draw(g2, new Rectangle2D.Double(0, 0, 500, 500));
/*
    for (int i = 0; i < g2.records.size(); i++)
    {
      final TextTraceRecord record = g2.records.get(i);
      System.out.println ("goldenSamples.add(new TextTraceRecord(" + record.x + ", " + record.y + ", \"" + record.text +"\"));");
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.PhysicalPageDrawable.draw()

    final PdfContentByte directContent = writer.getDirectContent();
    final Graphics2D graphics = new PdfGraphics2D(directContent, width, height, metaData);
    final PdfLogicalPageDrawable logicalPageDrawable =
        new PdfLogicalPageDrawable(logicalPage, metaData, writer, page, resourceManager, imageCache, version);
    final PhysicalPageDrawable drawable = new PhysicalPageDrawable(logicalPageDrawable, page);
    drawable.draw(graphics, new Rectangle2D.Double(0, 0, width, height));

    graphics.dispose();

    document.newPage();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.ComponentDrawable.draw()

    final BufferedImage bi = ImageUtils.createTransparentImage(width, height);
    final Graphics2D graph = bi.createGraphics();
    graph.setBackground(new Color(0, 0, 0, 0));
    graph.setTransform(AffineTransform.getScaleInstance(scale, scale));
    drawable.draw(graph, new Rectangle2D.Float(0, 0, dim.width, dim.height));
    graph.dispose();

    return bi;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.pixie.wmf.WmfFile.draw()

    InputStream resource = WmfReadingTest.class.getResourceAsStream("anim0002.wmf");
    assertNotNull(resource);
    WmfFile wmfFile = new WmfFile(resource, 800, 600);
    BufferedImage bi = new BufferedImage(800, 600, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics2D graphics = bi.createGraphics();
    wmfFile.draw(graphics, new Rectangle2D.Double(0, 0, 800, 600));
    graphics.dispose();
  }
}
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper.draw()

      final double y = (int) StrictGeomUtility.toExternalValue(content.getY());
      final double width = (int) StrictGeomUtility.toExternalValue(content.getWidth());
      final double height = (int) StrictGeomUtility.toExternalValue(content.getHeight());
      final DrawableWrapper d = (DrawableWrapper) o;
      final Graphics2D g2Clone = (Graphics2D) g2.create();
      d.draw(g2Clone, new Rectangle2D.Double(x,y,width, height));
      g2Clone.dispose();
    }
  }

  private void drawText(final Graphics2D g2,
View Full Code Here

Examples of org.spoutcraft.api.gui.MinecraftTessellator.draw()

            tessellator.startDrawingQuads();
            tessellator.addVertexWithUV((double) width, (double) height, -90, 1, 1);
            tessellator.addVertexWithUV((double) width, (double) y, -90, 1, 0);
            tessellator.addVertexWithUV((double) x, (double) y, -90, 0, 0);
            tessellator.addVertexWithUV((double) x, (double) height, -90, 0, 1);
            tessellator.draw();
  //          GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
  //          RenderUtil.drawRectangle(x, y, width, height, 0x88ffffff);
            if (MinimapConfig.getInstance().isHeightmap()) {
              GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_DST_COLOR);
              map.loadHeightImage();
View Full Code Here

Examples of org.tinyuml.draw.Connection.draw()

    // undashed
    mockDrawingContext.expects(once()).method("drawLine")
      .with(eq(10.0), eq(5.0), eq(20.0), eq(5.0));
    mockDrawingContext.expects(once()).method("drawLine")
      .with(eq(20.0), eq(5.0), eq(30.0), eq(5.0));
    conn.draw((DrawingContext) mockDrawingContext.proxy());
   
    // dashed
    conn.setIsDashed(true);
    mockDrawingContext.expects(once()).method("drawDashedLine")
      .with(eq(10.0), eq(5.0), eq(20.0), eq(5.0));
View Full Code Here

Examples of org.tinyuml.draw.NullElement.draw()

   * Tests the methods of NullShape.
   */
  public void testMethods() {
    NullElement elem = NullElement.getInstance();
    elem.recalculateSize(drawingContext);
    elem.draw(drawingContext);
    assertFalse(elem.isVisible(new Rectangle(0, 0, 1000, 1000)));
    assertFalse(elem.isVisible(null));
    assertEquals(NullSelection.getInstance(), elem.getSelection(operations));
    assertNull(elem.getLabelAt(1, 2));
  }
View Full Code Here

Examples of org.tinyuml.draw.Selection.draw()

    // exceptions
    selection.startDragging(x, y);
    selection.stopDragging(x, y);
    selection.cancelDragging();
    selection.updatePosition(x, y);
    selection.draw(drawingContext);
    selection.updateDimensions();
  }
}
View Full Code Here

Examples of org.woped.editor.graphbeautifier.SGYGraph.draw()

          .showMessageDialog(this.getEditorPanel(), Messages
              .getString("File.Error.GraphBeautifier.NoNet.Text"));
    } else {
      SGYGraph graph = new SGYGraph(this);
      graph.beautify(counter);
      graph.draw(ixIntervall, iyIntervall);
    }
    // Check the orientation. If the orientation is 'vertical' rotate
    // the graph.   
    if (isRotateSelected()) {
      getEditorPanel().rotateLayout(this);
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.