Class ScheduleView

    • Constructor Detail

      • ScheduleView

        protected ScheduleView​(LoggerEx log)
    • Method Detail

      • createScheduleEvent

        protected EventItem createScheduleEvent​(java.util.Date start,
                                                java.util.Date end)
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        This is to stop the mouse events from causing repaint due to colorization.
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class PMIWeekView
        Parameters:
        e - a MouseEvent
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        This is to stop the mouse events from causing repaint due to colorization.
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
        Overrides:
        mouseClicked in class PMIWeekView
        Parameters:
        e - a MouseEvent
      • updateSchedule

        public void updateSchedule()
      • setAdjAvailable

        public void setAdjAvailable​(java.awt.Color color)
        Sets the highlight color of the available time blocks that are present on the view.
        Parameters:
        color - the Color the available time block text is to be set to. Must not be null
      • getAdjAvailableColor

        public java.awt.Color getAdjAvailableColor()
        Gets the highlight color of the available time blocks that are present on the view.
        Returns:
        color the Color the available time block text is to be set to. Will not be null
      • getAdjUnavailableColor

        public java.awt.Color getAdjUnavailableColor()
        Gets the highlight color of the unavailable time blocks that are present on the view.
        Returns:
        color the Color the unavailable time block text is to be set to. Will not be null
      • getHolidayColor

        public java.awt.Color getHolidayColor()
        Gets the highlight color of the holiday time blocks that are present on the view.
        Returns:
        color the Color the holiday time block text is to be set to. Will not be null