Class AdvancedPath
java.lang.Object
org.eclipse.swt.graphics.Resource
org.eclipse.swt.graphics.Path
org.eclipse.nebula.widgets.opal.commons.AdvancedPath
public class AdvancedPath
extends org.eclipse.swt.graphics.Path
AdvancedPath, a Path object that contains extra paths
- See Also:
Path
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AdvancedPath(org.eclipse.swt.graphics.Device device)
Contructor -
Method Summary
Modifier and Type Method Description void
addCircle(float x, float y, float radius)
Adds to the receiver the circle specified by x, y, radiusvoid
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.Methods inherited from class org.eclipse.swt.graphics.Path
addArc, addPath, addRectangle, addString, close, contains, cubicTo, getBounds, getCurrentPoint, getPathData, isDisposed, lineTo, moveTo, quadTo, toString
-
Constructor Details
-
AdvancedPath
public AdvancedPath(org.eclipse.swt.graphics.Device device)Contructor- Parameters:
device
-
-
-
Method Details
-
addCircle
public void addCircle(float x, float y, float radius)Adds to the receiver the circle specified by x, y, radius- Parameters:
x
- the x coordinate of the circle to addy
- the y coordinate of the circle to addradius
- the width of the radius- Throws:
org.eclipse.swt.SWTException
-- ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
-
addRoundRectangle
public 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.- Parameters:
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 arc- Throws:
org.eclipse.swt.SWTException
-- ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
-
addRoundRectangleStraightRight
public 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.- Parameters:
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 arc- Throws:
org.eclipse.swt.SWTException
-- ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
-
addRoundRectangleStraightLeft
public 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.- Parameters:
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 arc- Throws:
org.eclipse.swt.SWTException
-- ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
-