Class BasicPlayerEvent


  • public class BasicPlayerEvent
    extends java.lang.Object
    This class implements player events.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicPlayerEvent​(java.lang.Object source, int code, int position, double value, java.lang.Object desc)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      Return code of the event triggered.
      java.lang.Object getDescription()
      Return description.
      int getPosition()
      Return position in the stream when event occured.
      java.lang.Object getSource()  
      double getValue()
      Return value related to event triggered.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BasicPlayerEvent

        public BasicPlayerEvent​(java.lang.Object source,
                                int code,
                                int position,
                                double value,
                                java.lang.Object desc)
        Constructor
        Parameters:
        source - of the event
        code - of the envent
        position - optional stream position
        value - opitional control value
        desc - optional description
    • Method Detail

      • getCode

        public int getCode()
        Return code of the event triggered.
        Returns:
      • getPosition

        public int getPosition()
        Return position in the stream when event occured.
        Returns:
      • getValue

        public double getValue()
        Return value related to event triggered.
        Returns:
      • getDescription

        public java.lang.Object getDescription()
        Return description.
        Returns:
      • getSource

        public java.lang.Object getSource()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object