Path.this

Constructs a new Path that is a copy of <code>path</code>. If <code>flatness</code> is less than or equal to zero, an unflatten copy of the path is created. Otherwise, it specifies the maximum error between the path and its flatten copy. Smaller numbers give better approximation. <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 path the path to make a copy @param flatness the flatness value

@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 path is null</li> <li>ERROR_INVALID_ARGUMENT - if the path has been disposed</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

  1. this(Device device)
  2. this(Device device, Path path, float flatness)
    class Path
  3. this(Device device, PathData data)

Meta