Package guidoengine
Class guidoscoremapbase
- java.lang.Object
-
- guidoengine.guidoscoremapbase
-
- Direct Known Subclasses:
guidoscoremap
public class guidoscoremapbase extends java.lang.Object
A Guido score map.
A guido score map describes the relations between the time and graphic space. It is typically used as argument of the guidscore extended mappings methods.
-
-
Field Summary
Fields Modifier and Type Field Description static int
kGuidoBar
static int
kGuidoEvent
static int
kGuidoPage
static int
kGuidoStaff
static int
kGuidoSystem
static int
kGuidoSystemSlice
-
Constructor Summary
Constructors Constructor Description guidoscoremapbase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected void
finalize()
boolean
get(int index, guidosegment time, guidorect r)
Give a relation by indexboolean
getPoint(float x, float y, guidosegment time, guidorect r)
Give a relation by pointboolean
getTime(guidodate date, guidosegment time, guidorect r)
Give a relation by dateprotected static void
Init()
Internal jni initialization method.int
size()
Give the map size
-
-
-
Field Detail
-
kGuidoPage
public static final int kGuidoPage
- See Also:
- Constant Field Values
-
kGuidoSystem
public static final int kGuidoSystem
- See Also:
- Constant Field Values
-
kGuidoSystemSlice
public static final int kGuidoSystemSlice
- See Also:
- Constant Field Values
-
kGuidoStaff
public static final int kGuidoStaff
- See Also:
- Constant Field Values
-
kGuidoBar
public static final int kGuidoBar
- See Also:
- Constant Field Values
-
kGuidoEvent
public static final int kGuidoEvent
- See Also:
- Constant Field Values
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
dispose
public void dispose()
-
size
public final int size()
Give the map size- Returns:
- the map size
-
get
public final boolean get(int index, guidosegment time, guidorect 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 final boolean getTime(guidodate date, guidosegment time, guidorect 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 final boolean getPoint(float x, float y, guidosegment time, guidorect 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
-
Init
protected static void Init()
Internal jni initialization method. Automatically called at package init.
-
-