jdk/src/share/classes/javax/swing/border/Border.java
changeset 24567 a0ebe5fd56ff
parent 24500 399b77799d66
equal deleted inserted replaced
24566:a43e10e7f3a6 24567:a0ebe5fd56ff
    64 public interface Border
    64 public interface Border
    65 {
    65 {
    66     /**
    66     /**
    67      * Paints the border for the specified component with the specified
    67      * Paints the border for the specified component with the specified
    68      * position and size.
    68      * position and size.
       
    69      *
    69      * @param c the component for which this border is being painted
    70      * @param c the component for which this border is being painted
    70      * @param g the paint graphics
    71      * @param g the paint graphics
    71      * @param x the x position of the painted border
    72      * @param x the x position of the painted border
    72      * @param y the y position of the painted border
    73      * @param y the y position of the painted border
    73      * @param width the width of the painted border
    74      * @param width the width of the painted border
    75      */
    76      */
    76     void paintBorder(Component c, Graphics g, int x, int y, int width, int height);
    77     void paintBorder(Component c, Graphics g, int x, int y, int width, int height);
    77 
    78 
    78     /**
    79     /**
    79      * Returns the insets of the border.
    80      * Returns the insets of the border.
       
    81      *
    80      * @param c the component for which this border insets value applies
    82      * @param c the component for which this border insets value applies
       
    83      * @return an {@code Insets} object containing the insets from top, left,
       
    84      *         bottom and right of this {@code Border}
    81      */
    85      */
    82     Insets getBorderInsets(Component c);
    86     Insets getBorderInsets(Component c);
    83 
    87 
    84     /**
    88     /**
    85      * Returns whether or not the border is opaque.  If the border
    89      * Returns whether or not the border is opaque.  If the border
    86      * is opaque, it is responsible for filling in it's own
    90      * is opaque, it is responsible for filling in it's own
    87      * background when painting.
    91      * background when painting.
       
    92      *
       
    93      * @return true if this {@code Border} is opaque
    88      */
    94      */
    89     boolean isBorderOpaque();
    95     boolean isBorderOpaque();
    90 }
    96 }