org.placelab.util.swt
Class GlyphLabel
java.lang.Object
org.placelab.util.swt.Glyph
org.placelab.util.swt.GlyphLabel
- Direct Known Subclasses:
- TextInfoGlyph
- public class GlyphLabel
- 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 |
|
Method Summary |
org.eclipse.swt.graphics.Rectangle |
getBoundsImpl()
|
org.eclipse.swt.graphics.Color |
getForeground()
|
void |
paintImpl(org.eclipse.swt.events.PaintEvent e,
GlyphGC gc)
Implement this if you don't want to worry about AffineTransforms. |
boolean |
pointInsideImpl(int x,
int y)
Return if the point is inside your glyph without the AffineTransform applied |
void |
setBackground(org.eclipse.swt.graphics.Color c)
|
void |
setFont(org.eclipse.swt.graphics.Font font)
|
void |
setForeground(org.eclipse.swt.graphics.Color c)
|
void |
setLocation(int x,
int y)
|
void |
setText(java.lang.String text)
|
void |
setText(java.lang.String text,
boolean wrap)
|
void |
setWidth(int maxWidth)
|
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 |
GlyphLabel
public GlyphLabel(GlyphComposite parent,
int style)
GlyphLabel
public GlyphLabel(GlyphHolder holder,
int style)
textExtent
public org.eclipse.swt.graphics.Point textExtent(java.lang.String string)
setFont
public void setFont(org.eclipse.swt.graphics.Font font)
setWidth
public void setWidth(int maxWidth)
setForeground
public void setForeground(org.eclipse.swt.graphics.Color c)
getForeground
public org.eclipse.swt.graphics.Color getForeground()
setBackground
public void setBackground(org.eclipse.swt.graphics.Color c)
setLocation
public void setLocation(int x,
int y)
setText
public void setText(java.lang.String text)
setText
public void setText(java.lang.String text,
boolean wrap)
paintImpl
public 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
getBoundsImpl
public org.eclipse.swt.graphics.Rectangle getBoundsImpl()
- Specified by:
getBoundsImpl in class Glyph
- Returns:
- your bounds without having the AffineTransform applied to them
pointInsideImpl
public 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