javax.swing.plaf.basic
Class BasicBorders.SplitPaneBorder

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.basic.BasicBorders.SplitPaneBorder
All Implemented Interfaces:
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
Enclosing class:
BasicBorders sample code for javax.swing.plaf.basic.BasicBorders definition code for javax.swing.plaf.basic.BasicBorders

public static class BasicBorders.SplitPaneBorder
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

Draws the border around the splitpane. To work correctly you shoudl also install a border on the divider (property SplitPaneDivider.border).


Field Summary
protected  Color sample code for java.awt.Color definition code for java.awt.Color highlight sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.highlight definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.highlight
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color shadow sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.shadow definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.shadow
           
 
Constructor Summary
BasicBorders.SplitPaneBorder sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.BasicBorders.SplitPaneBorder(java.awt.Color, java.awt.Color) definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.BasicBorders.SplitPaneBorder(java.awt.Color, java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  highlight, Color sample code for java.awt.Color definition code for java.awt.Color  shadow)
           
 
Method Summary
 Insets sample code for java.awt.Insets definition code for java.awt.Insets getBorderInsets sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.getBorderInsets(java.awt.Component) definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.getBorderInsets(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  c)
          Returns the insets of the border.
 boolean isBorderOpaque sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.isBorderOpaque() definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.isBorderOpaque() ()
          Returns whether or not the border is opaque.
 void paintBorder sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.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)
 

Field Detail

highlight sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.highlight

protected Color sample code for java.awt.Color definition code for java.awt.Color  highlight

shadow sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.shadow

protected Color sample code for java.awt.Color definition code for java.awt.Color  shadow
Constructor Detail

BasicBorders.SplitPaneBorder sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder(java.awt.Color, java.awt.Color) definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder(java.awt.Color, java.awt.Color)

public BasicBorders.SplitPaneBorder(Color sample code for java.awt.Color definition code for java.awt.Color  highlight,
                                    Color sample code for java.awt.Color definition code for java.awt.Color  shadow)
Method Detail

paintBorder sample code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.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.basic.BasicBorders.SplitPaneBorder.getBorderInsets(java.awt.Component) definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.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.basic.BasicBorders.SplitPaneBorder.isBorderOpaque() definition code for javax.swing.plaf.basic.BasicBorders.SplitPaneBorder.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