Package java.awt

Examples of java.awt.Graphics.fillRect()


          if (miniBlipHeight < 1)
            miniBlipHeight = 1;
           
          //draw top blip
          //if (cVI.selected)
          graphics.fillRect(x1, y, blipWidth, miniBlipHeight);

          //else
          //{
            //this is wonky, but if we always draw here then
            //multi-dimensional blips won't disappear when
View Full Code Here


              //int y2 = (height - y) - blipHeight/ndim;
                            // draw the bottom blip in the same
                            // orientation as the top blip
                            int y2 = height - j*blipHeight - (ndim-k)*blipHeight/ndim;
              //if (cVI.selected)
                graphics.fillRect(x2, y2, blipWidth + 1, miniBlipHeight);
              //else
              //{
              //  if (k == 0)
              //    graphics.drawRect(x2, y2, blipWidth, blipHeight);
              //}             
View Full Code Here

    // use 1/4 of the screen for plotting blips
    double scaledHeight = height * screenPercentage;

    Graphics graphics = image.getGraphics();
    graphics.setColor(Color.white);// Color.lightGray);
    graphics.fillRect(0, 0, width, height);

    int blipHeight = (int) (scaledHeight / numFeatures);

    for (int i = 0; i < numChunks; i++)
    {
View Full Code Here

          if (miniBlipHeight < 1)
            miniBlipHeight = 1;

          // draw top blip
          // if (cVI.selected)
          graphics.fillRect(x1, y, blipWidth, miniBlipHeight);

          // else
          // {
          // this is wonky, but if we always draw here then
          // multi-dimensional blips won't disappear when
View Full Code Here

              // draw the bottom blip in the same
              // orientation as the top blip
              int y2 = height - j * blipHeight - (ndim - k)
                  * blipHeight / ndim;
              // if (cVI.selected)
              graphics.fillRect(x2, y2, blipWidth + 1,
                  miniBlipHeight);
              // else
              // {
              // if (k == 0)
              // graphics.drawRect(x2, y2, blipWidth, blipHeight);
View Full Code Here

     * clear screen
     */
   
    Graphics graphics = image.getGraphics();
    graphics.setColor(Color.white);
    graphics.fillRect(0,0,width,height);
   
   
    /*
     * do each chunk
     */
 
View Full Code Here

        elementsPerFeature[whichFeature - 3] > 1)
      {
        if (cVI.selected)
        {
          graphics.setColor(borderColor);
          graphics.fillRect(x, y, w, h);
          kludgyMultiDimensionalDraw(x+2,y+2,wInset,hInset,cVI, cOptions.getSelectedIndex() - 3, graphics);
        }
        else
          kludgyMultiDimensionalDraw(x,y,w,h,cVI, cOptions.getSelectedIndex() - 3, graphics);
View Full Code Here

        graphics.setColor(borderColor);
       
        if (ovals)
          graphics.fillOval(x, y, w, h);     
        else
          graphics.fillRect(x, y, w, h)
         
        graphics.setColor(featureColor);
         
        if (ovals)
          graphics.fillOval(x+2, y+2, wInset, hInset);     
View Full Code Here

        graphics.setColor(featureColor);
         
        if (ovals)
          graphics.fillOval(x+2, y+2, wInset, hInset);     
        else
          graphics.fillRect(x+2, y+2, wInset, hInset);           
      }
      //else
      //{
      //  if (ovals)
      //    graphics.drawOval(x, y, w, h);     
View Full Code Here

      boolean simpleImg = ulColor.equals(urColor) && urColor.equals(llColor)
          && llColor.equals(lrColor) && lrColor.equals(ulColor);
      if (simpleImg) {
        Graphics g = res.getBufferedImg().getGraphics();
        g.setColor(ulColor);
        g.fillRect(0, 0, res.getImageWidth(), res.getImageHeight());
      }
      else {
        // UL 0
        // UR 1
        // LL 2
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.