TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.swt.internal
Class ImageDataUtil

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.swt.internal.ImageDataUtil

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class ImageDataUtil
extends java.lang.Object

Just to keep useful? code to rotate ImageData before modifying it into RGBAImage.


Constructor Summary
ImageDataUtil()
          Deprecated.  
 
Method Summary
protected static void antialiased(double _rx, double _ry, org.eclipse.swt.graphics.ImageData src_, org.eclipse.swt.graphics.RGB rgb)
          Deprecated.  
 org.eclipse.swt.graphics.ImageData getTextImage(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC font_gc, java.lang.String text, ISize size)
          Deprecated.  
protected  org.eclipse.swt.graphics.ImageData rotateImageData(org.eclipse.swt.graphics.ImageData s, int angle, boolean antialiased)
          Deprecated. rotate image data s using angle (degree), and antialiased property
protected  org.eclipse.swt.graphics.ImageData rotateImageDataAny(org.eclipse.swt.graphics.ImageData source, int angle, int new_pixel, boolean antialiased)
          Deprecated.  
protected  ISize rotateImageSize(int width, int height, double angle)
          Deprecated.  
protected static int rotateX(double cos, double sin, int x, int y)
          Deprecated.  
protected static int rotateY(double cos, double sin, int x, int y)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageDataUtil

public ImageDataUtil()
Deprecated. 
Method Detail

getTextImage

public org.eclipse.swt.graphics.ImageData getTextImage(org.eclipse.swt.graphics.Device device,
                                                       org.eclipse.swt.graphics.GC font_gc,
                                                       java.lang.String text,
                                                       ISize size)
Deprecated. 
Returns:
image data with printed text using black on white, size must be the size returned by textExtent (or more)

rotateX

protected static int rotateX(double cos,
                             double sin,
                             int x,
                             int y)
Deprecated. 

rotateY

protected static int rotateY(double cos,
                             double sin,
                             int x,
                             int y)
Deprecated. 

rotateImageSize

protected ISize rotateImageSize(int width,
                                int height,
                                double angle)
Deprecated. 
Returns:
rotated size, given size if for angle=0 radian.

rotateImageData

protected org.eclipse.swt.graphics.ImageData rotateImageData(org.eclipse.swt.graphics.ImageData s,
                                                             int angle,
                                                             boolean antialiased)
Deprecated. 
rotate image data s using angle (degree), and antialiased property


antialiased

protected static void antialiased(double _rx,
                                  double _ry,
                                  org.eclipse.swt.graphics.ImageData src_,
                                  org.eclipse.swt.graphics.RGB rgb)
Deprecated. 

rotateImageDataAny

protected org.eclipse.swt.graphics.ImageData rotateImageDataAny(org.eclipse.swt.graphics.ImageData source,
                                                                int angle,
                                                                int new_pixel,
                                                                boolean antialiased)
Deprecated. 

TPTP 4.5.0 Platform Project
Internal API Specification