Class VisibleIndicator


  • public class VisibleIndicator
    extends Object
    Indicator of whether a menu item has been checked, unchecked or used default (the default being checked or unchecked).
    • Method Detail

      • getSelected

        public byte getSelected()
      • isSelected

        public boolean isSelected()
      • setDefault

        public void setDefault​(byte state)
      • setSelected

        public void setSelected​(byte state)
      • paintComponent

        public void paintComponent​(Graphics g)
        Draw a coloured square at the end of the display.
      • drawTick

        protected void drawTick​(Graphics2D g2,
                                Color color,
                                float xCentre,
                                float yCentre,
                                int width)
      • drawCross

        protected void drawCross​(Graphics2D g2,
                                 Color color,
                                 float xCentre,
                                 float yCentre,
                                 int width)