Class RoundedRectangleBorder

  • All Implemented Interfaces:
    org.eclipse.draw2d.Border

    public class RoundedRectangleBorder
    extends org.eclipse.draw2d.LineBorder
    • Field Summary

      • Fields inherited from class org.eclipse.draw2d.AbstractBorder

        tempRect
    • Constructor Summary

      Constructors 
      Constructor Description
      RoundedRectangleBorder​(int arcWidth, int arcHeight)
      Creates an instance of this class with the given arc width and arc height in pixels
    • Constructor Detail

      • RoundedRectangleBorder

        public RoundedRectangleBorder​(int arcWidth,
                                      int arcHeight)
        Creates an instance of this class with the given arc width and arc height in pixels
        Parameters:
        arcWidth - The width of the corner arc
        arcHeight - The height of the corner arc
    • Method Detail

      • getArcWidth

        public int getArcWidth()
      • setArcWidth

        public void setArcWidth​(int arcWidth)
      • getArcHeight

        public int getArcHeight()
      • setArcHeight

        public void setArcHeight​(int arcHeight)
      • paint

        public void paint​(org.eclipse.draw2d.IFigure figure,
                          org.eclipse.draw2d.Graphics g,
                          org.eclipse.draw2d.geometry.Insets insets)
        Specified by:
        paint in interface org.eclipse.draw2d.Border
        Overrides:
        paint in class org.eclipse.draw2d.LineBorder