org.placelab.util.swt
Class GlyphRectangle
java.lang.Object
org.placelab.util.swt.Glyph
org.placelab.util.swt.GlyphRectangle
- public class GlyphRectangle
- 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 |
get()
|
protected org.eclipse.swt.graphics.Rectangle |
getBoundsImpl()
|
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 |
set(int x,
int y,
int width,
int height)
|
void |
set(org.eclipse.swt.graphics.Rectangle r)
|
void |
setBackground(org.eclipse.swt.graphics.Color c)
|
void |
setForeground(org.eclipse.swt.graphics.Color c)
|
void |
setThickness(int t)
|
| 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 |
GlyphRectangle
public GlyphRectangle(GlyphComposite parent,
int style)
GlyphRectangle
public GlyphRectangle(GlyphHolder holder,
int style)
set
public void set(int x,
int y,
int width,
int height)
set
public void set(org.eclipse.swt.graphics.Rectangle r)
setForeground
public void setForeground(org.eclipse.swt.graphics.Color c)
setBackground
public void setBackground(org.eclipse.swt.graphics.Color c)
setThickness
public void setThickness(int t)
get
public org.eclipse.swt.graphics.Rectangle get()
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
getBoundsImpl
protected org.eclipse.swt.graphics.Rectangle getBoundsImpl()
- Specified by:
getBoundsImpl in class Glyph
- Returns:
- your bounds without having the AffineTransform applied to them
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