org.placelab.util.swt
Class GlyphBeacon
java.lang.Object
org.placelab.util.swt.Glyph
org.placelab.util.swt.GlyphBeacon
- Direct Known Subclasses:
- BeaconPlace
- public class GlyphBeacon
- extends Glyph
| 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 |
| 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 |
GlyphBeacon
public GlyphBeacon(GlyphComposite parent,
int style,
int x,
int y)
GlyphBeacon
public GlyphBeacon(GlyphHolder holder,
int style,
int x,
int y)
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