edu.umd.cs.piccolox.swt
Class SWTShapeManager

java.lang.Object
  extended by edu.umd.cs.piccolox.swt.SWTShapeManager

public class SWTShapeManager
extends java.lang.Object

Author:
Lance Good

Field Summary
(package private) static java.awt.geom.Point2D aPoint
           
(package private) static java.awt.geom.AffineTransform IDENTITY_XFORM
           
(package private) static double[] pts
           
(package private) static java.util.ArrayList segList
           
 
Constructor Summary
SWTShapeManager()
           
 
Method Summary
static void awtToSWT(java.awt.geom.Rectangle2D aRect, org.eclipse.swt.graphics.Rectangle sRect)
           
static double[] shapeToPolyline(java.awt.Shape s)
           
static int[] transform(double[] pts, java.awt.geom.AffineTransform at)
           
static void transform(java.awt.geom.Rectangle2D rect, java.awt.geom.AffineTransform at)
          Apply the specified transform to the specified rectangle, modifying the rect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY_XFORM

static java.awt.geom.AffineTransform IDENTITY_XFORM

aPoint

static java.awt.geom.Point2D aPoint

segList

static java.util.ArrayList segList

pts

static double[] pts
Constructor Detail

SWTShapeManager

public SWTShapeManager()
Method Detail

transform

public static void transform(java.awt.geom.Rectangle2D rect,
                             java.awt.geom.AffineTransform at)
Apply the specified transform to the specified rectangle, modifying the rect.

Parameters:
rect - The rectangle to be transformed
at - The transform to use to transform the rectangle

awtToSWT

public static void awtToSWT(java.awt.geom.Rectangle2D aRect,
                            org.eclipse.swt.graphics.Rectangle sRect)

shapeToPolyline

public static double[] shapeToPolyline(java.awt.Shape s)

transform

public static int[] transform(double[] pts,
                              java.awt.geom.AffineTransform at)