org.placelab.util.swt
Class GlyphPoly

java.lang.Object
  extended byorg.placelab.util.swt.Glyph
      extended byorg.placelab.util.swt.GlyphPoly

public class GlyphPoly
extends Glyph


Field Summary
protected  org.eclipse.swt.graphics.Color bg
           
protected  org.eclipse.swt.graphics.Rectangle bounding
           
protected  boolean extremaValid
           
protected  org.eclipse.swt.graphics.Color fg
           
protected  int[] pointArray
           
protected  int thickness
           
 
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
GlyphPoly(GlyphComposite parent, int style)
           
GlyphPoly(GlyphHolder holder, int style)
           
 
Method Summary
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[] pointArray)
           
 void setBackground(org.eclipse.swt.graphics.Color c)
           
 void setForeground(org.eclipse.swt.graphics.Color c)
           
 
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
 

Field Detail

bounding

protected org.eclipse.swt.graphics.Rectangle bounding

extremaValid

protected boolean extremaValid

pointArray

protected int[] pointArray

thickness

protected int thickness

fg

protected org.eclipse.swt.graphics.Color fg

bg

protected org.eclipse.swt.graphics.Color bg
Constructor Detail

GlyphPoly

public GlyphPoly(GlyphComposite parent,
                 int style)

GlyphPoly

public GlyphPoly(GlyphHolder holder,
                 int style)
Method Detail

getBoundsImpl

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

set

public void set(int[] pointArray)

setForeground

public void setForeground(org.eclipse.swt.graphics.Color c)

setBackground

public void setBackground(org.eclipse.swt.graphics.Color c)

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

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