public class PlayedEventLayout extends DefaultEventLayout
| Constructor and Description |
|---|
PlayedEventLayout(Dimension componentDimension)
Constructs a new
PlayedEventLayout with the initial specified
component layout dimensions |
| Modifier and Type | Method and Description |
|---|---|
void |
layoutNote(long currentTime,
EventPair<NoteEvent> event,
Rectangle rect)
Lays out the coordinates for drawing the specified note event.
|
getHighestVisibleTime, getLowestVisibleTime, layoutPedal, setComponentDimensionspublic PlayedEventLayout(Dimension componentDimension)
PlayedEventLayout with the initial specified
component layout dimensionscomponentDimension - the inital component layout dimensionspublic void layoutNote(long currentTime, EventPair<NoteEvent> event, Rectangle rect)
EventLayoutlayoutNote in interface EventLayoutlayoutNote in class DefaultEventLayoutcurrentTime - the current song time in microsecondsevent - the note event pair to layoutrect - output parameter storing the resulting on screen location of
the event.Copyright © 2015 Kreatious LLC. All rights reserved.