|
||||||||||
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
. The 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 | |
---|---|
Component |
getComponent()
Gets the Component which is to be painted. |
Transparency |
getTransparency()
Tells how much of this component is actually painted. |
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. |
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. |
Method Detail |
---|
Component getComponent()
Component
which is to be painted.
Transparency getTransparency()
null
void paintBackground(Graphics g)
g
- the graphics context to use, null
to just inform
this component that the background should not be painted automaticallyvoid paintForeground(Graphics g)
g
- the graphics context to use, null
to just inform
this component that the foreground should not be painted automaticallyvoid paintBorder(Graphics g)
g
- the graphics context to use, null
to just inform
this component that the background should not be painted automaticallyvoid paintChildren(Graphics g)
g
- the graphics context to use, null
to just inform
this component that the background should not be painted automaticallyvoid paintOverlay(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 |