Examples of drawOval()


Examples of java.awt.Graphics.drawOval()

      xp[0] = -10; yp[0] = 0;
      xp[1] = -29; yp[1] = -7;
      xp[2] = -29; yp[2] = 7;
      xp[3] = -10; yp[3] = 0;
      g.drawPolyline(xp, yp, 4);
      g.drawOval(-9, -4, 9, 9);
    }
  }
 
  static void paintXor(InstancePainter painter, int width, int height) {
    Graphics g = painter.getGraphics();
View Full Code Here

Examples of java.awt.Graphics.drawOval()

      if (toolIconRect != null) {
        toolIconRect.paintIcon(painter.getDestination(), g, 2, 2);
      } else {
        g.drawRect(0, 2, 16, 16);
        GraphicsUtil.drawCenteredText(g, RECT_LABEL, 8, 8);
        g.drawOval(16, 8, 4, 4);
      }
    } else if (painter.getGateShape() == AppPreferences.SHAPE_DIN40700) {
      if (toolIconDin != null) {
        toolIconDin.paintIcon(painter.getDestination(), g, 2, 2);
      } else {
View Full Code Here

Examples of java.awt.Graphics.drawOval()

      if (toolIconDin != null) {
        toolIconDin.paintIcon(painter.getDestination(), g, 2, 2);
      } else {
        g.drawRect(0, 2, 16, 16);
        GraphicsUtil.drawCenteredText(g, RECT_LABEL, 8, 8);
        g.drawOval(16, 8, 4, 4);
      }
    } else {
      if (toolIcon != null) {
        toolIcon.paintIcon(painter.getDestination(), g, 2, 2);
      } else {
View Full Code Here

Examples of java.awt.Graphics.drawOval()

        xp[0] = 15; yp[0] = 10;
        xp[1] 1; yp[1] 3;
        xp[2] 1; yp[2] = 17;
        xp[3] = 15; yp[3] = 10;
        g.drawPolyline(xp, yp, 4);
        g.drawOval(15, 8, 4, 4);
      }
    }
  }

  @Override
View Full Code Here

Examples of java.awt.Graphics.drawOval()

                if ((x > 0) && (y > 0) && (x < myGISDisplay.getWidth()) && (y < myGISDisplay.getHeight())){
                    Graphics g = myGISDisplay.getBufferImage().getGraphics();
                    g.setColor(java.awt.Color.cyan);
                    g.fillOval(x-5, y-5, 10,10);
                    g.setColor(java.awt.Color.black);
                    g.drawOval(x-5, y-5, 10,10);
                   
                    // Draw the buffer on the display
                    myGISDisplay.getGraphics().drawImage(myGISDisplay.getBufferImage(), 0, 0, myGISDisplay);
                }
            }
View Full Code Here

Examples of java.awt.Graphics.drawOval()

        if ((x > 0) && (y > 0) && (x < myGISDisplay.getWidth()) && (y < myGISDisplay.getHeight())){
            Graphics g = myGISDisplay.getBufferImage().getGraphics();
            g.setColor(java.awt.Color.cyan);
            g.fillOval(x-5, y-5, 10,10);
            g.setColor(java.awt.Color.black);
            g.drawOval(x-5, y-5, 10,10);

            // Draw the buffer on the display
            myGISDisplay.getGraphics().drawImage(myGISDisplay.getBufferImage(), 0, 0, myGISDisplay);
        }
    }
View Full Code Here

Examples of java.awt.Graphics.drawOval()

       
        // call the graphics routine to draw the posative shape.'
        Graphics tempGraphics = inShader.getLabelHighlightGraphics(inGraphics, inRecord.getAttributes(), inRecord.getAttributeNames());
        if (tempGraphics != null) {
            for (int i=0; i<tempXs.length; i++){
                tempGraphics.drawOval(tempXs[i]-4, tempYs[i]-4, 8,8);
            }
        }
       
        // draw the negative shapes
        LinearRing[] tempHoles = tempPolygon.getHoles();
View Full Code Here

Examples of java.awt.Graphics.drawOval()

                    tempYs[j] = inConverter.convertY(tempDYs[j]);
                }
               
                // call the graphics routine to draw the negative shape.
                for (int j=0; j<tempXs.length; j++){
                    tempGraphics.drawOval(tempXs[j]-4, tempYs[j]-4, 8,8);
                }
            }
        }
        return true;
    }
View Full Code Here

Examples of java.awt.Graphics.drawOval()

            tempGraphics.drawLine(tempBottomX, tempTopY, tempBottomX, tempBottomY);
            tempGraphics.drawLine(tempTopX, tempTopY, tempTopX, tempBottomY);
            tempGraphics.drawLine(tempTopX, tempBottomY, tempBottomX, tempBottomY);
           
            // draw the points marking the corners
            tempGraphics.drawOval(tempTopX, tempTopY, 4,4);
            tempGraphics.drawOval(tempTopX, tempBottomY, 4,4);
            tempGraphics.drawOval(tempBottomX, tempTopY, 4,4);
            tempGraphics.drawOval(tempBottomX, tempBottomY, 4,4);
        }
       
View Full Code Here

Examples of java.awt.Graphics.drawOval()

            tempGraphics.drawLine(tempTopX, tempTopY, tempTopX, tempBottomY);
            tempGraphics.drawLine(tempTopX, tempBottomY, tempBottomX, tempBottomY);
           
            // draw the points marking the corners
            tempGraphics.drawOval(tempTopX, tempTopY, 4,4);
            tempGraphics.drawOval(tempTopX, tempBottomY, 4,4);
            tempGraphics.drawOval(tempBottomX, tempTopY, 4,4);
            tempGraphics.drawOval(tempBottomX, tempBottomY, 4,4);
        }
       
        return true;
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.