radardisplay
Class RadarDisplay
java.lang.Object
Layout.PamFramePlots
userDisplay.UserFramePlots
radardisplay.RadarDisplay
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.InternalFrameListener, PamObserver
public class RadarDisplay
- extends UserFramePlots
- implements PamObserver
| Methods inherited from class Layout.PamFramePlots |
getAxisPanel, getCopyMenuItem, getEastPanel, getFrame, getNorthPanel, getPlotPanel, getSouthPanel, getWestPanel, repaint, setAxisPanel, setEastPanel, setFrame, setNorthPanel, setPlotPanel, setSouthPanel, setWestPanel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
radarParameters
private RadarParameters radarParameters
radarPlot
private RadarDisplay.RadarPlot radarPlot
radarAxis
private RadarDisplay.RadarAxis radarAxis
radialAxis
private PamAxis radialAxis
popupListener
private java.awt.event.MouseAdapter popupListener
radarProjector
private RadarProjector radarProjector
detectorDataBlocks
private java.util.ArrayList<PamDataBlock> detectorDataBlocks
masterMilliseconds
private long masterMilliseconds
masterSampleNumber
private long masterSampleNumber
timer
javax.swing.Timer timer
keyPanel
private KeyPanel keyPanel
detectorMenu
javax.swing.JPopupMenu detectorMenu
gpsDataBlock
private PamDataBlock<GpsDataUnit> gpsDataBlock
lastGpsDataUnit
private GpsDataUnit lastGpsDataUnit
RadarDisplay
public RadarDisplay(UserDisplayControl userDisplayControl,
RadarParameters radarParameters)
getObserverObject
public PamObserver getObserverObject()
- Specified by:
getObserverObject in interface PamObserver
- Returns:
- the actual observer. In most cases concrete
classes will just return 'this' in response. The exception
is the Threaded observer, which will return the single thread
observer.
getName
public java.lang.String getName()
- Overrides:
getName in class UserFramePlots
getRadarParameters
public RadarParameters getRadarParameters()
getFrameType
public int getFrameType()
- Specified by:
getFrameType in class UserFramePlots
notifyModelChanged
public void notifyModelChanged(int changeType)
- Specified by:
notifyModelChanged in class UserFramePlots
getArcX
int getArcX(java.awt.Point centre,
int radius)
getArcY
int getArcY(java.awt.Point centre,
int radius)
getArcWidth
int getArcWidth(java.awt.Point centre,
int radius)
getArcHeight
int getArcHeight(java.awt.Point centre,
int radius)
getAngleStart
int getAngleStart()
getAngleSweep
int getAngleSweep()
getPlotWidth
int getPlotWidth()
getPlotHeight
int getPlotHeight()
getWestSpace
int getWestSpace()
getEastSpace
int getEastSpace()
getNorthSpace
int getNorthSpace()
getSouthSpace
int getSouthSpace()
getCentre
java.awt.Point getCentre()
getRadius
int getRadius()
getPlotDetectorMenu
javax.swing.JPopupMenu getPlotDetectorMenu()
newSettings
public void newSettings()
repaintAll
void repaintAll()
subscribeDetectors
private void subscribeDetectors()
createKeyPanel
private void createKeyPanel()
getObserverName
public java.lang.String getObserverName()
- Specified by:
getObserverName in interface PamObserver
getRequiredDataHistory
public long getRequiredDataHistory(PamObservable o,
java.lang.Object arg)
- Specified by:
getRequiredDataHistory in interface PamObserver
- Parameters:
o - PamObservable class requiring the dataarg - optional argument from PamObservable
- Returns:
- time in milliseconds requried by data held in PamObservable
noteNewSettings
public void noteNewSettings()
- Specified by:
noteNewSettings in interface PamObserver
removeObservable
public void removeObservable(PamObservable o)
- Description copied from interface:
PamObserver
- called when an Observable (PamDataBlock) is removed from the system
- Specified by:
removeObservable in interface PamObserver
setSampleRate
public void setSampleRate(float sampleRate,
boolean notify)
- Description copied from interface:
PamObserver
- New sample rate
- Specified by:
setSampleRate in interface PamObserver
notify - Notify other PamObservers and PamObservables in the chain.
masterClockUpdate
public void masterClockUpdate(long milliSeconds,
long sampleNumber)
- Specified by:
masterClockUpdate in interface PamObserver
update
public void update(PamObservable o,
PamDataUnit pamDataUnit)
- Description copied from interface:
PamObserver
- Informs the PamObserver that new data have been added to the Observable
class
- Specified by:
update in interface PamObserver
- Parameters:
o - Reference to the Observable (a PamDataBlock)pamDataUnit - Reference to the new PamDataUnit
getLastGpsDataUnit
public GpsDataUnit getLastGpsDataUnit()
setLastGpsDataUnit
public void setLastGpsDataUnit(GpsDataUnit lastGpsDataUnit)