org.placelab.util.swt
Class GlyphBeacon

java.lang.Object
  extended byorg.placelab.util.swt.Glyph
      extended byorg.placelab.util.swt.GlyphBeacon
Direct Known Subclasses:
BeaconPlace

public class GlyphBeacon
extends Glyph


Field Summary
 
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
GlyphBeacon(GlyphComposite parent, int style, int x, int y)
           
GlyphBeacon(GlyphHolder holder, int style, int x, int y)
           
 
Method Summary
protected  org.eclipse.swt.graphics.Rectangle getBoundsImpl()
           
 org.eclipse.swt.graphics.Point getCenter()
           
static boolean getShowBeacons()
           
static boolean getShowSignalStrength()
           
protected  void paintImpl(org.eclipse.swt.events.PaintEvent e, GlyphGC gc)
          Implement this if you don't want to worry about AffineTransforms.
protected  boolean pointInsideImpl(int x, int y)
          Return if the point is inside your glyph without the AffineTransform applied
 void setDefaultColor(org.eclipse.swt.graphics.Color aColor)
           
 void setName(java.lang.String humanReadableName)
           
 void setRadius(int _radius)
           
 void setSeen(boolean s, int signalStrength)
           
 void setShapeSquare()
           
static void setShowBeacons(boolean b)
           
static void setShowSignalStrength(boolean b)
           
 org.eclipse.swt.graphics.Point textExtent(java.lang.String string)
           
 
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, paint, 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
 

Constructor Detail

GlyphBeacon

public GlyphBeacon(GlyphComposite parent,
                   int style,
                   int x,
                   int y)

GlyphBeacon

public GlyphBeacon(GlyphHolder holder,
                   int style,
                   int x,
                   int y)
Method Detail

setName

public void setName(java.lang.String humanReadableName)

setRadius

public void setRadius(int _radius)

setShowBeacons

public static void setShowBeacons(boolean b)

getShowBeacons

public static boolean getShowBeacons()

setSeen

public void setSeen(boolean s,
                    int signalStrength)

getShowSignalStrength

public static boolean getShowSignalStrength()

setShowSignalStrength

public static void setShowSignalStrength(boolean b)

getCenter

public org.eclipse.swt.graphics.Point getCenter()

setDefaultColor

public void setDefaultColor(org.eclipse.swt.graphics.Color aColor)

paintImpl

protected void paintImpl(org.eclipse.swt.events.PaintEvent e,
                         GlyphGC gc)
Description copied from class: Glyph
Implement this if you don't want to worry about AffineTransforms. Your graphics will be rasterized and have an AffineTransform applied to them

Overrides:
paintImpl in class Glyph

textExtent

public org.eclipse.swt.graphics.Point textExtent(java.lang.String string)

getBoundsImpl

protected org.eclipse.swt.graphics.Rectangle getBoundsImpl()
Specified by:
getBoundsImpl in class Glyph
Returns:
your bounds without having the AffineTransform applied to them

setShapeSquare

public void setShapeSquare()

pointInsideImpl

protected boolean pointInsideImpl(int x,
                                  int y)
Description copied from class: Glyph
Return if the point is inside your glyph without the AffineTransform applied

Specified by:
pointInsideImpl in class Glyph