public interface PaintableComponent
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:
Modifier and Type | Method and Description |
---|---|
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.
|
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