Package java.awt

Examples of java.awt.Graphics.fillRect()


        BufferedImage tempOUTImage = new BufferedImage(tempOUTWidth, tempOUTHeight, BufferedImage.TYPE_INT_ARGB);       
               
        // fill the background with a transparent color.
        Graphics g = tempOUTImage.getGraphics();
        g.setColor(new Color(255,255,255,0));
        g.fillRect(0,0,tempOUTWidth, tempOUTHeight);       
       
        // loop through the projected Envelope sampling the image.
        double tempINWidthStep = tempINEnvelope.getWidth()/tempINWidth;
        double tempINHeightStep = tempINEnvelope.getHeight()/tempINHeight;
        double tempOUTWidthStep = tempOUTEnvelope.getWidth()/tempOUTWidth;
View Full Code Here


        BufferedImage tempOUTImage = new BufferedImage(tempOUTWidth, tempOUTHeight, BufferedImage.TYPE_INT_ARGB);       
               
        // // fill the background with a transparent color.
        Graphics g = tempOUTImage.getGraphics();
        g.setColor(new Color(255,255,255,0));
        g.fillRect(0,0,tempOUTWidth, tempOUTHeight);       
       
        // loop through the projected Envelope sampling the image.
        double tempINWidthStep = tempINEnvelope.getWidth()/tempINWidth;
        double tempINHeightStep = tempINEnvelope.getHeight()/tempINHeight;
        double tempOUTWidthStep = tempOUTEnvelope.getWidth()/tempOUTWidth;
View Full Code Here

        BufferedImage tempOUTImage = new BufferedImage(tempOUTWidth, tempOUTHeight, BufferedImage.TYPE_INT_ARGB);       
               
        // // fill the background with a transparent color.
        Graphics g = tempOUTImage.getGraphics();
        g.setColor(new Color(255,255,255,0));
        g.fillRect(0,0,tempOUTWidth, tempOUTHeight);       
       
        // loop through the projected Envelope sampling the image.
        double tempINWidthStep = tempINEnvelope.getWidth()/tempINWidth;
        double tempINHeightStep = tempINEnvelope.getHeight()/tempINHeight;
        double tempOUTWidthStep = tempOUTEnvelope.getWidth()/tempOUTWidth;
View Full Code Here

    }
   
    Graphics gOffScreen = offScreenImage.getGraphics();
    Color c = gOffScreen.getColor();
    gOffScreen.setColor(Color.LIGHT_GRAY);
    gOffScreen.fillRect(0, 0, GAME_WIDTH, GAME_HEIGHT);
    gOffScreen.setColor(c);
    paint(gOffScreen);
    g.drawImage(offScreenImage, 0, 0, null);
  }
View Full Code Here

    ChunkVisInfo lastChunk = (ChunkVisInfo) events.elementAt(numChunks - 1);
    double xMulti = width/(lastStartTime + lastChunk.length);
   
    Graphics graphics = image.getGraphics();
    graphics.setColor(Color.white);
    graphics.fillRect(0,0,width,height);
   
    Point[][] previousPoints = new Point[numChunks][numFeatures];
   
    int colorMulti = numColors/numFeatures;
   
View Full Code Here

    ChunkVisInfo lastChunk = (ChunkVisInfo) events.elementAt(numChunks - 1);
    double xMulti = width/(lastStartTime + lastChunk.length);
    
    Graphics graphics = image.getGraphics();
    graphics.setColor(Color.white);//Color.lightGray);
    graphics.fillRect(0,0,width,height);
   
    for (int i = 0; i < numChunks; i++)
    {
      ChunkVisInfo cVI = (ChunkVisInfo) events.elementAt(i);
     
View Full Code Here

        //special drawing routine for multi-dimensional features
        if (elementsPerFeature[j] > 1)
        {
          //do background
          graphics.setColor(extraColor);
          graphics.fillRect(x1, yTop, blipWidth, height/numFeatures);
          //draw feature
          if (which == 3)
          {
            blipHeight = Math.round(height/numFeatures);
            kludgyMultiDimensionalDraw(x1, yTop,blipWidth,blipHeight,cVI, j, graphics);
View Full Code Here

        }
        else
        {
          //draw background
          graphics.setColor(extraColor);
          graphics.fillRect(x1, yTop, blipWidth, height/numFeatures);
          //draw feature
          graphics.setColor(featureColor);
          graphics.fillRect(x1, yFeatStart, blipWidth, blipHeight);
        }
View Full Code Here

          //draw background
          graphics.setColor(extraColor);
          graphics.fillRect(x1, yTop, blipWidth, height/numFeatures);
          //draw feature
          graphics.setColor(featureColor);
          graphics.fillRect(x1, yFeatStart, blipWidth, blipHeight);
        }

        if (sOptions.getSelectedIndex() == 0)
          cVI.xFeat = x1;
        else
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

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.