faa.tg.atcview.displayobjects
Class IlsApproachDisplay

java.lang.Object
  extended by faa.tg.atcview.displayobjects.IlsApproachDisplay
All Implemented Interfaces:
DisplayAble<ColorAndNameDisplaySettings>

public class IlsApproachDisplay
extends java.lang.Object
implements DisplayAble<ColorAndNameDisplaySettings>

  This class defines a displayable ILS approach.
  
See the source: IlsApproachDisplay.java

Version:
$Id: IlsApproachDisplay.java,v 1.13 2009/01/06 19:34:21 lonnies Exp $
Author:
Sam Fullerton, Titan

Nested Class Summary
 
Nested classes/interfaces inherited from interface faa.tg.atcview.displayobjects.DisplayAble
DisplayAble.DisplayObject<S extends DisplaySettings<S>>
 
Field Summary
private  AirportRwyID aptRwyID
           
private  java.awt.geom.QuadCurve2D[] curves
           
static java.lang.String CVS_VERSION_ID
          CVS Version
private  ILS ils
           
private  java.awt.geom.Line2D line
           
private  java.awt.Rectangle myBounds
           
private  Position outerMarker
           
private  ColorAndNameDisplaySettings settings
           
private  Position thresh
           
 
Constructor Summary
IlsApproachDisplay(ILS ils, Runway runway)
          Constructor
 
Method Summary
 void clearDisplayBounds()
          set bounds of the display to null, this means that the next time getDisplayBounds is called the bounds will be calculated.
 boolean equals(java.lang.Object obj)
          determine whether this display is equal to a given object required by the DisplayAble interface
 java.awt.Rectangle getDisplayBounds(DisplayContext displayContext)
          returns the bounds of this display required by the DisplayAble interface
private  java.awt.geom.Line2D getLine(DisplayContext displayContext)
           
 java.lang.String getName()
          returns the unique name of this display required by the DisplayAble interface
private  java.awt.geom.QuadCurve2D[] getOuterMarkerShape(DisplayContext displayContext)
           
 ColorAndNameDisplaySettings getSettings()
          return current settings
 DisplayableType getType()
           
 void paint(java.awt.Graphics2D graphic, DisplayContext displayContext)
          paint this display required by the DisplayAble interface
 void setSettings(ColorAndNameDisplaySettings settings)
          set settings to use
 java.lang.String toString()
          returns a String representation of this object required by the DisplayAble interface
 
Methods inherited from class java.lang.Object
clone, 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

ils

private ILS ils

aptRwyID

private AirportRwyID aptRwyID

outerMarker

private Position outerMarker

thresh

private Position thresh

myBounds

private java.awt.Rectangle myBounds

line

private java.awt.geom.Line2D line

curves

private java.awt.geom.QuadCurve2D[] curves

settings

private ColorAndNameDisplaySettings settings
Constructor Detail

IlsApproachDisplay

public IlsApproachDisplay(ILS ils,
                          Runway runway)
Constructor

Parameters:
ils - - the ILS that this display is for
runway - - the runway the ils is for
Method Detail

getType

public DisplayableType getType()
Specified by:
getType in interface DisplayAble<ColorAndNameDisplaySettings>

clearDisplayBounds

public void clearDisplayBounds()
set bounds of the display to null, this means that the next time getDisplayBounds is called the bounds will be calculated. required by the DisplayAble interface

Specified by:
clearDisplayBounds in interface DisplayAble<ColorAndNameDisplaySettings>

getDisplayBounds

public java.awt.Rectangle getDisplayBounds(DisplayContext displayContext)
returns the bounds of this display required by the DisplayAble interface

Specified by:
getDisplayBounds in interface DisplayAble<ColorAndNameDisplaySettings>
Parameters:
fontMetrics - - information about the font used
displayContext - - information about the display

paint

public void paint(java.awt.Graphics2D graphic,
                  DisplayContext displayContext)
paint this display required by the DisplayAble interface

Specified by:
paint in interface DisplayAble<ColorAndNameDisplaySettings>
Parameters:
graphic - - used to draw
displayContext - - the display info

getLine

private java.awt.geom.Line2D getLine(DisplayContext displayContext)

getOuterMarkerShape

private java.awt.geom.QuadCurve2D[] getOuterMarkerShape(DisplayContext displayContext)

equals

public boolean equals(java.lang.Object obj)
determine whether this display is equal to a given object required by the DisplayAble interface

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
returns a String representation of this object required by the DisplayAble interface

Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
returns the unique name of this display required by the DisplayAble interface

Specified by:
getName in interface DisplayAble<ColorAndNameDisplaySettings>

getSettings

public ColorAndNameDisplaySettings getSettings()
return current settings

Specified by:
getSettings in interface DisplayAble<ColorAndNameDisplaySettings>

setSettings

public void setSettings(ColorAndNameDisplaySettings settings)
set settings to use

Specified by:
setSettings in interface DisplayAble<ColorAndNameDisplaySettings>