borland Packages  Class Hierarchy  jbcl.control Package  Index 

BevelPanel component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----borland.jbcl.view.BeanPanel
                                   +----borland.jbcl.control.BevelPanel
                                           +----borland.jbcl.control.ButtonBar
                                           +----borland.jbcl.control.StatusBar
                                           +----borland.jbcl.control.CheckboxPanel
                                           +----borland.jbcl.control.ColorChooserPanel

About the BevelPanel component

Variables  Constructors  Properties  Methods  Event Listeners

Implements ImageObserver, MenuContainer, Serializable

BevelPanel is a panel with beveled edges. It is frequently used to place other components on, including other panels. BevelPanel has a shaded 3D appearance. To change it's appearance, set the innerBevel and outerBevel properties.

The default layout manager is XYLayout.


BevelPanel variables

Variables implemented in this class

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in com.sun.java.swing.JComponent

Variables implemented in java.awt.Component

BevelPanel constructors

BevelPanel properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.BeanPanel

Properties implemented in com.sun.java.swing.JComponent

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 borland.jbcl.view.BeanPanel

Methods implemented in com.sun.java.swing.JComponent

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

BevelPanel event listeners


BevelPanel variables

bevelInner

  protected int bevelInner

bevelOuter

  protected int bevelOuter

border

  protected BorderItemPainter border

FLAT

  public static final int FLAT = 0

LOWERED

  public static final int LOWERED = 2

margins

  protected Insets margins

RAISED

  public static final int RAISED = 1

soft

  protected boolean soft

textureName

  protected String textureName

BevelPanel constructors

BevelPanel()

  public BevelPanel()
Constructs a BevelPanel component with an XYLayout layout manger. The inner bevel is raised and the outer bevel is flat.

BevelPanel(int, int)

  public BevelPanel(int bevelInner, int bevelOuter)
Constructs a BevelPanel component with an XYLayout layout manger and setting the inner bevel and outer bevel to the values passed in the parameters.

Parameters:

bevelInner
An int constant that determines the appearance of the inner bevel. The acceptable values are FLAT, RAISED, and LOWERED.
bevelOuter
An int constant that determines appearance of the outer edge of the panel. The acceptable values are FLAT, RAISED, and LOWERED.


BevelPanel properties

bevelInner

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

The appearance of the inner bevel of the panel. Possible values are FLAT, RAISED, and, LOWERED. The default value is RAISED.

bevelOuter

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

The appearance of the outer bevel of the panel. Possible values are FLAT, RAISED, and, LOWERED. The default value is FLAT, which means no outer bevel is visible.

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 in pixels between the bevel panel edges and the edge of a component contained in the panel. The Insets object defines the top, left, bottom, and right margins within the BevelPanel.

minimumSize

 public Dimension getMinimumSize()
Read-only property that returns the minimum size of the panel.

preferredSize

 public Dimension getPreferredSize()

Read-only property that returns the preferred size.

soft

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

Determines whether the edges of the bevel panel are painted with a softer color, giving the edges a softer appearance. If soft is true, the edges have a softer appearance. The default value is false.

textureName

 public String getTextureName()
 public void setTextureName(java.lang.String path)
Determines the name of the Image file that is tiled on the background of the control to give the appearance of texture. Specify the file name and directory using the path parameter.

BevelPanel methods

paintComponent(java.awt.Graphics)

  public void paintComponent(java.awt.Graphics g)
Paints or repaints the BevelPanel.

Parameters:

g
The Graphics object used for painting.

Overrides: borland.jbcl.view.BeanPanel.paintComponent(java.awt.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.

updateUI()

  public void updateUI()

Overrides: com.sun.java.swing.JComponent.updateUI()


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.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

ancestor

 public void addAncestorListener(com.sun.java.swing.event.AncestorListener )
 public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )

component

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

container

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

focus

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

key

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

mouse

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

mouseMotion

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

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )