Class AdvancedPath


  • public class AdvancedPath
    extends org.eclipse.swt.graphics.Path
    AdvancedPath, a Path object that contains extra paths
    See Also:
    Path
    • Field Summary

      • Fields inherited from class org.eclipse.swt.graphics.Path

        handle
    • Constructor Summary

      Constructors 
      Constructor Description
      AdvancedPath​(org.eclipse.swt.graphics.Device device)
      Contructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class org.eclipse.swt.graphics.Path

        addArc, addPath, addRectangle, addString, close, contains, cubicTo, getBounds, getCurrentPoint, getPathData, isDisposed, lineTo, moveTo, quadTo, toString
      • Methods inherited from class org.eclipse.swt.graphics.Resource

        dispose, getDevice
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AdvancedPath

        public AdvancedPath​(org.eclipse.swt.graphics.Device device)
        Contructor
        Parameters:
        device -
    • Method Detail

      • 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 rectangle to add
        y - the y coordinate of the rectangle to add
        radius - 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 add
        y - the y coordinate of the rectangle to add
        width - the width of the rectangle to add
        height - the height of the rectangle to add
        arcWidth - the width of the arc
        arcHeight - 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 add
        y - the y coordinate of the rectangle to add
        width - the width of the rectangle to add
        height - the height of the rectangle to add
        arcWidth - the width of the arc
        arcHeight - 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 add
        y - the y coordinate of the rectangle to add
        width - the width of the rectangle to add
        height - the height of the rectangle to add
        arcWidth - the width of the arc
        arcHeight - the height of the arc
        Throws:
        org.eclipse.swt.SWTException -
        • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed