Package prezoom.view

Class StatePanel

    • Constructor Detail

      • StatePanel

        public StatePanel()
        The constructor.
    • Method Detail

      • insertStateBtn

        public void insertStateBtn()
        insert a new button that represents a new state at the next of the current state button.
      • deleteStateBtn

        public void deleteStateBtn​(int state)
        delete a state btn
        Parameters:
        state - the state to be deleted
      • updatePressedBtn

        public void updatePressedBtn()
        update the pressed status of state buttons according to the current state
      • updateBtnImage

        public void updateBtnImage​(BufferedImage img)
        update btn image
        Parameters:
        img - the screen shot
      • rearrangeBtn

        private void rearrangeBtn()
        refresh all buttons