Examples of draw()


Examples of org.locationtech.udig.project.ui.render.glass.GlassPane.draw()

    private void drawGlassPane(ViewportGraphics g){
        GC gc = g.getGraphics(GC.class);
        if (gc != null ){
            GlassPane glass = this.pane.getGlass();
            if (glass != null){
                glass.draw(gc);
            }   
        }   
    }
}
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.ViewportGraphics.draw()

   
            //rgba = style.foregroundColor.getColorComponents(null);
            //g.setColor(new Color(rgba[0], rgba[1], rgba[2], style.fAlpha));
            graphic.setColor(new Color((float)0.5, (float)0.5, (float)0.5, (float)0.75));
            graphic.setStroke(ViewportGraphics.LINE_SOLID, 1);
            graphic.draw(path);
           
           
           
            // draw inner rings / holes
            if (innerPolygons != null) {
View Full Code Here

Examples of org.lwjgl.util.glu.Sphere.draw()

    // create display list
    displayList = GL11.glGenLists(1);
    GL11.glNewList(displayList, GL11.GL_COMPILE);

    sphere.draw(radius, res, res);

    GL11.glEndList();
  }

  @Override
View Full Code Here

Examples of org.newdawn.slick.Animation.draw()

  public void render(Graphics g)
  {
    for (int i = 0; i < light_anim.size(); ++i)
    {
      Animation anim = light_anim.get(i);
      anim.draw(x-width/2+(i==0?9:9+i*5), GameplayState.ground_level+19+(i==0||i==light_anim.size()-1?0:11));
    }
  }
 
 
}
View Full Code Here

Examples of org.newdawn.slick.Graphics.draw()

      util_knife = 0;
      Rectangle rect = new Rectangle(GameplayState.player.pl_center.getX()+(GameplayState.player.util_facing?20:-55), GameplayState.player.pl_center.getY()-30, 35, 60);
      Graphics g = Game.app.getGraphics();
      g.setLineWidth(1);
      g.setColor(Color.red);
      g.draw(rect);
      for (int i = 0; i < MonsterHandler.monster_array.size(); ++i)
      {
        Monster mob = MonsterHandler.monster_array.get(i);
        if ((rect.intersects(mob.hitbox) || rect.contains(mob.hitbox)) && mob.state != MS.DEAD && mob.state != MS.NULL)
        {
View Full Code Here

Examples of org.newdawn.slick.Image.draw()

    {
      float offset_x = util_img[0].getWidth()*scale/2;
      float offset_y = util_img[0].getHeight()*scale/2;
      Image img = util_img[0].getScaledCopy(1+scale);
      img.setAlpha(alpha);
      img.draw((int)x-offset_x, (int)y-offset_y);
    }
    else if (state != 0)
    { 
      switch(frame)
      {
View Full Code Here

Examples of org.nlogo.shape.Element.draw()

    g2.antiAliasing(true);

    for (int i = 0; i < elements.size(); ++i) {
      element = elements.get(i);
      g.setColor(element.getColor());
      element.draw(g2, null,
          IS_MAC ? 299 : 300,
          0);
    }

    if (tempElement != null) {
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.generic.XFigure.draw()

    if (transactionFigure != null)
    {
      setTransactionFigurePosition(transactionFigure);
      g2.setColor(c);
      transactionFigure.draw(g2);
    }

    if (drawDecorations)
    {
      g2.setColor(c);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.report.layouting.ElementRenderer.draw()

    try
    {
      final ElementRenderer rendererRoot = getElementRenderer();
      if (rendererRoot != null)
      {
        if (rendererRoot.draw(logicalPageAreaG2) == false)
        {
          rendererRoot.handleError(designerContext, renderContext);

          logicalPageAreaG2.scale(1f / scaleFactor, 1f / scaleFactor);
          logicalPageAreaG2.setPaint(Color.WHITE);
View Full Code Here

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

        final Graphics2D g2 = image.createGraphics();
        g2.setPaint(Color.white);
        g2.fill(rect);

        final PageDrawable pageDrawable = prc.getPageDrawable(i);
        pageDrawable.draw(g2, rect);
        g2.dispose();

        // convert to PNG ...
        final PngEncoder encoder = new PngEncoder(image, true, 0, 9);
        final byte[] data = encoder.pngEncode();
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.