Class SWT2AWT
java.lang.Object
org.eclipse.gef.geometry.convert.swt.SWT2AWT
A utility class to convert geometric objects from SWT to AWT, i.e. Java2D.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathIteratortoAWTPathIterator(PathData pathData, int windingRule) Converts an SWTPathDatainto an equivalent AWTPathIterator.
-
Method Details
-
toAWTPathIterator
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
-