Examples of paint()


Examples of org.nlogo.shape.VectorShape.paint()

  private ImageIcon getShapeIcon(double colorValue) {
    VectorShape defaultShape = org.nlogo.shape.VectorShape.getDefaultShape();
    BufferedImage image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
    org.nlogo.api.Graphics2DWrapper g2 = new org.nlogo.api.Graphics2DWrapper(image.createGraphics());
    g2.antiAliasing(true);
    defaultShape.paint
        (g2,
            new Color(org.nlogo.api.Color.getARGBbyPremodulatedColorNumber(colorValue)),
            0, 0, 16, 0);
    g2.drawImage(image);
    return new ImageIcon(image);
View Full Code Here

Examples of org.openstreetmap.gui.jmapviewer.Tile.paint()

              && posy <= y_max) {
            // tile is visible
            Tile tile = getTile(tilex, tiley, zoom);
            if (tile != null) {
              painted = true;
              tile.paint(g, posx, posy);
              if (tileGridVisible) {
                g.drawString(tile.getXtile() + ", "
                    + tile.getYtile(), posx, posy + 12);
                g.drawRect(posx, posy, Tile.SIZE, Tile.SIZE);
              }
View Full Code Here

Examples of org.openstreetmap.josm.data.imagery.GeorefImage.paint()

        if (zoomIsTooBig()) {
            for(int x = 0; x<images.length; ++x) {
                for(int y = 0; y<images[0].length; ++y) {
                    GeorefImage image = images[x][y];
                    image.paint(g, mv, image.getXIndex(), image.getYIndex(), leftEdge, bottomEdge);
                }
            }
        } else {
            downloadAndPaintVisible(g, mv, false);
        }
View Full Code Here

Examples of org.openstreetmap.josm.gui.layer.Layer.paint()

    tempG.fillRect(0, 0, getWidth(), getHeight());

    for (int i = layers.size() - 1; i >= 0; --i) {
      Layer l = layers.get(i);
      if (l.visible/* && l != getActiveLayer() */)
        l.paint(tempG, this);
    }

    /*
     * if (getActiveLayer() != null && getActiveLayer().visible)
     * getActiveLayer().paint(tempG, this);
View Full Code Here

Examples of org.tomighty.ui.theme.Theme.paint()

  @Override
  public void paint(Graphics g, JComponent component) {
    Canvas canvas = new Canvas(component.getSize());
    Theme theme = look.theme();
    theme.paint(canvas);
    canvas.drawBorder(look.colors().shadow());
    g.drawImage(canvas.image(), 0, 0, null);
  }

}
View Full Code Here

Examples of org.xhtmlrenderer.layout.Layer.paint()

            page.getMarginBorderPadding(c, CalculatedStyle.TOP);
       
        int left = page.getMarginBorderPadding(c, CalculatedStyle.LEFT);
       
        g.translate(left, top);
        root.paint(c);
        g.translate(-left, -top);
       
        g.setClip(working);
    }
   
View Full Code Here

Examples of pivot.wtk.media.Image.paint()

                    if (columnWidth >= dataRenderer.getPreferredWidth(-1) + sortImageMargin) {
                        Graphics2D sortImageGraphics = (Graphics2D)graphics.create();
                        sortImageGraphics.translate(cellX + columnWidth - sortImageMargin,
                            (height - sortImage.getHeight()) / 2);
                        sortImage.paint(sortImageGraphics);
                        sortImageGraphics.dispose();
                    }
                }

                // Draw the divider
View Full Code Here

Examples of pivot.wtk.media.Movie.paint()

            if (scale != 1) {
                graphics.scale(scale, scale);
            }

            graphics.translate(movieX, movieY);
            movie.paint(graphics);
        }
    }

    /**
     * @return
 
View Full Code Here

Examples of practica1.ui.tablaPoblacion.TablaPoblacion.paint()

           
           
            header.paint(graphicTabla);
            graphicTabla.translate(0, header.getHeight());
            tablaPoblacion.paint(graphicTabla);
        }
       
       
        //Terminamos la impresión
        finImpresion();
View Full Code Here

Examples of printplugin.printer.PositionedIcon.paint()

  }

  public void paintIcon(Component c, Graphics graphics, int x, int y) {
    for (int i=0; i<mPrograms.size(); i++) {
      PositionedIcon item = mPrograms.get(i);
      item.paint(graphics, (int)(x+item.getX()), (int)(y+item.getY()));
    }

    graphics.setColor(Color.lightGray);
    for (int i=0; i<mNumOfCols-1; i++) {
      int x0 = mWidth/mNumOfCols*(i+1)+x;
 
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.