net.sf.ecl.datepicker.util
Class GraphicsHelper

java.lang.Object
  extended by net.sf.ecl.datepicker.util.GraphicsHelper

public final class GraphicsHelper
extends Object

TODO comment


Method Summary
static Rectangle cloneRect(Rectangle rect)
          TODO comment
static Rectangle cropRect(Rectangle rect, int left, int top, int right, int bottom)
          TODO comment
static void drawText(GC gc, String text, Rectangle drawRect, int alignment)
          TODO comment
static Rectangle expandRect(Rectangle rect, int left, int top, int right, int bottom)
          TODO comment
static ImageData getAntiAliased(Image src)
          creates a anti-aliased copy of the given image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cloneRect

public static Rectangle cloneRect(Rectangle rect)
TODO comment

Parameters:
rect -
Returns:

cropRect

public static Rectangle cropRect(Rectangle rect,
                                 int left,
                                 int top,
                                 int right,
                                 int bottom)
TODO comment

Parameters:
rect -
left -
top -
right -
bottom -
Returns:

drawText

public static void drawText(GC gc,
                            String text,
                            Rectangle drawRect,
                            int alignment)
TODO comment

Parameters:
gc -
text -
drawRect -
alignment -

expandRect

public static Rectangle expandRect(Rectangle rect,
                                   int left,
                                   int top,
                                   int right,
                                   int bottom)
TODO comment

Parameters:
rect -
left -
top -
right -
bottom -
Returns:

getAntiAliased

public static final ImageData getAntiAliased(Image src)
creates a anti-aliased copy of the given image. This is a simple implamentation of a low-pass filter.

Parameters:
src - the source image.
Returns:
the anti-aliased image. The caller must dispose this image.