org.placelab.demo.mapview
Class TextInfoGlyph
java.lang.Object
org.placelab.util.swt.Glyph
org.placelab.util.swt.GlyphLabel
org.placelab.demo.mapview.TextInfoGlyph
- public class TextInfoGlyph
- extends GlyphLabel
| 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 |
|
Method Summary |
org.eclipse.swt.graphics.Color |
getBackground()
|
org.eclipse.swt.graphics.Rectangle |
getBounds()
|
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 |
setBackground(org.eclipse.swt.graphics.Color bg)
|
void |
setLocation(int x,
int y)
|
void |
setWidth(int maxWidth)
|
| Methods inherited from class org.placelab.util.swt.Glyph |
addListener, addMouseListener, addPaintListener, areMouseEventsEnabled, dispose, enableMouseEvents, enter, 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 |
TextInfoGlyph
public TextInfoGlyph(GlyphComposite parent,
int style)
TextInfoGlyph
public TextInfoGlyph(GlyphHolder holder,
int style)
setWidth
public void setWidth(int maxWidth)
- Overrides:
setWidth in class GlyphLabel
setLocation
public void setLocation(int x,
int y)
- Overrides:
setLocation in class GlyphLabel
setBackground
public void setBackground(org.eclipse.swt.graphics.Color bg)
- Overrides:
setBackground in class GlyphLabel
getBackground
public org.eclipse.swt.graphics.Color getBackground()
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
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds()
- Overrides:
getBounds in class Glyph