|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
bibliothek.gui.dock.util.BackgroundPanel
public abstract class BackgroundPanel
This JPanel implements PaintableComponent and
can use a BackgroundAlgorithm to paint its background.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
BackgroundPanel(LayoutManager layout,
Transparency transparency)
Creates a new panel setting a default LayoutManager. |
|
BackgroundPanel(Transparency transparency)
Creates a new panel. |
|
| Method Summary | |
|---|---|
protected abstract void |
configure(Transparency transparency)
Called if the Transparency of the BackgroundAlgorithm changed, this panel
should configure itself to met the requested transparency settings. |
BackgroundAlgorithm |
getBackgroundAlgorithm()
Gets the algorithm that paints the background of this panel. |
Component |
getComponent()
Gets the Component which is to be painted. |
Transparency |
getTransparency()
Tells how much of this component is actually painted. |
void |
paint(Graphics g)
|
void |
paintBackground(Graphics g)
Invokes the standard algorithm that paints the background of the component. |
void |
paintBorder(Graphics g)
Invokes the standard algorithm that paints the border of the component. |
void |
paintChildren(Graphics g)
Invokes the standard algorithm that paints the children of the component. |
protected void |
paintComponent(Graphics g)
|
void |
paintForeground(Graphics g)
Invokes the standard algorithm that paints the foreground of the component. |
void |
paintOverlay(Graphics g)
Invokes the standard algorithm that paints an overlay over the children of the component. |
void |
setBackground(BackgroundAlgorithm background)
Sets the background algorithm that should be used by this panel. |
void |
setTransparency(Transparency transparency)
|
protected abstract void |
setupRenderingHints(Graphics g)
Called before painting on this panel happens. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BackgroundPanel(Transparency transparency)
transparency - how many pixels are painted
public BackgroundPanel(LayoutManager layout,
Transparency transparency)
LayoutManager.
layout - the layout manager, can be nulltransparency - how many pixels are painted| Method Detail |
|---|
public void setBackground(BackgroundAlgorithm background)
background - the background algorithmprotected abstract void configure(Transparency transparency)
Transparency of the BackgroundAlgorithm changed, this panel
should configure itself to met the requested transparency settings.
transparency - the setting to usepublic BackgroundAlgorithm getBackgroundAlgorithm()
nullpublic void paint(Graphics g)
paint in class JComponentprotected abstract void setupRenderingHints(Graphics g)
g.
g - the painting contextprotected void paintComponent(Graphics g)
paintComponent in class JComponentpublic void setTransparency(Transparency transparency)
public Transparency getTransparency()
PaintableComponent
getTransparency in interface PaintableComponentnullpublic Component getComponent()
PaintableComponentComponent which is to be painted.
getComponent in interface PaintableComponentpublic void paintBackground(Graphics g)
PaintableComponent
paintBackground in interface PaintableComponentg - the graphics context to use, null to just inform
this component that the background should not be painted automaticallypublic void paintForeground(Graphics g)
PaintableComponent
paintForeground in interface PaintableComponentg - the graphics context to use, null to just inform
this component that the foreground should not be painted automaticallypublic void paintBorder(Graphics g)
PaintableComponent
paintBorder in interface PaintableComponentpaintBorder in class JComponentg - the graphics context to use, null to just inform
this component that the background should not be painted automaticallypublic void paintChildren(Graphics g)
PaintableComponent
paintChildren in interface PaintableComponentpaintChildren in class JComponentg - the graphics context to use, null to just inform
this component that the background should not be painted automaticallypublic void paintOverlay(Graphics g)
PaintableComponent
paintOverlay in interface PaintableComponentg - the graphics context to use, null to just inform
this component that the background should not be painted automatically
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||