Class CodeCircle

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CodeCircle extends JPanel
A class that represents a colored circle that is one of the four colors in a code sequence.
See Also:
  • Constructor Details

    • CodeCircle

      public CodeCircle(Color color)
      Draws a new CodeCircle with the given color.
      Parameters:
      color - The color of the circle.
  • Method Details

    • paintComponent

      protected void paintComponent(Graphics g)
      Paints the circle with the given color.
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - The graphics object.