jbcl.control Package
BevelPanel component
java.lang.Object
+----java.awt.Component
+----java.awt.Container
+----javax.swing.JComponent
+----com.borland.jbcl.view.BeanPanel
+----com.borland.jbcl.control.BevelPanel
+----com.borland.jbcl.control.ButtonBar
+----com.borland.jbcl.control.CheckboxPanel
+----com.borland.jbcl.control.ColorChooserPanel
+----com.borland.jbcl.control.StatusBar
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 its 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
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- enableInputMethods(boolean)
- 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)
- processInputMethodEvent(java.awt.event.InputMethodEvent)
- remove(java.awt.MenuComponent)
- removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
- 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()
- findComponentAt(int, int)
- findComponentAt(java.awt.Point)
- 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)
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- validate()
- validateTree()
- 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(javax.swing.KeyStroke)
- getBounds(java.awt.Rectangle)
- getClientProperty(java.lang.Object)
- getComponentGraphics(java.awt.Graphics)
- getConditionForKeyStroke(javax.swing.KeyStroke)
- getInsets(java.awt.Insets)
- 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)
- paramString()
- processComponentKeyEvent(java.awt.event.KeyEvent)
- putClientProperty(java.lang.Object, java.lang.Object)
- registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
- registerKeyboardAction(java.awt.event.ActionListener, javax.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(javax.swing.plaf.ComponentUI)
- unregisterKeyboardAction(javax.swing.KeyStroke)
- update(java.awt.Graphics)
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(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(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(Graphics g)
Paints or repaints the BevelPanel
.
Parameters:
g
- The Graphics object used for painting.
Overrides:
com.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:
javax.swing.JComponent.updateUI()
BevelPanel event listeners
This component is a source for the following event sets.
action
public synchronized void addActionListener(ActionListener l)
public synchronized void removeActionListener(ActionListener l)
ancestor
public void addAncestorListener(javax.swing.event.AncestorListener )
public void removeAncestorListener(javax.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 synchronized void removeContainerListener(java.awt.event.ContainerListener )
focus
public synchronized void addFocusListener(java.awt.event.FocusListener )
public synchronized void removeFocusListener(java.awt.event.FocusListener )
inputMethod
public synchronized void addInputMethodListener(java.awt.event.InputMethodListener )
public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )
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 )