javax.swing.plaf
Class BorderUIResource

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.BorderUIResource
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border , UIResource sample code for javax.swing.plaf.UIResource definition code for javax.swing.plaf.UIResource

public class BorderUIResource
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border , UIResource sample code for javax.swing.plaf.UIResource definition code for javax.swing.plaf.UIResource , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class BorderUIResource.BevelBorderUIResource sample code for javax.swing.plaf.BorderUIResource.BevelBorderUIResource definition code for javax.swing.plaf.BorderUIResource.BevelBorderUIResource
           
static class BorderUIResource.CompoundBorderUIResource sample code for javax.swing.plaf.BorderUIResource.CompoundBorderUIResource definition code for javax.swing.plaf.BorderUIResource.CompoundBorderUIResource
           
static class BorderUIResource.EmptyBorderUIResource sample code for javax.swing.plaf.BorderUIResource.EmptyBorderUIResource definition code for javax.swing.plaf.BorderUIResource.EmptyBorderUIResource
           
static class BorderUIResource.EtchedBorderUIResource sample code for javax.swing.plaf.BorderUIResource.EtchedBorderUIResource definition code for javax.swing.plaf.BorderUIResource.EtchedBorderUIResource
           
static class BorderUIResource.LineBorderUIResource sample code for javax.swing.plaf.BorderUIResource.LineBorderUIResource definition code for javax.swing.plaf.BorderUIResource.LineBorderUIResource
           
static class BorderUIResource.MatteBorderUIResource sample code for javax.swing.plaf.BorderUIResource.MatteBorderUIResource definition code for javax.swing.plaf.BorderUIResource.MatteBorderUIResource
           
static class BorderUIResource.TitledBorderUIResource sample code for javax.swing.plaf.BorderUIResource.TitledBorderUIResource definition code for javax.swing.plaf.BorderUIResource.TitledBorderUIResource
           
 
Constructor Summary
BorderUIResource sample code for javax.swing.plaf.BorderUIResource.BorderUIResource(javax.swing.border.Border) definition code for javax.swing.plaf.BorderUIResource.BorderUIResource(javax.swing.border.Border) (Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  delegate)
          Creates a UIResource border object which wraps an existing Border instance.
 
Method Summary
static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border getBlackLineBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getBlackLineBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getBlackLineBorderUIResource() ()
           
 Insets sample code for java.awt.Insets definition code for java.awt.Insets getBorderInsets sample code for javax.swing.plaf.BorderUIResource.getBorderInsets(java.awt.Component) definition code for javax.swing.plaf.BorderUIResource.getBorderInsets(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  c)
          Returns the insets of the border.
static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border getEtchedBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getEtchedBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getEtchedBorderUIResource() ()
           
static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border getLoweredBevelBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getLoweredBevelBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getLoweredBevelBorderUIResource() ()
           
static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border getRaisedBevelBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getRaisedBevelBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getRaisedBevelBorderUIResource() ()
           
 boolean isBorderOpaque sample code for javax.swing.plaf.BorderUIResource.isBorderOpaque() definition code for javax.swing.plaf.BorderUIResource.isBorderOpaque() ()
          Returns whether or not the border is opaque.
 void paintBorder sample code for javax.swing.plaf.BorderUIResource.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.plaf.BorderUIResource.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) (Component sample code for java.awt.Component definition code for java.awt.Component  c, Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int x, int y, int width, int height)
          Paints the border for the specified component with the specified position and size.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BorderUIResource sample code for javax.swing.plaf.BorderUIResource(javax.swing.border.Border) definition code for javax.swing.plaf.BorderUIResource(javax.swing.border.Border)

public BorderUIResource(Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  delegate)
Creates a UIResource border object which wraps an existing Border instance.

Parameters:
delegate - the border being wrapped
Method Detail

getEtchedBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getEtchedBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getEtchedBorderUIResource()

public static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  getEtchedBorderUIResource()

getLoweredBevelBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getLoweredBevelBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getLoweredBevelBorderUIResource()

public static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  getLoweredBevelBorderUIResource()

getRaisedBevelBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getRaisedBevelBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getRaisedBevelBorderUIResource()

public static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  getRaisedBevelBorderUIResource()

getBlackLineBorderUIResource sample code for javax.swing.plaf.BorderUIResource.getBlackLineBorderUIResource() definition code for javax.swing.plaf.BorderUIResource.getBlackLineBorderUIResource()

public static Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  getBlackLineBorderUIResource()

paintBorder sample code for javax.swing.plaf.BorderUIResource.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.plaf.BorderUIResource.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)

public void paintBorder(Component sample code for java.awt.Component definition code for java.awt.Component  c,
                        Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                        int x,
                        int y,
                        int width,
                        int height)
Description copied from interface: Border sample code for javax.swing.border.Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.border.Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)
Paints the border for the specified component with the specified position and size.

Specified by:
paintBorder sample code for javax.swing.border.Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.border.Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) in interface Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border
Parameters:
c - the component for which this border is being painted
g - the paint graphics
x - the x position of the painted border
y - the y position of the painted border
width - the width of the painted border
height - the height of the painted border

getBorderInsets sample code for javax.swing.plaf.BorderUIResource.getBorderInsets(java.awt.Component) definition code for javax.swing.plaf.BorderUIResource.getBorderInsets(java.awt.Component)

public Insets sample code for java.awt.Insets definition code for java.awt.Insets  getBorderInsets(Component sample code for java.awt.Component definition code for java.awt.Component  c)
Description copied from interface: Border sample code for javax.swing.border.Border.getBorderInsets(java.awt.Component) definition code for javax.swing.border.Border.getBorderInsets(java.awt.Component)
Returns the insets of the border.

Specified by:
getBorderInsets sample code for javax.swing.border.Border.getBorderInsets(java.awt.Component) definition code for javax.swing.border.Border.getBorderInsets(java.awt.Component) in interface Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border
Parameters:
c - the component for which this border insets value applies

isBorderOpaque sample code for javax.swing.plaf.BorderUIResource.isBorderOpaque() definition code for javax.swing.plaf.BorderUIResource.isBorderOpaque()

public boolean isBorderOpaque()
Description copied from interface: Border sample code for javax.swing.border.Border.isBorderOpaque() definition code for javax.swing.border.Border.isBorderOpaque()
Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting.

Specified by:
isBorderOpaque sample code for javax.swing.border.Border.isBorderOpaque() definition code for javax.swing.border.Border.isBorderOpaque() in interface Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border