Java 6 SE Platform
6.0
Home

camickr
Class BorderAdapter

java.lang.Object
  extended by camickr.BorderAdapter
All Implemented Interfaces:
javax.swing.border.Border

 class BorderAdapter
extends java.lang.Object
implements javax.swing.border.Border

BorderAdapter class handles this instance's displaying of javax.swing.border.Border objects.


Field Summary
private  javax.swing.border.Border border
           
private  java.awt.Component component
           
 
Constructor Summary
BorderAdapter(javax.swing.border.Border border, java.lang.String key)
          Class constructor sets an instance of the javax.swing.Border interface and a java.lang.String containing the qualified javax.swing.JComponent class name.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Accessor for border's java.awt.Insets.
 boolean isBorderOpaque()
          Returns the boolean value of the border#isBorderOpaque method.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Paints border at this x, y location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

border

private javax.swing.border.Border border

component

private java.awt.Component component
Constructor Detail

BorderAdapter

public BorderAdapter(javax.swing.border.Border border,
                     java.lang.String key)
Class constructor sets an instance of the javax.swing.Border interface and a java.lang.String containing the qualified javax.swing.JComponent class name.

Parameters:
border - javax.swing.Border interface instance.
key - java.lang.String containing qualified javax.swing.JComponent class name.
See Also:
javax.swing.Border interface
Method Detail

isBorderOpaque

public boolean isBorderOpaque()
Returns the boolean value of the border#isBorderOpaque method.

Specified by:
isBorderOpaque in interface javax.swing.border.Border
Returns:
boolean value for this instance's border#isBorderOpaque method.

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Accessor for border's java.awt.Insets.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Returns:
java.awt.Insets of this border's insets.

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Paints border at this x, y location.

Specified by:
paintBorder in interface javax.swing.border.Border
Parameters:
c - java.awt.Component reference to the component to paint.
g - java.awt.Graphics object.
x - int value of the x axis coordinate.
y - int value of the y axis coordinate.

Java 6 SE Platform
6.0
Home

API documentation written, prepared and compiled by Brent Allen Parrish, woven-media.com, 15 May 2008