public class AdvancedPath
extends org.eclipse.swt.graphics.Path
Path
Constructor and Description |
---|
AdvancedPath(org.eclipse.swt.graphics.Device device)
Contructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCircle(float x,
float y,
float radius)
Adds to the receiver the circle specified by x, y, radius
|
void |
addRoundRectangle(float x,
float y,
float width,
float height,
float arcWidth,
float arcHeight)
Adds to the receiver the round-cornered rectangle specified by x, y, width and height.
|
void |
addRoundRectangleStraightLeft(float x,
float y,
float width,
float height,
float arcWidth,
float arcHeight)
Adds to the receiver the rectangle specified by x, y, width and height.
This rectangle is round-cornered on the right, and straight on the left. |
void |
addRoundRectangleStraightRight(float x,
float y,
float width,
float height,
float arcWidth,
float arcHeight)
Adds to the receiver the rectangle specified by x, y, width and height.
This rectangle is round-cornered on the left, and straight on the right. |
public AdvancedPath(org.eclipse.swt.graphics.Device device)
device
- public void addCircle(float x, float y, float radius)
x
- the x coordinate of the rectangle to addy
- the y coordinate of the rectangle to addradius
- the width of the radiusorg.eclipse.swt.SWTException
- public void addRoundRectangle(float x, float y, float width, float height, float arcWidth, float arcHeight)
x
- the x coordinate of the rectangle to addy
- the y coordinate of the rectangle to addwidth
- the width of the rectangle to addheight
- the height of the rectangle to addarcWidth
- the width of the arcarcHeight
- the height of the arcorg.eclipse.swt.SWTException
- public void addRoundRectangleStraightRight(float x, float y, float width, float height, float arcWidth, float arcHeight)
x
- the x coordinate of the rectangle to addy
- the y coordinate of the rectangle to addwidth
- the width of the rectangle to addheight
- the height of the rectangle to addarcWidth
- the width of the arcarcHeight
- the height of the arcorg.eclipse.swt.SWTException
- public void addRoundRectangleStraightLeft(float x, float y, float width, float height, float arcWidth, float arcHeight)
x
- the x coordinate of the rectangle to addy
- the y coordinate of the rectangle to addwidth
- the width of the rectangle to addheight
- the height of the rectangle to addarcWidth
- the width of the arcarcHeight
- the height of the arcorg.eclipse.swt.SWTException
-