org.placelab.stumbler.gui
Class BeaconPlace

java.lang.Object
  extended byorg.placelab.util.swt.Glyph
      extended byorg.placelab.util.swt.GlyphBeacon
          extended byorg.placelab.stumbler.gui.BeaconPlace

public class BeaconPlace
extends GlyphBeacon

A BeaconPlace is a special subclass of a PlaceBacking so that the user can toggle whether they want to see current APs, old aps,


Field Summary
 boolean active
           
 BeaconHistory beacon
           
 Mapper mapper
           
 MapView mapView
           
protected static int radius
           
static boolean showBeacons2
           
 TextInfoGlyph textInfo
           
 
Fields inherited from class org.placelab.util.swt.Glyph
ANCHOR_C, ANCHOR_E, ANCHOR_N, ANCHOR_NE, ANCHOR_NW, ANCHOR_S, ANCHOR_SE, ANCHOR_SW, ANCHOR_W, DISPOSED, IGNORE_TRANSPARENCY, MOUSE_EVENTS, needsTransformRedraw, NONE, transform, transformedImage, transparency, VISIBLE, zoom
 
Constructor Summary
BeaconPlace(MapView parent, BeaconHistory beacon, Mapper mapper, boolean active)
           
 
Method Summary
 boolean getActive()
           
protected  org.eclipse.swt.graphics.Color getColor()
           
protected  java.lang.String getName()
           
static boolean getShowBeacons()
           
protected  void moused(org.eclipse.swt.events.MouseEvent e)
           
 void paint(org.eclipse.swt.events.PaintEvent e, GlyphGC gc)
          If you want to do your own drawing for the AffineTransform (for instance, your glyph is a vector graphic thats easily drawn transformed, override this and handle for the transform yourself).
 void setActive(boolean flag)
           
static void setShowBeacons(boolean show)
           
 void updateLocation()
          Tells the BeaconPlace that the BeaconHistory that it owns has had its highest rssi updated, and therefore it should update where it draws
 
Methods inherited from class org.placelab.util.swt.GlyphBeacon
getBoundsImpl, getCenter, getShowSignalStrength, paintImpl, pointInsideImpl, setDefaultColor, setName, setRadius, setSeen, setShapeSquare, setShowSignalStrength, textExtent
 
Methods inherited from class org.placelab.util.swt.Glyph
addListener, addMouseListener, addPaintListener, areMouseEventsEnabled, dispose, enableMouseEvents, enter, getBounds, getCloseEnough, getFlag, getHolder, getLocation, getMaskColor, getNeedsTransformRedraw, getOriginalLocation, getParent, getTransform, getTransparency, getZoom, handleMouseEvent, isDisposed, isVisible, leave, moveAbove, moveBelow, notifyListeners, pickGlyphAt, pointInside, pointInside, redraw, removeListener, resetFlag, setCloseEnough, setCursor, setFlag, setLocation, setNeedsTransformRedraw, setTransform, setTransparency, setVisible, setZoom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

protected static int radius

beacon

public BeaconHistory beacon

active

public boolean active

mapper

public Mapper mapper

mapView

public MapView mapView

showBeacons2

public static boolean showBeacons2

textInfo

public TextInfoGlyph textInfo
Constructor Detail

BeaconPlace

public BeaconPlace(MapView parent,
                   BeaconHistory beacon,
                   Mapper mapper,
                   boolean active)
Method Detail

getShowBeacons

public static boolean getShowBeacons()

setShowBeacons

public static void setShowBeacons(boolean show)

updateLocation

public void updateLocation()
Tells the BeaconPlace that the BeaconHistory that it owns has had its highest rssi updated, and therefore it should update where it draws


getActive

public boolean getActive()

setActive

public void setActive(boolean flag)

paint

public void paint(org.eclipse.swt.events.PaintEvent e,
                  GlyphGC gc)
Description copied from class: Glyph
If you want to do your own drawing for the AffineTransform (for instance, your glyph is a vector graphic thats easily drawn transformed, override this and handle for the transform yourself).

Overrides:
paint in class Glyph

getColor

protected org.eclipse.swt.graphics.Color getColor()

getName

protected java.lang.String getName()

moused

protected void moused(org.eclipse.swt.events.MouseEvent e)