Package guidoengine
Class guidoscoremap
- java.lang.Object
-
- guidoengine.guidoscoremapbase
-
- guidoengine.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.
-
-
Field Summary
-
Fields inherited from class guidoengine.guidoscoremapbase
kGuidoBar, kGuidoEvent, kGuidoPage, kGuidoStaff, kGuidoSystem, kGuidoSystemSlice
-
-
Constructor Summary
Constructors Constructor Description guidoscoremap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
get(int index, guidosegment time, java.awt.Rectangle r)
Give a relation by indexboolean
getPoint(float x, float y, guidosegment time, java.awt.Rectangle r)
Give a relation by pointboolean
getTime(guidodate date, guidosegment time, java.awt.Rectangle r)
Give a relation by date
-
-
-
Method Detail
-
get
public boolean get(int index, guidosegment time, java.awt.Rectangle r)
Give a relation by index- Parameters:
index
- the map indextime
- 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 datetime
- 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 coordinatey
- the point y coordinatetime
- 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
-
-