Class FlatLineBorder

All Implemented Interfaces:
Serializable, Border, UIResource
Direct Known Subclasses:
FlatListCellBorder, FlatPopupMenuBorder, FlatTableCellBorder

public class FlatLineBorder extends FlatEmptyBorder
Line border for various components. Paints a scaled (usually 1px thick) line around the component. The line thickness is not added to the border insets. The insets should be at least have line thickness (usually 1,1,1,1).
See Also:
  • Field Details

    • lineColor

      private final Color lineColor
    • lineThickness

      private final float lineThickness
    • arc

      private final int arc
      Since:
      2
  • Constructor Details

    • FlatLineBorder

      public FlatLineBorder(Insets insets, Color lineColor)
    • FlatLineBorder

      public FlatLineBorder(Insets insets, Color lineColor, float lineThickness, int arc)
      Since:
      2
  • Method Details

    • getLineColor

      public Color getLineColor()
    • getLineThickness

      public float getLineThickness()
    • getArc

      public int getArc()
      Since:
      2
    • paintBorder

      public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
      Specified by:
      paintBorder in interface Border
      Overrides:
      paintBorder in class EmptyBorder