Examples of draw()


Examples of net.sourceforge.dsnk.gui.map.model.DrawableBlock.draw()

        // only draw if block is visible
        if (screenRect.intersects(clip)) {
          Point topLeftCorner = screenRect.getLocation();
          topLeftCorner.x = topLeftCorner.x + modifier.x;
          topLeftCorner.y = topLeftCorner.y + modifier.y;
          block.draw(gImg, topLeftCorner);
        }
      }
    }

    g.drawImage(image, 0, 0, null);
View Full Code Here

Examples of net.wigis.graph.dnv.geometry.Text.draw()

          key = "X" + hops;
          if( !drawnHeadings.containsKey( key ) )
          {
            Text t = new Text( "Dist " + hops, position, new Vector3D( 1, 1, 1 ), fillColor, 12, true, true, true, false, false, false,
                true );
            t.draw( g2d, pb, minXPercent, maxXPercent, minYPercent, maxYPercent, minX, maxX, minY, maxY, nodeWidth, height, overview );
            drawnHeadings.put( key, 1 );
          }
          else
          {
            drawnHeadings.put( key, drawnHeadings.get( key ) + 1 );
View Full Code Here

Examples of net.yacy.visualization.GraphPlotter.draw()

            // recursively find domains, up to a specific depth
            final GraphPlotter graph = new GraphPlotter();
            if (host != null && hash != null) place(graph, sb.webStructure, hash, host, nodes, timeout, 0.0, 0.0, 0, depth, cyc);
            //graph.print();

            graphPicture = graph.draw(width, height, 40, 40, 16, 16, color_back, color_dot, color_line, color_lineend, color_text);
        }
        // print headline
        graphPicture.setColor(color_text);
        PrintTool.print(graphPicture, 2, 8, 0, "YACY WEB-STRUCTURE ANALYSIS", -1);
        if (host != null) PrintTool.print(graphPicture, 2, 16, 0, "LINK ENVIRONMENT OF DOMAIN " + host.toUpperCase(), -1);
View Full Code Here

Examples of nodebox.client.visualizer.Visualizer.draw()

            Graphics2D g2 = (Graphics2D) g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2.translate(getWidth() / 2, getHeight() / 2);
            Visualizer v = VisualizerFactory.getVisualizer(outputValues, ListUtils.listClass(outputValues));
            // todo: handle canvas clipping
            v.draw(g2, outputValues);
        }
    }
}
View Full Code Here

Examples of obj.Element.draw()

    while ( iteratorElem.hasNext() ) {
      Element elem = iteratorElem.next();
      if (elem.actualise(grid)) {
        iteratorElem.remove();
      }else{
        elem.draw(gl);
      }
    }
  }
 
  @Override
View Full Code Here

Examples of org.antlr.works.visualization.graphics.graph.GGraph.draw()

        context.setEngine(new GEngineGraphics());
        context.setGraphics2D(g2d);

        g2d.setColor(Color.white);
        g2d.fillRect(0, 0, width, height);
        graph.draw();
        g2d.dispose();

        ImageIO.write(image, imageFormat, new File(file));
    }
View Full Code Here

Examples of org.antlr.works.visualization.graphics.graph.GGraphAbstract.draw()

            GEnginePS engine = new GEnginePS();

            GContext context = graph.getContext();
            GEngine oldEngine = context.engine;
            context.setEngine(engine);
            graph.draw();
            context.setEngine(oldEngine);

            XJUtils.writeStringToFile(engine.getPSText(), file);
        } catch (Exception e) {
            window.consoleTab.println(e);
View Full Code Here

Examples of org.apache.axis2.jaxws.polymorphic.shape.sei.PolymorphicShapePortType.draw()

        TestLogger.logger.debug("Sending Request to draw Square");
    Square shape = new Square();
    shape.setXAxis(1);
    shape.setYAxis(1);
    shape.setLength(10);
    shapeType = port.draw(shape);
    assertTrue(shapeType instanceof Square);
        TestLogger.logger.debug("Square was drawn");

        TestLogger.logger.debug("Sending Request to draw 3D Square");
    ThreeDSquare threeDshape = new ThreeDSquare();
View Full Code Here

Examples of org.apache.batik.gvt.text.TextSpanLayout.draw()

        if (overline && !layout.isVertical()) {
            paintOverline(textRun, g2d);
        }

        layout.draw(g2d, context);

        boolean strikethrough =
            (runaci.getAttribute(GVTAttributedCharacterIterator.
                TextAttribute.STRIKETHROUGH) ==
                    GVTAttributedCharacterIterator.
View Full Code Here

Examples of org.apache.felix.example.extenderbased.host.extension.SimpleShape.draw()

        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
            RenderingHints.VALUE_ANTIALIAS_ON);
        SimpleShape shape = m_frame.getShape(m_shapeName);
        shape.draw(g2, new Point(getWidth()/2, getHeight()/2));
    }
}
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.