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 PathIterator
toAWTPathIterator
(PathData pathData, int windingRule) Converts an SWTPathData
into an equivalent AWTPathIterator
.
-
Method Details
-
toAWTPathIterator
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
-