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

Quick Search    Search Deep

javax.swing.plaf.basic
Class BasicBorders.SplitPaneDividerBorder  view BasicBorders.SplitPaneDividerBorder download BasicBorders.SplitPaneDividerBorder.java

java.lang.Object
  extended byjavax.swing.plaf.basic.BasicBorders.SplitPaneDividerBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
Enclosing class:
BasicBorders

private static class BasicBorders.SplitPaneDividerBorder
extends java.lang.Object
implements javax.swing.border.Border, javax.swing.plaf.UIResource, java.io.Serializable

A border for the divider inside a JSplitPane.

[A screen shot of this border]


Constructor Summary
BasicBorders.SplitPaneDividerBorder()
          Constructs a new border for drawing the divider of a JSplitPane in the Basic look and feel.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Measures the width of this border.
private  javax.swing.JSplitPane getSplitPane(java.awt.Component c)
          Determines the JSplitPane whose divider is being painted.
 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 around the divider of a JSplitPane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicBorders.SplitPaneDividerBorder

public BasicBorders.SplitPaneDividerBorder()
Constructs a new border for drawing the divider of a JSplitPane in the Basic look and feel. The outer parts of the JSplitPane have their own border class, SplitPaneBorder.

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 around the divider of a JSplitPane.

[A picture that shows which pixels
 get painted in what color]

Specified by:
paintBorder in interface javax.swing.border.Border

getBorderInsets

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

Specified by:
getBorderInsets in interface javax.swing.border.Border

isBorderOpaque

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

Specified by:
isBorderOpaque in interface javax.swing.border.Border

getSplitPane

private javax.swing.JSplitPane getSplitPane(java.awt.Component c)
Determines the JSplitPane whose divider is being painted.