public interface EventLayout
Modifier and Type | Method and Description |
---|---|
long |
getHighestVisibleTime(long currentTime)
Calculates the highest visible time that can be laid out and still fit
within the current layout.
|
long |
getLowestVisibleTime(long currentTime)
Calculates the lowest visible time that can be laid out and still fit
within the current layout.
|
void |
layoutNote(long currentTime,
EventPair<NoteEvent> event,
Rectangle rect)
Lays out the coordinates for drawing the specified note event.
|
void |
layoutPedal(long currentTime,
EventPair<PedalEvent> event,
Rectangle rect)
Lays out the coordinates for drawing the specified pedal event.
|
void |
setComponentDimensions(Dimension dimension)
Resizes the layout to fit the specified component dimensions.
|
void layoutNote(long currentTime, EventPair<NoteEvent> event, Rectangle rect)
currentTime
- the current song time in microsecondsevent
- the note event pair to layoutrect
- output parameter storing the resulting on screen location of
the event.void layoutPedal(long currentTime, EventPair<PedalEvent> event, Rectangle rect)
currentTime
- the current song time in microsecondsevent
- the pedal event pair to layoutrect
- output parameter storing the resulting on screen location of
the event.void setComponentDimensions(Dimension dimension)
dimension
- the new component layout dimensionslong getLowestVisibleTime(long currentTime)
currentTime
- the current song time in microsecondslong getHighestVisibleTime(long currentTime)
currentTime
- the current song time in microsecondsCopyright © 2015 Kreatious LLC. All rights reserved.