|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.gui.MusicCursorPosition
Field Summary | |
private boolean |
beat
To know if the object is a beat or a bar |
private java.awt.Component |
guiComponent
This object holds information about the GUI object where the MusciCursror will be draw. |
private int |
numBeat
On which beat is the cursor located |
private int |
numMeasure
On which measure is the cursor located |
private java.awt.Point |
point
The point where this measure and beat is located |
private java.lang.Object |
songObject
This object holds information about the current beat or bar |
private int |
width
The graphical width of the Object |
Constructor Summary | |
MusicCursorPosition()
Creates en new MusicCursorPosition at measure 1 and beat 1 |
Method Summary | |
java.awt.Component |
getGuiComponent()
|
int |
getNumBeat()
|
int |
getNumMeasure()
|
java.awt.Point |
getPoint()
|
java.lang.Object |
getSongObject()
|
int |
getWidth()
|
boolean |
isBeat()
|
boolean |
isMTP()
|
void |
setGuiComponent(java.awt.Component aGuiComponent)
|
void |
setNumBeat(int numBeat)
|
void |
setNumMeasure(int numMeasure)
|
void |
setPoint(java.awt.Point point)
|
boolean |
setSongObject(java.lang.Object obj)
|
void |
setWidth(int width)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int numMeasure
private int numBeat
private java.awt.Point point
private java.lang.Object songObject
private java.awt.Component guiComponent
private boolean beat
private int width
Constructor Detail |
public MusicCursorPosition()
Method Detail |
public int getNumMeasure()
public void setNumBeat(int numBeat)
numBeat
- The numBeat to set.public void setNumMeasure(int numMeasure)
numMeasure
- The numMeasure to set.public int getNumBeat()
public java.lang.String toString()
public boolean setSongObject(java.lang.Object obj)
obj
- The Bar or Beat you want the cursor to be associated withpublic boolean isBeat()
public boolean isMTP()
public void setPoint(java.awt.Point point)
point
- The point to set.public java.awt.Point getPoint()
public void setWidth(int width)
width
- The width to set.public int getWidth()
public java.lang.Object getSongObject()
public void setGuiComponent(java.awt.Component aGuiComponent)
aGuiComponent
- The guiObject to set.public java.awt.Component getGuiComponent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |