Path.this

Constructs a new Path with the specifed PathData. <p> This operation requires the operating system's advanced graphics subsystem which may not be available on some platforms. </p>

@param device the device on which to allocate the path @param data the data for the path

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device</li> <li>ERROR_NULL_ARGUMENT - if the data is null</li> </ul> @exception SWTException <ul> <li>ERROR_NO_GRAPHICS_LIBRARY - if advanced graphics are not available</li> </ul> @exception SWTError <ul> <li>ERROR_NO_HANDLES if a handle for the path could not be obtained</li> </ul>

@see #dispose() @since 3.4

Meta