buoy.internal
Class WidgetContainerPanel
JPanel
buoy.internal.WidgetContainerPanel
public class WidgetContainerPanel
extends JPanel
This is a JPanel subclass, which is used as the Component for many different WidgetContainers. When
paintComponent() is called, it optionally fills itself with its background color then sends out a
RepaintEvent.
boolean | isOpaque() - This component is opaque if its WidgetContainer is set to be opaque.
|
void | paintComponent(Graphics g) - Optionally fill the component with its background color, then send out a RepaintEvent.
|
WidgetContainerPanel
public WidgetContainerPanel(WidgetContainer container)
Create a new WidgetContainerPanel.
container
- the WidgetContainer this will be the component for
isOpaque
public boolean isOpaque()
This component is opaque if its WidgetContainer is set to be opaque.
paintComponent
public void paintComponent(Graphics g)
Optionally fill the component with its background color, then send out a RepaintEvent.
Written by Peter Eastman.