org.placelab.util.swt
Class GlyphComposite

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

public class GlyphComposite
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
GlyphComposite(GlyphComposite parent, int style)
           
GlyphComposite(GlyphHolder holder, int style)
           
 
Method Summary
 void dispose()
           
protected  org.eclipse.swt.graphics.Rectangle getBoundsImpl()
           
 Glyph[] getChildren()
           
 GlyphGC getGC()
           
 void moveAbove(Glyph glyph, Glyph aboveWhat)
           
 void moveBelow(Glyph glyph, Glyph belowWhat)
           
protected  void paintImpl(org.eclipse.swt.events.PaintEvent e, GlyphGC gc)
          Implement this if you don't want to worry about AffineTransforms.
 Glyph pickGlyphAt(int x, int y, boolean checkMouseEnabled)
           
protected  boolean pointInsideImpl(int x, int y)
          Return if the point is inside your glyph without the AffineTransform applied
 void setBounds(int x, int y, int width, int height)
           
 void setBounds(org.eclipse.swt.graphics.Rectangle bounds)
           
 void setLocation(int x, int y)
           
 void setLocation(org.eclipse.swt.graphics.Point aLoc)
           
 void setSize(int width, int height)
           
 void setSize(org.eclipse.swt.graphics.Point size)
           
 void setZoom(double z)
           
 org.eclipse.swt.graphics.Point toGlyph(org.eclipse.swt.graphics.Point p)
           
 org.eclipse.swt.graphics.Point toHolder(org.eclipse.swt.graphics.Point p)
           
 
Methods inherited from class org.placelab.util.swt.Glyph
addListener, addMouseListener, addPaintListener, areMouseEventsEnabled, enableMouseEvents, enter, getBounds, getCloseEnough, getFlag, getHolder, getLocation, getMaskColor, getNeedsTransformRedraw, getOriginalLocation, getParent, getTransform, getTransparency, getZoom, handleMouseEvent, isDisposed, isVisible, leave, moveAbove, moveBelow, notifyListeners, paint, pointInside, pointInside, redraw, removeListener, resetFlag, setCloseEnough, setCursor, setFlag, setNeedsTransformRedraw, setTransform, setTransparency, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlyphComposite

public GlyphComposite(GlyphComposite parent,
                      int style)

GlyphComposite

public GlyphComposite(GlyphHolder holder,
                      int style)
Method Detail

getChildren

public Glyph[] getChildren()

getBoundsImpl

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

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)

setBounds

public void setBounds(org.eclipse.swt.graphics.Rectangle bounds)

setLocation

public void setLocation(int x,
                        int y)

setLocation

public void setLocation(org.eclipse.swt.graphics.Point aLoc)
Overrides:
setLocation in class Glyph

setSize

public void setSize(int width,
                    int height)

setSize

public void setSize(org.eclipse.swt.graphics.Point size)

setZoom

public void setZoom(double z)
Overrides:
setZoom 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

pickGlyphAt

public Glyph pickGlyphAt(int x,
                         int y,
                         boolean checkMouseEnabled)
Overrides:
pickGlyphAt in class Glyph

toHolder

public org.eclipse.swt.graphics.Point toHolder(org.eclipse.swt.graphics.Point p)

toGlyph

public org.eclipse.swt.graphics.Point toGlyph(org.eclipse.swt.graphics.Point p)

dispose

public void dispose()
Overrides:
dispose in class Glyph

getGC

public GlyphGC getGC()

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

moveAbove

public void moveAbove(Glyph glyph,
                      Glyph aboveWhat)

moveBelow

public void moveBelow(Glyph glyph,
                      Glyph belowWhat)