类 HeadingEvent
java.lang.Object
java.util.EventObject
net.sf.marineapi.provider.event.ProviderEvent
net.sf.marineapi.provider.event.HeadingEvent
- 所有已实现的接口:
Serializable
HeadingProvider event, reports the current magnetic/true heading of vessel in
degrees.
- 作者:
- Kimmo Tuukkanen
- 另请参阅:
-
字段概要
从类继承的字段 java.util.EventObject
source -
构造器概要
构造器 -
方法概要
从类继承的方法 java.util.EventObject
getSource
-
构造器详细资料
-
HeadingEvent
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
- 覆盖:
toString在类中EventObject
-