|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PaintableComponent
A wrapper around a Component whose paint algorithm may be
modified by a BackgroundPaint. This provider of this method may
paint some parts automatically if the appropriate method is not called. The usual
order in which the paint methods should be executed is:
paintBackground(Graphics) paintForeground(Graphics) paintBorder(Graphics) paintChildren(Graphics) paintOverlay(Graphics)
| Method Summary | |
|---|---|
java.awt.Component |
getComponent()
Gets the Component which is to be painted. |
boolean |
isSolid()
If a component is solid, then it paints every pixel with a non-transparent color. |
boolean |
isTransparent()
If a component is transparent, then it does not paint anything (except the border). |
void |
paintBackground(java.awt.Graphics g)
Invokes the standard algorithm that paints the background of the component. |
void |
paintBorder(java.awt.Graphics g)
Invokes the standard algorithm that paints the border of the component. |
void |
paintChildren(java.awt.Graphics g)
Invokes the standard algorithm that paints the children of the component. |
void |
paintForeground(java.awt.Graphics g)
Invokes the standard algorithm that paints the foreground of the component. |
void |
paintOverlay(java.awt.Graphics g)
Invokes the standard algorithm that paints an overlay over the children of the component. |
| Method Detail |
|---|
java.awt.Component getComponent()
Component which is to be painted.
boolean isTransparent()
boolean isSolid()
void paintBackground(java.awt.Graphics g)
g - the graphics context to use, null to just inform
this component that the background should not be painted automaticallyvoid paintForeground(java.awt.Graphics g)
g - the graphics context to use, null to just inform
this component that the foreground should not be painted automaticallyvoid paintBorder(java.awt.Graphics g)
g - the graphics context to use, null to just inform
this component that the background should not be painted automaticallyvoid paintChildren(java.awt.Graphics g)
g - the graphics context to use, null to just inform
this component that the background should not be painted automaticallyvoid paintOverlay(java.awt.Graphics g)
g - 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 | |||||||||