org.placelab.demo.apviewer
Class BeaconTableController
java.lang.Object
org.placelab.demo.apviewer.BeaconTableController
- Direct Known Subclasses:
- APViewerTableController, BluetoothTableController, GSMTableController, WiFiTableController
- public class BeaconTableController
- extends java.lang.Object
A BeaconTableController is displays a table where the history of beacons seen is shown.
In a departure from the old style, there is now a single table where active readings
are shown in a different colour at the top.
The PlacelabStumblerGUI will offer the
BeaconTableController measurements for the StumblerSpotter it is displaying info
for every update, and the BeaconTableController will collate that data and display
it in the tables that it manages.
|
Constructor Summary |
BeaconTableController(java.lang.String name,
org.eclipse.swt.graphics.Font labelFont,
org.eclipse.swt.graphics.Font tableFont,
org.eclipse.swt.widgets.Composite parent,
Mapper mapper,
long activeThresholdTime)
|
BeaconTableController(java.lang.String name,
org.eclipse.swt.graphics.Font labelFont,
org.eclipse.swt.graphics.Font tableFont,
org.eclipse.swt.widgets.Composite parent,
Mapper mapper,
long activeThresholdTime,
boolean shouldShowGPS)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
public org.eclipse.swt.widgets.Label label
table
public org.eclipse.swt.custom.TableTree table
cols
public org.eclipse.swt.widgets.TableColumn[] cols
parent
public org.eclipse.swt.widgets.Composite parent
name
public java.lang.String name
labelFont
public org.eclipse.swt.graphics.Font labelFont
tableFont
public org.eclipse.swt.graphics.Font tableFont
mapper
public Mapper mapper
body
public org.eclipse.swt.widgets.Composite body
activeIcon
public org.eclipse.swt.graphics.Image activeIcon
inactiveIcon
public org.eclipse.swt.graphics.Image inactiveIcon
viewer
public org.eclipse.jface.viewers.TableTreeViewer viewer
showGPS
public boolean showGPS
active
public java.util.Hashtable active
history
public java.util.Hashtable history
expanded
public HashtableSet expanded
seenLabel
public org.eclipse.swt.widgets.Label seenLabel
activeThresholdTime
public long activeThresholdTime
numNew
public int numNew
BeaconTableController
public BeaconTableController(java.lang.String name,
org.eclipse.swt.graphics.Font labelFont,
org.eclipse.swt.graphics.Font tableFont,
org.eclipse.swt.widgets.Composite parent,
Mapper mapper,
long activeThresholdTime)
BeaconTableController
public BeaconTableController(java.lang.String name,
org.eclipse.swt.graphics.Font labelFont,
org.eclipse.swt.graphics.Font tableFont,
org.eclipse.swt.widgets.Composite parent,
Mapper mapper,
long activeThresholdTime,
boolean shouldShowGPS)
build
protected void build()
buildColumns
protected void buildColumns()
buildColumns
protected void buildColumns(java.lang.String[] names)
expandHistoryPackage
public void expandHistoryPackage(org.eclipse.swt.custom.TableTreeItem item)
setHistoryTableItemText
protected void setHistoryTableItemText(org.eclipse.swt.custom.TableTreeItem item,
BeaconHistory.BeaconHistoryHelper h)
addMeasurement
public void addMeasurement(BeaconMeasurement meas,
GPSMeasurement gps)
addReadingToHistory
protected void addReadingToHistory(BeaconHistory.BeaconHistoryHelper reading)
humanReadableTime
public static java.lang.String humanReadableTime(long timestamp)
updateHistoryTable
protected void updateHistoryTable()
getActiveIcon
protected org.eclipse.swt.graphics.Image getActiveIcon()
getInactiveIcon
protected org.eclipse.swt.graphics.Image getInactiveIcon()
updateSeenLabel
protected void updateSeenLabel()
minimumBeaconClass
protected java.lang.Class minimumBeaconClass()