Examples of paint()


Examples of abstraction.components.Button.paint()

    GUIFactory2 aFactory = GUIFactoryChoice2.getFactory();
    System.out.println("Using factory " + aFactory
        + " to construct aButton");
    Button aButton = aFactory.createButton();
    aButton.setCaption("Push a");
    aButton.paint();
    System.out.println("\nUsing factory " + aFactory
        + " to construct aMenu");
    Menu aMenu = aFactory.createMenu();
    aMenu.setCaption("Menu a");
    aMenu.display();
View Full Code Here

Examples of bs.bs2d.gui.plot.Plottable.paint()

                Rectangle2D tbounds = t2.createTransformedShape(plotBounds).getBounds2D();
               
                BufferedImage img = new BufferedImage((int)tbounds.getWidth()+2, (int)tbounds.getHeight()+2, BufferedImage.TYPE_INT_ARGB);
                Graphics2D g = (Graphics2D)img.getGraphics();
                g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                plot.paint(g, t2);
               
                TransferableImage ti = new TransferableImage(img);
                Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();
                c.setContents( ti, null );
                System.out.println("An image of plot has been copied to the clipboard.");
View Full Code Here

Examples of ca.nengo.ui.lib.world.piccolo.primitives.Universe.paint()

            g2.setTransform(at);

            // print the image to the template
            // turning off setUseGreekThreshold allows small text to print
            Text.setUseGreekThreshold(false);
            universe.paint(g2);
            Text.setUseGreekThreshold(true);
            g2.dispose();

            // add the template
            cb.addTemplate(tp,20,0);
View Full Code Here

Examples of civquest.swing.fieldview.FieldView.paint()

                           fieldPos);
//     Graphics2D graphics = buffer.getGraphics();
    Properties properties = quadMap.getProperties();
    Coordinate imageCoord = properties.getAbsImagePaintCoord(paintInfo.getCoord()).
      sub(buffer.getPosition());
    fieldView.paint(imageCoord, graphics);
  }

  protected void deleteBufferImage(Buffer deleteBuffer) {
    deleteBuffer.deleteImage();
    memoryFreed(deleteBuffer.getNeededMemory());
View Full Code Here

Examples of cl.alejo.jcsim.csim.gates.IconGate.paint()

  private void drawGates(Graphics2D gr, Box boxViewport) {
    for (Iterator iter = _icons.iterator(); iter.hasNext();) {
      IconGate icon = (IconGate) iter.next();
      if (boxViewport.containsSomeCorner(icon))
        icon.paint(gr);
    }
  }

  // TODO usarlo
  private void add(Circuit circuit, int x, int y) {
View Full Code Here

Examples of com.alee.extended.painter.Painter.paint()

        final GeneralPath bgShape = createTabShape ( TabShapeType.background, tabPlacement, x, y, w, h, isSelected );
        if ( backgroundPainterAt.containsKey ( tabIndex ) && isSelected )
        {
            final Shape old = GraphicsUtils.intersectClip ( g2d, bgShape );
            final Painter bp = backgroundPainterAt.get ( tabIndex );
            bp.paint ( g2d, new Rectangle ( x, y, w, h ), tabPane );
            GraphicsUtils.restoreClip ( g2d, old );
        }
        else
        {
            final Point topPoint = getTopTabBgPoint ( tabPlacement, x, y, w, h );
View Full Code Here

Examples of com.cb.eclipse.folding.theme.ProjectionAnnotationRangeIndicator.paint()

  }

  private void drawRangeIndication(GC gc, Canvas canvas, Rectangle r) {
    AnnotationThemeFactory themeFactory = AnnotationThemeFactory.getFactory(this);
    ProjectionAnnotationRangeIndicator indicator = themeFactory.getRangeIndicator(this);
    indicator.paint(gc, canvas, r);
  }

  /**
   * Paints the annotation based on the settings supplied by the model.
   */
 
View Full Code Here

Examples of com.cburch.draw.model.CanvasModel.paint()

  protected void paintForeground(Graphics g) {
    CanvasModel model = this.model;
    CanvasTool tool = listener.getTool();
    if (model != null) {
      Graphics dup = g.create();
      model.paint(g, selection);
      dup.dispose();
    }
    if (tool != null) {
      Graphics dup = g.create();
      tool.draw(this, dup);
View Full Code Here

Examples of com.daven.java4.slimemold.Patch.paint()

    //draw patches that stink
    for ( Point k : patchKeys )
    {
      Patch p = patchMatrix.get( k );
      if ( p.getStinkLevel() > 0 )
        p.paint();
    }
    //draw cells
    for ( SimulationObject so : population )
    {
      so.paint();
View Full Code Here

Examples of com.hobbitsadventure.model.Tile.paint()

        int colIndex = (numCols + j) % numCols;
       
        // Paint tile
        Tile tile = realmMap.getTile(rowIndex, colIndex);
        int x = (j - minJ) * TILE_WIDTH;
        tile.paint(g, x, baseY);
       
        // Paint thing if it's occluded by subsequent tile roles
        Thing thing = realmMap.getThing(rowIndex, colIndex);
        if (thing != null && thing.isOccludedByTerrain()) {
          int y = baseY - 65 + tile.getHeight();
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.