public class LineEvent extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
LineEvent.Type
This class represents the kinds of state changes that can occur
to a Line.
|
source
Constructor and Description |
---|
LineEvent(Line line,
LineEvent.Type type,
long pos)
Create a new LineEvent with the indicated line, type, and frame position.
|
Modifier and Type | Method and Description |
---|---|
long |
getFramePosition()
Return the frame position associated with this event.
|
Line |
getLine()
Return the Line associated with this event.
|
LineEvent.Type |
getType()
Return the Type associated with this event.
|
String |
toString()
Return a description of this event.
|
getSource
public LineEvent(Line line, LineEvent.Type type, long pos)
line
- the linetype
- the type of the eventpos
- the frame positionpublic final long getFramePosition()
public final LineEvent.Type getType()
public String toString()
toString
in class EventObject
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)