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
BevelPanel constructors
BevelPanel properties
*Read-only properties **Write-only properties
Properties implemented in this class
BevelPanel methods
Methods implemented in this class
- computeVisibleRect(java.awt.Rectangle)
- contains(int, int)
- createToolTip()
- firePropertyChange(java.lang.String, boolean, boolean)
- firePropertyChange(java.lang.String, byte, byte)
- firePropertyChange(java.lang.String, char, char)
- firePropertyChange(java.lang.String, double, double)
- firePropertyChange(java.lang.String, float, float)
- firePropertyChange(java.lang.String, int, int)
- firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
- firePropertyChange(java.lang.String, long, long)
- firePropertyChange(java.lang.String, short, short)
- fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)
- getActionForKeyStroke(com.sun.java.swing.KeyStroke)
- getBounds(java.awt.Rectangle)
- getClientProperty(java.lang.Object)
- getComponentGraphics(java.awt.Graphics)
- getConditionForKeyStroke(com.sun.java.swing.KeyStroke)
- getLocation(java.awt.Point)
- getSize(java.awt.Dimension)
- getToolTipLocation(java.awt.event.MouseEvent)
- getToolTipText(java.awt.event.MouseEvent)
- grabFocus()
- hasFocus()
- isLightweightComponent(java.awt.Component)
- paint(java.awt.Graphics)
- paintBorder(java.awt.Graphics)
- paintChildren(java.awt.Graphics)
- paintImmediately(int, int, int, int)
- paintImmediately(java.awt.Rectangle)
- processComponentKeyEvent(java.awt.event.KeyEvent)
- putClientProperty(java.lang.Object, java.lang.Object)
- registerKeyboardAction(java.awt.event.ActionListener, com.sun.java.swing.KeyStroke, int)
- registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, com.sun.java.swing.KeyStroke, int)
- repaint(java.awt.Rectangle)
- repaint(long, int, int, int, int)
- requestDefaultFocus()
- requestFocus()
- resetKeyboardActions()
- reshape(int, int, int, int)
- revalidate()
- scrollRectToVisible(java.awt.Rectangle)
- setUI(com.sun.java.swing.plaf.ComponentUI)
- unregisterKeyboardAction(com.sun.java.swing.KeyStroke)
- update(java.awt.Graphics)
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paintAll(java.awt.Graphics)
- postEvent(java.awt.Event)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- remove(java.awt.MenuComponent)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show()
- show(boolean)
- size()
- toString()
- transferFocus()
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paintComponents(java.awt.Graphics)
- paramString()
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- validate()
- validateTree()
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 )