Examples of fillOval()


Examples of java.awt.Graphics.fillOval()

          else if (val == Value.FALSE) c = offColor;
          else c = Value.ERROR_COLOR;
          g.setColor(c);
         
          if (drawSquare) g.fillRect(x, y, 10, 10);
          else g.fillOval(x + 1, y + 1, 8, 8);
        } else {
          g.setColor(Color.GRAY);
          g.fillOval(x + 1, y + 1, 8, 8);
        }
      }
View Full Code Here

Examples of java.awt.Graphics.fillOval()

         
          if (drawSquare) g.fillRect(x, y, 10, 10);
          else g.fillOval(x + 1, y + 1, 8, 8);
        } else {
          g.setColor(Color.GRAY);
          g.fillOval(x + 1, y + 1, 8, 8);
        }
      }
    }
    g.setColor(Color.BLACK);
    GraphicsUtil.switchToWidth(g, 2);
View Full Code Here

Examples of java.awt.Graphics.fillOval()

      }
      if (i < 7) {
        Bounds seg = SEGMENTS[i];
        g.fillRect(x + seg.getX(), y + seg.getY(), seg.getWidth(), seg.getHeight());
      } else {
        g.fillOval(x + 28, y + 48, 5, 5); // draw decimal point
      }
    }
    painter.drawPorts();
  }
 
View Full Code Here

Examples of java.awt.Graphics.fillOval()

      Color onColor = painter.getAttributeValue(Io.ATTR_ON_COLOR);
      Color offColor = painter.getAttributeValue(Io.ATTR_OFF_COLOR);
      Boolean activ = painter.getAttributeValue(Io.ATTR_ACTIVE);
      Object desired = activ.booleanValue() ? Value.TRUE : Value.FALSE;
      g.setColor(val == desired ? onColor : offColor);
      g.fillOval(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight());
    }
    g.setColor(Color.BLACK);
    GraphicsUtil.switchToWidth(g, 2);
    g.drawOval(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight());
    GraphicsUtil.switchToWidth(g, 1);
View Full Code Here

Examples of java.awt.Graphics.fillOval()

    Location loc = painter.getLocation();
    int x = loc.getX();
    int y = loc.getY();
    GraphicsUtil.switchToWidth(g, 2);
    g.setColor(Color.BLACK);
    g.fillOval(x - 12, y - 7, 4, 4);
    g.drawLine(x - 15, y, x - 5, y);
    g.fillOval(x - 12, y + 3, 4, 4);
    GraphicsUtil.switchToWidth(g, 1);
  }
View Full Code Here

Examples of java.awt.Graphics.fillOval()

    int y = loc.getY();
    GraphicsUtil.switchToWidth(g, 2);
    g.setColor(Color.BLACK);
    g.fillOval(x - 12, y - 7, 4, 4);
    g.drawLine(x - 15, y, x - 5, y);
    g.fillOval(x - 12, y + 3, 4, 4);
    GraphicsUtil.switchToWidth(g, 1);
  }

  static Value[] computeResult(BitWidth width, Value a, Value b, Value upper) {
    int w = width.getWidth();
View Full Code Here

Examples of java.awt.Graphics.fillOval()

                    int x1 = c.toScreenX(myPoints[i].getX());
                    int y1 = c.toScreenY(myPoints[i].getY());
                   
                    // Point shadows
                    tempGraphics.setColor(Color.black);
                    tempGraphics.fillOval(x1-3, y1-3, 4,4);
                   
                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
                }
View Full Code Here

Examples of java.awt.Graphics.fillOval()

                    tempGraphics.setColor(Color.black);
                    tempGraphics.fillOval(x1-3, y1-3, 4,4);
                   
                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
                }
            }
           
            // draw the buffer image on the display
            getGISDisplay().getGraphics().drawImage(getGISDisplay().getBufferImage(), 0, 0, getGISDisplay());
View Full Code Here

Examples of java.awt.Graphics.fillOval()

                int x = c.toScreenX(inPoint.getX());
                int y = c.toScreenY(inPoint.getY());
                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.fillOval()

            int x1 = c.toScreenX(myPoint.getX());
            int y1 = c.toScreenY(myPoint.getY());
           
            // Point shadows
            tempGraphics.setColor(Color.black);
            tempGraphics.fillOval(x1-3, y1-3, 6,6);
           
            // Points
            tempGraphics.setColor(Color.red);
            tempGraphics.fillOval(x1-2, y1-2, 6,6);
        }       
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.