Interface ShapedBorder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.Shape getShape​(java.awt.Component c, int x, int y, int width, int height)
      Gets the shape of this border.
      • Methods inherited from interface javax.swing.border.Border

        getBorderInsets, isBorderOpaque, paintBorder
    • Method Detail

      • getShape

        java.awt.Shape getShape​(java.awt.Component c,
                                int x,
                                int y,
                                int width,
                                int height)

        Gets the shape of this border.

        Parameters:
        c - the component to create a shape for
        x - the x offset
        y - the y offset
        width - the width
        height - the height
        Returns:
        the Shape for this border or null if there is no shape and the normal rectangle bounds should be used