Class SWT2AWT
- java.lang.Object
-
- org.eclipse.gef.geometry.convert.swt.SWT2AWT
-
public class SWT2AWT extends java.lang.ObjectA utility class to convert geometric objects from SWT to AWT, i.e. Java2D.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.geom.PathIteratortoAWTPathIterator(PathData pathData, int windingRule)Converts an SWTPathDatainto an equivalent AWTPathIterator.
-
-
-
Method Detail
-
toAWTPathIterator
public static java.awt.geom.PathIterator toAWTPathIterator(PathData pathData, int windingRule)
Converts an SWTPathDatainto an equivalent AWTPathIterator.- Parameters:
pathData- thePathDatato convert.windingRule- the winding rule to use when constructing thePathIterator, i.e. one ofSWT.FILL_WINDINGorSWT.FILL_EVEN_ODD.- Returns:
- a new
PathIteratorrepresenting the same path
-
-