All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vt.cs.widgets.BorderPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----vt.cs.widgets.BorderPanel

public class BorderPanel
extends Panel
BorderPanel - a 3D look panel.


Variable Index

 o border
 o col1
 o col2
 o perspective
 o RAISED
 o SUNKEN

Constructor Index

 o BorderPanel()
Constructs a BorderPanel with the default values
 o BorderPanel(Color, Color)
Construcs a BorderPanel
 o BorderPanel(int)
Construcs a BorderPanel
 o BorderPanel(int, Color, Color)
Construcs a BorderPanel
 o BorderPanel(int, int)
Construcs a BorderPanel
 o BorderPanel(int, int, Color, Color)
Construcs a BorderPanel

Method Index

 o insets()
 o paint(Graphics)
 o update(Graphics)

Variables

 o perspective
  protected int perspective
 o border
  protected int border
 o col1
  protected Color col1
 o col2
  protected Color col2
 o SUNKEN
  public final static int SUNKEN
 o RAISED
  public final static int RAISED

Constructors

 o BorderPanel
  public BorderPanel()
Constructs a BorderPanel with the default values

 o BorderPanel
  public BorderPanel(int borderWidth)
Construcs a BorderPanel

Parameters:
borderWidth - width of border
 o BorderPanel
  public BorderPanel(int borderWidth,
                     int perspective)
Construcs a BorderPanel

Parameters:
borderWidth - width of border
perspective - RAISED or SUNKEN
 o BorderPanel
  public BorderPanel(int borderWidth,
                     Color topLeft,
                     Color bottomRight)
Construcs a BorderPanel

Parameters:
borderWidth - width of border
topLeft - Color of top-left border
bottomRight - Color of bottom-right border
 o BorderPanel
  public BorderPanel(Color topLeft,
                     Color bottomRight)
Construcs a BorderPanel

Parameters:
topLeft - Color of top-left border
bottomRight - Color of bottom-right border
 o BorderPanel
  public BorderPanel(int borderWidth,
                     int perspective,
                     Color topLeft,
                     Color bottomRight)
Construcs a BorderPanel

Parameters:
borderWidth - width of border
perspective - RAISED or SUNKEN
topLeft - Color of top-left border
bottomRight - Color of bottom-right border

Methods

 o insets
  public Insets insets()
Overrides:
insets in class Container
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Component
 o update
  public void update(Graphics g)
Overrides:
update in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index