borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

BevelPanel component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Panel
                           +----borland.jbcl.control.BevelPanel
                                   +----borland.jbcl.control.ButtonBar
                                   +----borland.jbcl.control.StatusBar
                                   +----borland.jbcl.control.ColorChooserPanel
                                   +----borland.jbcl.control.CheckboxPanel

About the BevelPanel component

Variables  Constructors  Properties  Methods  Event Listeners

Implements MenuContainer, ImageObserver, Serializable

Creates a BevelPanel, which provides space into which an application can attach any other components, including other panels. BevelPanel has a shaded 3-d edge. The panel can appear indented, raised, or flat.

The default layout manager is XYLayout.


BevelPanel variables

Variables implemented in this class

Variables implemented in java.awt.Component

BevelPanel constructors

BevelPanel properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

BevelPanel methods

Methods implemented in this class

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Panel

Methods implemented in java.lang.Object

BevelPanel event listeners


BevelPanel variables

FLAT

  public static final int FLAT = 0

LOWERED

  public static final int LOWERED = 2

RAISED

  public static final int RAISED = 1


BevelPanel constructors

BevelPanel()

  public BevelPanel()
Constructs a BevelPanel component with an XYLayout layout manger.

BevelPanel(int, int)

  public BevelPanel(int bevelInner, int bevelOuter)
Constructs a BevelPanel component with an XYLayout layout manger.

Parameters:

bevelInner
The width of the inner edge of the panel.
bevelOuter
The width of the outer edge of the panel.


BevelPanel properties

bevelInner

 public int getBevelInner()
 public void setBevelInner(int bevelInner)

The style of the inner edge. By default, RAISED. Can also be FLAT or LOWERED.

bevelOuter

 public int getBevelOuter()
 public void setBevelOuter(int bevelOuter)

The style of the outer edge. By default, FLAT. Can also be RAISED or LOWERED.

doubleBuffer

 public boolean isDoubleBuffer()
 public void setDoubleBuffer(boolean doubleBuffer)

The doubleBuffer property enables or disables the double-buffered screen painting that is built into the panel. The default is false, so all ItemPainters will paint directly to the screen. If true, the panel paints all of the visible cells onto an off-screen image before blitting the image onto the screen (to prevent flicker).

insets

 public Insets getInsets()
The thickness of the border of the panel.

margins

 public Insets getMargins()
 public void setMargins(java.awt.Insets margins)

The space between the bevel panel edge and the edge of a component contained in the panel.

minimumSize

 public Dimension getMinimumSize()

The smallest size that you will permit a layout manager to use for displaying the panel.

preferredSize

 public Dimension getPreferredSize()

The preferred size, for placement by layout managers.

soft

 public boolean isSoft()
 public void setSoft(boolean soft)

Whether to use soft edge colors. By default, false.


BevelPanel methods

paint(java.awt.Graphics)

  public void paint(java.awt.Graphics pg)

Paints or repaints the panel, using the specified graphics context for painting.

The coordinate of the graphics context is the top-left corner of the panel. The clipping region of the graphics context is the bounding rectangle of the panel.

The paint method calls the repaint method of the panel's peer.

Parameters:

pg
The graphics context for painting.

Overrides: java.awt.Container.paint(Graphics)

resetEdges()

  protected void resetEdges()

Based on the current bevelInner and bevelOuter values, creates a new, matching BorderItemPainter that is applied to the border of the BevelPanel.


BevelPanel event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener l)
 public void removeContainerListener(java.awt.event.ContainerListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)