Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.border
Interface Border  view Border download Border.java

All Known Implementing Classes:
AbstractBorder

public interface Border

An public interface for decorative or spacing borders around a Component.

To reduce memory consumption, several Components may share a single Border instance. javax.swing.BorderFactory is a factory class for producing commonly used shared borders.


Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Measures the width of this border.
 boolean isBorderOpaque()
          Determines whether this border fills every pixel in its area when painting.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Paints the border for a given component.
 

Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Paints the border for a given component.


getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Measures the width of this border.


isBorderOpaque

public boolean isBorderOpaque()
Determines whether this border fills every pixel in its area when painting.