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

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
 

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)


Copyright © 2008 by University of Maryland, College Park, MD 20742, USA All rights reserved.