faa.tg.atcview.displayobjects
Class FixDisplaySettings

java.lang.Object
  extended by faa.tg.atcview.displayobjects.DisplaySettings<FixDisplaySettings>
      extended by faa.tg.atcview.displayobjects.FixDisplaySettings
All Implemented Interfaces:
ColorSetting, DisplayNameSetting, SymbolSetting

public class FixDisplaySettings
extends DisplaySettings<FixDisplaySettings>
implements ColorSetting, SymbolSetting, DisplayNameSetting

  Settings for Fixes contain a Color, a Symbol and
  a boolean to control if the name of the fix is displayed.
  

Version:
$Id: FixDisplaySettings.java,v 1.13 2009/01/13 23:12:33 jimh Exp $
Author:
Lonnie Souder, Engility See the source: FixDisplaySettings.java

Nested Class Summary
 
Nested classes/interfaces inherited from class faa.tg.atcview.displayobjects.DisplaySettings
DisplaySettings.LabelFormat
 
Field Summary
private  java.awt.Color color
           
static java.lang.String CVS_VERSION_ID
          CVS Version
private  boolean displayName
           
private  Symbol symbol
           
 
Fields inherited from class faa.tg.atcview.displayobjects.DisplaySettings
DEFAULT_BACKGROUND, DEFAULT_COLOR
 
Constructor Summary
FixDisplaySettings()
          Constructor
FixDisplaySettings(java.awt.Color color)
          Constructor which takes a color and defaults the symbol to Symbol.DOT and to display the name.
FixDisplaySettings(java.awt.Color color, Symbol symbol, boolean displayName)
          Fully explicit constructor.
FixDisplaySettings(FixDisplaySettings ds)
          Constructor which takes another FixDisplaySettings
 
Method Summary
 void changeColor(java.awt.Color color)
          set color used by specific display only, if you wish to use the global color then set this to null.
 void changeSettings(FixDisplaySettings ds)
          Changes the internal values to match those of the settings being passed in.
 void changeSymbol(Symbol aSymbol)
          set symbol used by specific display, set to null to use global symbol
 FixDisplaySettings cloneSettings()
          Clone these settings.
 FixDisplaySettings defaults()
           
 boolean displayName()
          returns the name displayed by specific display
 void displayName(boolean nameToDisplay)
          Set whether to display the fix's name.
 java.awt.Color getColor()
          returns color used by specific display only
 SettingsPanel<FixDisplaySettings> getSettingsPanel(AtcDisplay atcDisplay)
          Get a SettingsPanel for fixes back, with these settings as the initial values.
 Symbol getSymbol()
          return symbol used by specific display
 java.lang.String toString()
          return a string representation of this object
 Element toXml()
           
 Element toXml(java.lang.String tag)
           
 
Methods inherited from class faa.tg.atcview.displayobjects.DisplaySettings
getConfigurationDialog, getPopupConfigurationDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
CVS Version

See Also:
Constant Field Values

color

private java.awt.Color color

symbol

private Symbol symbol

displayName

private boolean displayName
Constructor Detail

FixDisplaySettings

public FixDisplaySettings()
Constructor


FixDisplaySettings

public FixDisplaySettings(java.awt.Color color)
Constructor which takes a color and defaults the symbol to Symbol.DOT and to display the name.

Parameters:
color - the desired color

FixDisplaySettings

public FixDisplaySettings(java.awt.Color color,
                          Symbol symbol,
                          boolean displayName)
Fully explicit constructor.

Parameters:
color - the desired color
symbol - the desired symbol
displayName - whether to display the fix name

FixDisplaySettings

public FixDisplaySettings(FixDisplaySettings ds)
Constructor which takes another FixDisplaySettings

Parameters:
ds - the settings to copy
Method Detail

changeSettings

public void changeSettings(FixDisplaySettings ds)
Changes the internal values to match those of the settings being passed in.

Specified by:
changeSettings in class DisplaySettings<FixDisplaySettings>
Parameters:
ds - Display settings you wish to copy

getColor

public final java.awt.Color getColor()
returns color used by specific display only

Specified by:
getColor in interface ColorSetting

changeColor

public void changeColor(java.awt.Color color)
set color used by specific display only, if you wish to use the global color then set this to null.

Specified by:
changeColor in interface ColorSetting

getSymbol

public final Symbol getSymbol()
return symbol used by specific display

Specified by:
getSymbol in interface SymbolSetting

changeSymbol

public void changeSymbol(Symbol aSymbol)
set symbol used by specific display, set to null to use global symbol

Specified by:
changeSymbol in interface SymbolSetting

toString

public java.lang.String toString()
return a string representation of this object

Overrides:
toString in class java.lang.Object

displayName

public boolean displayName()
returns the name displayed by specific display

Specified by:
displayName in interface DisplayNameSetting

displayName

public void displayName(boolean nameToDisplay)
Set whether to display the fix's name.

Specified by:
displayName in interface DisplayNameSetting

getSettingsPanel

public SettingsPanel<FixDisplaySettings> getSettingsPanel(AtcDisplay atcDisplay)
Get a SettingsPanel for fixes back, with these settings as the initial values.

Specified by:
getSettingsPanel in class DisplaySettings<FixDisplaySettings>

cloneSettings

public FixDisplaySettings cloneSettings()
Clone these settings.

Specified by:
cloneSettings in class DisplaySettings<FixDisplaySettings>

defaults

public FixDisplaySettings defaults()
Specified by:
defaults in class DisplaySettings<FixDisplaySettings>

toXml

public Element toXml()
Specified by:
toXml in class DisplaySettings<FixDisplaySettings>

toXml

public Element toXml(java.lang.String tag)