Class AgendaHelper.AgendaLineLocation

  • Enclosing class:
    AgendaHelper

    public static final class AgendaHelper.AgendaLineLocation
    extends Object
    Stores information about an agenda line location.
    • Constructor Detail

      • AgendaLineLocation

        public AgendaLineLocation​(LocalTime time,
                                  double location,
                                  boolean minor)
        Constructs a new agenda line location.
        Parameters:
        time - the time represented by the line
        location - the y-coordinate of the line
        minor - a flag signalling whether this is a minor or a major line
    • Method Detail

      • getTime

        public LocalTime getTime()
        Returns the time represented by the line location.
        Returns:
        the time shown by the line
      • getLocation

        public double getLocation()
        Returns the y-coordinate of the line.
        Returns:
        the location of the line
      • isMinor

        public boolean isMinor()
        Determines if the location represents a major or a minor line.
        Returns:
        true if the line is a minor line