com.partnersoft.gui.forms
Class FormDirectionField

java.lang.Object
  extended by com.partnersoft.gui.forms.AbstractFormField<XyDirection>
      extended by com.partnersoft.gui.forms.FormDirectionField
All Implemented Interfaces:
FormField<XyDirection>

public class FormDirectionField
extends AbstractFormField<XyDirection>

A FormField to specify angular direction. Note that there are various ways to set the direction, but getValue() will return the forward bearing (bearing as measured from the reference point to the point being surveyed). Use getForwardDirection(), getBackwardDirection(), or getDeflection() to get different varieties or for more clarity.

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Field Summary
 
Fields inherited from class com.partnersoft.gui.forms.AbstractFormField
gui
 
Constructor Summary
FormDirectionField()
           
 
Method Summary
 XyDirection getBackspanDirection()
           
 javax.swing.JPanel getFormPanel()
           
 XyDirection getValue()
          Returns the current value for this field.
 void setBackspanDirection(XyDirection newDirection)
           
 void setValue(XyDirection newValue)
          Sets the current value for this field.
 
Methods inherited from class com.partnersoft.gui.forms.AbstractFormField
addFieldListener, doAction, fireActionRequested, fireValueChanged, getGui, isDisabled, removeFieldListener, setDisabled, setToolTipText, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormDirectionField

public FormDirectionField()
Method Detail

getValue

public XyDirection getValue()
Description copied from interface: FormField
Returns the current value for this field.


setValue

public void setValue(XyDirection newValue)
Description copied from interface: FormField
Sets the current value for this field.


setBackspanDirection

public void setBackspanDirection(XyDirection newDirection)

getBackspanDirection

public XyDirection getBackspanDirection()

getFormPanel

public javax.swing.JPanel getFormPanel()