Package guidoengine

Class guidoscoremap


  • public final class guidoscoremap
    extends guidoscoremapbase
    A Guido score map.
    It an extension on guidoscoremapbase which use java.awt.Rectangle instead of guidorect. This class is maintain for backward compatibility.
    • Constructor Detail

      • guidoscoremap

        public guidoscoremap()
    • Method Detail

      • get

        public boolean get​(int index,
                           guidosegment time,
                           java.awt.Rectangle r)
        Give a relation by index
        Parameters:
        index - the map index
        time - on output, contains the corresponding time segment.
        r - on output, contains the corresponding graphic Rectangle.
        Returns:
        false in case of incorrect index
      • getTime

        public boolean getTime​(guidodate date,
                               guidosegment time,
                               java.awt.Rectangle r)
        Give a relation by date
        Parameters:
        date - a guido date
        time - on output, contains the corresponding time segment.
        r - on output, contains the corresponding graphic Rectangle.
        Returns:
        true when the date is found in a time segment
      • getPoint

        public boolean getPoint​(float x,
                                float y,
                                guidosegment time,
                                java.awt.Rectangle r)
        Give a relation by point
        Parameters:
        x - the point x coordinate
        y - the point y coordinate
        time - on output, contains the corresponding time segment.
        r - on output, contains the corresponding graphic Rectangle.
        Returns:
        true when the point is found in a graphic segment