Examples of fill()


Examples of gnu.trove.list.TIntList.fill()

        TIntList a = new TIntLinkedList();
        for ( int i = 1; i <= element_count; i++ ) {
            a.add( i );
        }

        a.fill( 0xdeadbeef );
        for ( int i = 0; i < element_count; i++ ) {
            assertEquals( 0xdeadbeef, a.get( i ) );
        }
    }
View Full Code Here

Examples of hep.aida.IHistogram1D.fill()

{
  public static void main(String[] argv)
  {
    Random r = new Random();
    IHistogram1D h1 = new Histogram1D("AIDA 1D Histogram",40,-3,3);
    for (int i=0; i<10000; i++) h1.fill(r.nextGaussian());
   
    IHistogram2D h2 = new Histogram2D("AIDA 2D Histogram",40,-3,3,40,-3,3);
    for (int i=0; i<10000; i++) h2.fill(r.nextGaussian(),r.nextGaussian());
   
    // Write the results as a PlotML files!
View Full Code Here

Examples of hep.aida.IHistogram2D.fill()

    Random r = new Random();
    IHistogram1D h1 = new Histogram1D("AIDA 1D Histogram",40,-3,3);
    for (int i=0; i<10000; i++) h1.fill(r.nextGaussian());
   
    IHistogram2D h2 = new Histogram2D("AIDA 2D Histogram",40,-3,3,40,-3,3);
    for (int i=0; i<10000; i++) h2.fill(r.nextGaussian(),r.nextGaussian());
   
    // Write the results as a PlotML files!
    writeAsXML(h1,"aida1.xml");
    writeAsXML(h2,"aida2.xml");
   
View Full Code Here

Examples of hep.aida.IHistogram3D.fill()

    //IHistogram2D h2 = new Histogram2D("AIDA 2D Histogram",2,-3,3, 2,-3,3);
    for (int i=0; i<10000; i++) h2.fill(r.nextGaussian(),r.nextGaussian());
   
    //IHistogram3D h3 = new Histogram3D("AIDA 3D Histogram",new VariableAxis(bounds),new VariableAxis(bounds),new VariableAxis(bounds));
    IHistogram3D h3 = new Histogram3D("AIDA 3D Histogram",10, -2, +2,    5, -2, +2,    3, -2, +2);
    for (int i=0; i<10000; i++) h3.fill(r.nextGaussian(),r.nextGaussian(),r.nextGaussian());
   
    // Write the results as a PlotML files!
    writeAsXML(h1,"aida1.xml");
    writeAsXML(h2,"aida2.xml");
    writeAsXML(h3,"aida2.xml");
View Full Code Here

Examples of java.awt.Graphics2D.fill()

        }

        Graphics2D g2 = (Graphics2D) getGraphics();
        Color c = new Color(255, 0, 0, mCueLine.getHeight() > 2 ? 40 : 180);
        g2.setColor(c);
        g2.fill(mCueLine);
      }

      return true;
    }
View Full Code Here

Examples of javafx.scene.canvas.GraphicsContext.fill()

                if (RADIUS > 0) {
                    CTX.fillArc(CENTER.getX() - RADIUS, CENTER.getY() - RADIUS, 2 * RADIUS, 2 * RADIUS, angle, ANGLE_STEP, ArcType.ROUND);
                } else {
                    CTX.moveTo(CENTER.getX() - RADIUS, CENTER.getY() - RADIUS);
                }
                CTX.fill();
            }
        }
    }


View Full Code Here

Examples of jjil.core.RgbImage.fill()

            int nRgb = RgbVal.toRgb(
                    (byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE),
                    (byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE),
                    (byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE));
            Rect rect = r.getRect();
            rgbImage = rgbImage.fill(rect, nRgb);
        }
        return rgbImage;
       
    }
   
View Full Code Here

Examples of kilim.nio.EndPoint.fill()

            System.out.println("[" + this.id + "] Connection rcvd");
            try {
                while (true) {
                    EndPoint ep = getEndPoint();
                    ByteBuffer buf = ByteBuffer.allocate(PACKET_LEN);
                    buf = ep.fill(buf, PACKET_LEN); // Pauses until at least PACKET_LEN bytes have been rcvd in buf.
                    System.out.println("[" + this.id + "] Received pkt");
                    buf.flip();
                    ep.write(buf);
                    System.out.println("[" + this.id + "] Echoed pkt");
                }
View Full Code Here

Examples of marauroa.common.game.RPObject.fill()

     * perception.
     */

    if (perception.type == Perception.SYNC) {
      RPObject copy = new RPObject();
      copy.fill(playerObject);
      if (!playerObject.isHidden()) {
        copy.clearVisible(true);
      }
      messages2cPerception.setMyRPObject(copy, null);
    } else {
View Full Code Here

Examples of mikera.arrayz.INDArray.fill()

      set(value);
    } else {
      int sc=sliceCount();
      for (int i=0; i<sc; i++) {
        INDArray s=slice(i);
        s.fill(value);
      }     
    }
  }
 
  @Override
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.