Class SynthBorder

java.lang.Object
javax.swing.border.AbstractBorder
org.jdesktop.swingx.plaf.synth.SynthBorder
All Implemented Interfaces:
Serializable, Border, UIResource

class SynthBorder extends AbstractBorder implements UIResource
SynthBorder is a border that delegates to a Painter. The Insets are determined at construction time.

Copied from core

Version:
1.15, 11/30/06
  • Field Details

  • Constructor Details

  • Method Details

    • 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 AbstractBorder
    • getBorderInsets

      public Insets getBorderInsets(Component c)
      This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.
      Specified by:
      getBorderInsets in interface Border
      Overrides:
      getBorderInsets in class AbstractBorder
      Parameters:
      c - the component for which this border insets value applies
      Returns:
      the new Insets object initialized to 0
    • getBorderInsets

      public Insets getBorderInsets(Component c, Insets insets)
      Reinitializes the insets parameter with this Border's current Insets.
      Overrides:
      getBorderInsets in class AbstractBorder
      Parameters:
      c - the component for which this border insets value applies
      insets - the object to be reinitialized
      Returns:
      the insets object
    • isBorderOpaque

      public boolean isBorderOpaque()
      This default implementation returns false.
      Specified by:
      isBorderOpaque in interface Border
      Overrides:
      isBorderOpaque in class AbstractBorder
      Returns:
      false