Package java.awt

Examples of java.awt.Graphics.fillOval()


      if (mouseDown) {
        g.setColor(MAGNIFYING_INTERIOR_DOWN);
      } else {
        g.setColor(MAGNIFYING_INTERIOR);
      }
      g.fillOval(cx - 5, cy - 5, 10, 10);
      g.setColor(Color.BLACK);
      g.drawOval(cx - 5, cy - 5, 10, 10);
      g.fillPolygon(xp, yp, xp.length);
    }
  }
View Full Code Here


      g.setColor(Color.black);
      g.drawRect(x + 5, y + 2, 11, 17);
      Value[] v = { Value.TRUE, Value.FALSE };
      for (int i = 0; i < 3; i++) {
        g.setColor(v[i % 2].getColor());
        g.fillOval(x + 5 - 1, y + 5 + 5 * i - 1, 3, 3);
        g.setColor(v[(i + 1) % 2].getColor());
        g.fillOval(x + 16 - 1, y + 5 + 5 * i - 1, 3, 3);
      }
    }
  }
View Full Code Here

      Value[] v = { Value.TRUE, Value.FALSE };
      for (int i = 0; i < 3; i++) {
        g.setColor(v[i % 2].getColor());
        g.fillOval(x + 5 - 1, y + 5 + 5 * i - 1, 3, 3);
        g.setColor(v[(i + 1) % 2].getColor());
        g.fillOval(x + 16 - 1, y + 5 + 5 * i - 1, 3, 3);
      }
    }
  }
 
  public Object getFeature(Object key, AttributeSet attrs) {
View Full Code Here

        if (y0 != y1) g.drawLine(x0, y0, x0, y1);
        if (x0 != x1) g.drawLine(x0, y1, x1, y1);
      }
    } else if (AppPreferences.ADD_SHOW_GHOSTS.getBoolean() && inCanvas) {
      g.setColor(Color.GRAY);
      g.fillOval(cur.getX() - 2, cur.getY() - 2, 5, 5);
    }
  }

  @Override
  public void mouseEntered(Canvas canvas, Graphics g,
View Full Code Here

    if (toolIcon != null) {
      toolIcon.paintIcon(c.getDestination(), g, x + 2, y + 2);
    } else {
      g.setColor(java.awt.Color.black);
      g.drawLine(x + 3, y + 13, x + 17, y + 7);
      g.fillOval(x + 1, y + 11, 5, 5);
      g.fillOval(x + 15, y + 5, 5, 5);
    }
  }

  @Override
View Full Code Here

      toolIcon.paintIcon(c.getDestination(), g, x + 2, y + 2);
    } else {
      g.setColor(java.awt.Color.black);
      g.drawLine(x + 3, y + 13, x + 17, y + 7);
      g.fillOval(x + 1, y + 11, 5, 5);
      g.fillOval(x + 15, y + 5, 5, 5);
    }
  }

  @Override
  public Cursor getCursor() { return cursor; }
View Full Code Here

      StateData myState = (StateData) painter.getData();
      if (myState != null) {
        int x = loc.getX();
        int y = loc.getY();
        g.setColor(myState.curValue.getColor());
        g.fillOval(x - 26, y + 4, 13, 13);
        g.setColor(Color.WHITE);
        GraphicsUtil.drawCenteredText(g,
          myState.curValue.toDisplayString(), x - 19, y + 9);
        g.setColor(Color.BLACK);
      }
View Full Code Here

      g.drawLine(x1, yy0, x1, yy1);
      g.drawArc(x0, y0 + height - diam, diam, diam, -90, 90);
    }
    g.drawLine(xMid, y0, xMid, y0 + height);
    if (drawBubble) {
      g.fillOval(x0 + diam - 4, -4, 8, 8);
      xMid += 4;
    }
  }

  private static void paintOrLines(InstancePainter painter,
View Full Code Here

      g.drawOval(4, 4, 13, 13);
    } else {
      g.drawRect(4, 4, 13, 13);
    }
    g.setColor(Value.TRUE.getColor());
    g.fillOval(7, 788);
    g.fillOval(pinx, piny, 3, 3);
  }

  @Override
  public void paintGhost(InstancePainter painter) {
View Full Code Here

    } else {
      g.drawRect(4, 4, 13, 13);
    }
    g.setColor(Value.TRUE.getColor());
    g.fillOval(7, 788);
    g.fillOval(pinx, piny, 3, 3);
  }

  @Override
  public void paintGhost(InstancePainter painter) {
    PinAttributes attrs = (PinAttributes) painter.getAttributeSet();
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.