类 HeadingEvent

所有已实现的接口:
Serializable

public class HeadingEvent extends ProviderEvent
HeadingProvider event, reports the current magnetic/true heading of vessel in degrees.
作者:
Kimmo Tuukkanen
另请参阅:
  • 构造器详细资料

    • HeadingEvent

      public HeadingEvent(Object source, HeadingSentence s)
      Creates a new heading event.
      参数:
      source - The object that sends the event.
      s - HeadingSentence that triggered the event.
  • 方法详细资料

    • getHeading

      public double getHeading()
      Returns the current heading.
      返回:
      Heading in degrees.
    • isTrue

      public boolean isTrue()
      Tells if the heading is relative to true or magnetic north.
      返回:
      true if true heading, otherwise false (magnetic).
    • toString

      public String toString()
      覆盖:
      toString 在类中 EventObject