Interface ShapedBorder

All Superinterfaces:
Border
All Known Implementing Classes:
AbstractPolygonBorder, AbstractShapedBorder, AbstractShapedBorderWrapper, FixedInsetsShapedBorder, PolygonBorder, RoundedCornerBorder, SlopedTabLineBorder, TwoColoredLineBorder

public interface ShapedBorder extends Border
A border that has a Shape.
  • Method Details

    • getShape

      Shape getShape(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