Class SWT2AWT
- java.lang.Object
-
- org.eclipse.gef.geometry.convert.swt.SWT2AWT
-
public class SWT2AWT extends java.lang.Object
A 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.PathIterator
toAWTPathIterator(PathData pathData, int windingRule)
Converts an SWTPathData
into an equivalent AWTPathIterator
.
-
-
-
Method Detail
-
toAWTPathIterator
public static java.awt.geom.PathIterator toAWTPathIterator(PathData pathData, int windingRule)
Converts an SWTPathData
into an equivalent AWTPathIterator
.- Parameters:
pathData
- thePathData
to convert.windingRule
- the winding rule to use when constructing thePathIterator
, i.e. one ofSWT.FILL_WINDING
orSWT.FILL_EVEN_ODD
.- Returns:
- a new
PathIterator
representing the same path
-
-