Package guidoengine
Class guidopianoroll
- java.lang.Object
-
- guidoengine.guidopianorollbase
-
- guidoengine.guidopianoroll
-
public final class guidopianoroll extends guidopianorollbase
A class to manipulate pianoroll. Add extended API to draw score on a bitmap with a native device and draw the bitmap in a java.awt.Graphics object.
-
-
Field Summary
-
Fields inherited from class guidoengine.guidopianorollbase
kALine, kASharpLine, kAutoLines, kBLine, kCLine, kCSharpLine, kDLine, kDSharpLine, kELine, kFLine, kFSharpLine, kGLine, kGSharpLine, kNoLine, kSimplePianoRoll, kTrajectoryPianoRoll
-
-
Constructor Summary
Constructors Constructor Description guidopianoroll()
guidopianoroll(long arHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
Draw(java.awt.Graphics g, int top, int left, int w, int h, guidopaint area, java.awt.Color color)
Draws the score.int
Draw(java.awt.Graphics g, int w, int h, guidopaint area)
Draws the score.int
Draw(java.awt.Graphics g, int w, int h, guidopaint area, java.awt.Color color)
Draws the score.int
GetBitmap(int[] dst, int w, int h, guidopaint area, java.awt.Color color)
Draws the score into a bitmap.-
Methods inherited from class guidoengine.guidopianorollbase
AR2PianoRoll, DestroyPianoRoll, EnableAutoVoicesColoration, EnableKeyboard, EnableMeasureBars, GetKeyboardWidth, GetMap, Init, Midi2PianoRoll, setARHandler, SetHtmlColorToVoice, SetLimits, SetPitchLinesDisplayMode, SetRGBColorToVoice
-
-
-
-
Method Detail
-
GetBitmap
public final int GetBitmap(int[] dst, int w, int h, guidopaint area, java.awt.Color color)
Draws the score into a bitmap. Actually, draws the score to an offscreen that is next copied to the destination bitmap.- Parameters:
dst
- the destination bitmap ARGB arrayw
- the bitmap widthh
- the bitmap heightarea
- clipping descriptioncolor
- the color used to draw the score- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
Draw
public int Draw(java.awt.Graphics g, int w, int h, guidopaint area)
Draws the score. Drawing the score should be typically called from the paint method of a Canvas.- Parameters:
g
- a Graphicsw
- the desired drawing widthh
- the desired drawing heigtharea
- clipping description- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
Draw
public int Draw(java.awt.Graphics g, int w, int h, guidopaint area, java.awt.Color color)
Draws the score. Drawing the score should be typically called from the paint method of a Canvas.- Parameters:
g
- a Graphicsw
- the desired drawing widthh
- the desired drawing heigtharea
- clipping descriptioncolor
- the color used to draw the score- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
Draw
public int Draw(java.awt.Graphics g, int top, int left, int w, int h, guidopaint area, java.awt.Color color)
Draws the score. Drawing the score should be typically called from the paint method of a Canvas.- Parameters:
g
- a Graphicstop
- the top coordinate to begin to draw the imageleft
- the left coordinate to begin to draw the imagew
- the desired drawing widthh
- the desired drawing heightarea
- clipping descriptioncolor
- the color used to draw the score- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
-