org.placelab.util.swt
Class GlyphLine

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

public class GlyphLine
extends Glyph


Field Summary
 
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
GlyphLine(GlyphHolder holder, int style, org.eclipse.swt.graphics.Point start, org.eclipse.swt.graphics.Point end)
           
GlyphLine(GlyphHolder holder, int style, org.eclipse.swt.graphics.Point start, org.eclipse.swt.graphics.Point end, org.eclipse.swt.graphics.Color color, int thickness)
           
 
Method Summary
protected  org.eclipse.swt.graphics.Rectangle getBoundsImpl()
           
 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 x1, int y1, int x2, int y2)
           
 void set(org.eclipse.swt.graphics.Point start, org.eclipse.swt.graphics.Point end)
           
 void setColor(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
 

Constructor Detail

GlyphLine

public GlyphLine(GlyphHolder holder,
                 int style,
                 org.eclipse.swt.graphics.Point start,
                 org.eclipse.swt.graphics.Point end)

GlyphLine

public GlyphLine(GlyphHolder holder,
                 int style,
                 org.eclipse.swt.graphics.Point start,
                 org.eclipse.swt.graphics.Point end,
                 org.eclipse.swt.graphics.Color color,
                 int thickness)
Method Detail

set

public void set(int x1,
                int y1,
                int x2,
                int y2)

set

public void set(org.eclipse.swt.graphics.Point start,
                org.eclipse.swt.graphics.Point end)

setColor

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

setThickness

public void setThickness(int t)

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

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