All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JBufferedPane
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JBufferedPane
- public class JBufferedPane
- extends JComponent
- implements Accessible
A lightweight panel that provides double buffering support.
-
darkGray
-
-
ETCHED
-
-
gray
-
-
lightGray
-
-
LOWERED
-
-
NONE
-
-
RAISED
-
-
JBufferedPane()
- Creates a Lightweight Panel
-
JBufferedPane(boolean)
- Creates a Lightweight Panel.
-
JBufferedPane(LayoutManager)
- Creates a new panel with the specified layout manager.
-
createOffscreenImage()
- Creates the offscreen buffer.
-
getAccessibleRole()
- Get the role of this object.
-
getBorderStyle()
- Returns the style of the border.
-
getOffscreenImage()
- Returns the offscreen buffer.
-
invalidate()
- Invalidates the panel.
-
isBuffered()
- Returns whether this panel is double buffered.
-
isOpaque()
- Returns true if this component is completely opaque.
-
paint(Graphics)
- Paints the panel
-
paintBorder(Graphics)
-
-
setBorderStyle(int)
- Set the style of the border.
-
setBounds(int, int, int, int)
- Override setBounds to clear the offscreen buffer cache.
-
setBuffered(boolean)
- Sets whether this panel is double buffered.
-
setOpaque(boolean)
-
-
validate()
- Validates the panel.
NONE
public static final int NONE
LOWERED
public static final int LOWERED
RAISED
public static final int RAISED
ETCHED
public static final int ETCHED
darkGray
public static final Color darkGray
gray
public static final Color gray
lightGray
public static final Color lightGray
JBufferedPane
public JBufferedPane()
- Creates a Lightweight Panel
JBufferedPane
public JBufferedPane(LayoutManager layout)
- Creates a new panel with the specified layout manager.
- Parameters:
- layout - the layout manager for this panel
JBufferedPane
public JBufferedPane(boolean buffered)
- Creates a Lightweight Panel. If buffered is "true", then
all painting will be double buffered.
isBuffered
public boolean isBuffered()
- Returns whether this panel is double buffered.
setBuffered
public void setBuffered(boolean b)
- Sets whether this panel is double buffered.
getBorderStyle
public int getBorderStyle()
- Returns the style of the border.
PENDING(jeff) remove this method
setBorderStyle
public void setBorderStyle(int borderStyle)
- Set the style of the border.
PENDING(jeff) remove this method
validate
public void validate()
- Validates the panel. If the panel needs double buffering,
it probes the containment tree upwards to determine if a
parent is already double buffering. If one is found, then
this panel will not do the buffering.
- Overrides:
- validate in class Container
getOffscreenImage
public Image getOffscreenImage()
- Returns the offscreen buffer. The buffer that is returned
should be used immediatly. Do not keep a local cache as the
buffer can be destroyed and recreated during validation or
resizing.
createOffscreenImage
protected void createOffscreenImage()
- Creates the offscreen buffer.
invalidate
public void invalidate()
- Invalidates the panel.
- Overrides:
- invalidate in class Container
setBounds
public void setBounds(int x,
int y,
int w,
int h)
- Override setBounds to clear the offscreen buffer cache.
- Overrides:
- setBounds in class JComponent
isOpaque
public boolean isOpaque()
- Returns true if this component is completely opaque.
- Overrides:
- isOpaque in class JComponent
setOpaque
public void setOpaque(boolean opaque)
paint
public void paint(Graphics g)
- Paints the panel
- Overrides:
- paint in class JComponent
paintBorder
public void paintBorder(Graphics g)
getAccessibleRole
public AccessibleRole getAccessibleRole()
- Get the role of this object.
- Returns:
- an instance of AccessibleRole describing the role of the object
- Overrides:
- getAccessibleRole in class JComponent
All Packages Class Hierarchy This Package Previous Next Index