Class CaseLabel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class CaseLabel extends JLabel
Custom JLabel representing a case that is able to draw circles depending on where the pieces can go. It also displays label showing coordinates
See Also:
  • Constructor Details

    • CaseLabel

      public CaseLabel()
  • Method Details

    • setDrawCircle

      public void setDrawCircle(boolean showCircle)
    • setDrawCircle

      public void setDrawCircle(boolean showCircle, Color color)
    • setUpperLeftCornerLabel

      public void setUpperLeftCornerLabel(String label)
    • setLowerRightCornerLabel

      public void setLowerRightCornerLabel(String label)
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent