org.fife.ui
Class OptionsDialogPanel.OptionPanelBorder

java.lang.Object
  extended by org.fife.ui.OptionsDialogPanel.OptionPanelBorder
All Implemented Interfaces:
javax.swing.border.Border
Enclosing class:
OptionsDialogPanel

public static class OptionsDialogPanel.OptionPanelBorder
extends java.lang.Object
implements javax.swing.border.Border

A border useful for dividing sections of an Options panel.


Constructor Summary
OptionsDialogPanel.OptionPanelBorder(java.lang.String title)
          Constructor.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Returns the insets of the border.
 boolean isBorderOpaque()
          Returns whether or not the border is opaque.
 void paintBorder(java.awt.Component c, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsDialogPanel.OptionPanelBorder

public OptionsDialogPanel.OptionPanelBorder(java.lang.String title)
Constructor.

Parameters:
title - The title of the border.
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Returns the insets of the border.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Parameters:
c - Not used.

isBorderOpaque

public boolean isBorderOpaque()
Returns whether or not the border is opaque.

Specified by:
isBorderOpaque in interface javax.swing.border.Border
Returns:
This method always returns true.

paintBorder

public void paintBorder(java.awt.Component c,
                        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.

Specified by:
paintBorder in interface javax.swing.border.Border
Parameters:
c - The component that has this border.
g - The graphics context with which to paint.
x - The x-coordinate of the border.
y - The y-coordinate of the border.
width - The width of the component.
height - The height of the component.