Examples of antiAliasing()


Examples of org.nlogo.api.Graphics2DWrapper.antiAliasing()

      spotlightImage = new java.awt.image.BufferedImage
          (width, height, java.awt.image.BufferedImage.TYPE_INT_ARGB);
    }

    Graphics2DWrapper sg = new Graphics2DWrapper(spotlightImage.createGraphics());
    sg.antiAliasing(true);

    if (dim) {
      sg.setComposite(java.awt.AlphaComposite.Src);
      sg.setColor(DIMMED);
      sg.fillRect(0, 0, width, height);
View Full Code Here

Examples of org.nlogo.api.Graphics2DWrapper.antiAliasing()

      sg.translate(x, y);
      draw(sg, size);
      sg.pop();
    }

    sg.antiAliasing(false);

    return spotlightImage;
  }

  // Don't let the spotlight be smaller than 10% of total view height / width
View Full Code Here

Examples of org.nlogo.api.Graphics2DWrapper.antiAliasing()

    }
  }

  public void stamp(org.nlogo.api.Agent agent, boolean erase) {
    Graphics2DWrapper tg = new Graphics2DWrapper(getAndCreateDrawing(false).createGraphics());
    tg.antiAliasing(true);
    tg.setComposite(erase ? java.awt.AlphaComposite.Clear : java.awt.AlphaComposite.SrcOver);

    topology.prepareToPaint(this, width, height);

    // we use world.patchSize here because the drawing does not
View Full Code Here

Examples of org.nlogo.api.Graphics2DWrapper.antiAliasing()

          (tg, topology, (org.nlogo.api.Turtle) agent, world.patchSize());
    } else if (agent instanceof org.nlogo.api.Link) {
      linkDrawer.drawLink
          (tg, topology, (org.nlogo.api.Link) agent, world.patchSize(), false);
    }
    tg.antiAliasing(false);

    markDirty();
  }

  public void drawLine(double x1, double y1, double x2, double y2,
View Full Code Here

Examples of org.nlogo.api.Graphics2DWrapper.antiAliasing()

        drawWrappedLine(tg, x1, y1, x2, y2, penSize);

        tg.setComposite(java.awt.AlphaComposite.SrcOver);
      } else {
        tg.antiAliasing(true);

        tg.setColor(org.nlogo.api.Color.getColor(penColor));

        drawWrappedLine(tg, x1, y1, x2, y2, penSize);
View Full Code Here

Examples of org.nlogo.api.Graphics2DWrapper.antiAliasing()

        tg.setColor(org.nlogo.api.Color.getColor(penColor));

        drawWrappedLine(tg, x1, y1, x2, y2, penSize);

        tg.antiAliasing(false);
      }
    }
  }

  private void drawWrappedLine(Graphics2DWrapper tg,
View Full Code Here

Examples of org.nlogo.api.Graphics2DWrapper.antiAliasing()

    image = new java.awt.image.BufferedImage
        (imageSize, imageSize,
            java.awt.image.BufferedImage.TYPE_INT_ARGB);
    Graphics2DWrapper g = new Graphics2DWrapper((java.awt.Graphics2D) image.getGraphics());
    g.antiAliasing(true);
    try {
      shape.paint(g, color, 0, 0, turtleSize, cellSize, angle, 0.0);
    } finally {
      g.dispose();
    }
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.