borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
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
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.
public static final int FLAT = 0
public static final int LOWERED = 2
public static final int RAISED = 1
public BevelPanel()Constructs a BevelPanel component with an XYLayout layout manger.
public BevelPanel(int bevelInner, int bevelOuter)Constructs a BevelPanel component with an XYLayout layout manger.
Parameters:
public int getBevelInner() public void setBevelInner(int bevelInner)
The style of the inner edge. By default, RAISED. Can also be FLAT or LOWERED.
public int getBevelOuter() public void setBevelOuter(int bevelOuter)
The style of the outer edge. By default, FLAT. Can also be RAISED or LOWERED.
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).
public Insets getInsets()The thickness of the border of the panel.
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.
public Dimension getMinimumSize()
The smallest size that you will permit a layout manager to use for displaying the panel.
public Dimension getPreferredSize()
The preferred size, for placement by layout managers.
public boolean isSoft() public void setSoft(boolean soft)
Whether to use soft edge colors. By default, false.
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:
Overrides: java.awt.Container.paint(Graphics)
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.
public synchronized void addComponentListener(java.awt.event.ComponentListener l) public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
public synchronized void addContainerListener(java.awt.event.ContainerListener l) public void removeContainerListener(java.awt.event.ContainerListener l)
public synchronized void addFocusListener(java.awt.event.FocusListener l) public synchronized void removeFocusListener(java.awt.event.FocusListener l)
public synchronized void addKeyListener(java.awt.event.KeyListener l) public synchronized void removeKeyListener(java.awt.event.KeyListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener l) public synchronized void removeMouseListener(java.awt.event.MouseListener l)
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)