bibliothek.gui.dock.util
Interface PaintableComponent

All Known Implementing Classes:
AbstractBubbleDockTitle, AbstractDockTitle, AbstractMultiDockTitle, AbstractPaintableComponent, ArchGradientPainter, ArchGradientPainterV4, BackgroundPanel, BaseTabComponent, BasicButtonDockTitle, BasicDockableDisplayer, BasicDockTitle, BasicStationTitle, BasicTabDockTitle, BubbleButtonDockTitle, BubbleDisplayer, BubbleDockTitle, BubbleTab, CombinedStackDockContentPane, ConfiguredBackgroundPanel, DisplayerContentPane, EclipseBasicDockableDisplayer, EclipseButtonTitle, EclipseDockableDisplayer2, EclipseTabPaneContent, FlatButtonTitle, FlatDockableDisplayer, FlatTab, NoTitleBarDisplayer, NoTitleDisplayer, OrientedLabel, RectGradientPainter, SmoothDefaultButtonTitle, SmoothDefaultStationTitle, SmoothDefaultTitle

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:

  1. paintBackground(Graphics)
  2. paintForeground(Graphics)
  3. paintBorder(Graphics)
  4. paintChildren(Graphics)
  5. paintOverlay(Graphics)

Author:
Benjamin Sigg

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

getComponent

Component getComponent()
Gets the Component which is to be painted.

Returns:
the item to paint

getTransparency

Transparency getTransparency()
Tells how much of this component is actually painted.

Returns:
the transparency effects of this component, not null

paintBackground

void paintBackground(Graphics g)
Invokes the standard algorithm that paints the background of the component. This method should be called at most once.

Parameters:
g - the graphics context to use, null to just inform this component that the background should not be painted automatically

paintForeground

void paintForeground(Graphics g)
Invokes the standard algorithm that paints the foreground of the component. This method should be called at most once.

Parameters:
g - the graphics context to use, null to just inform this component that the foreground should not be painted automatically

paintBorder

void paintBorder(Graphics g)
Invokes the standard algorithm that paints the border of the component. This method should be called at most once.

Parameters:
g - the graphics context to use, null to just inform this component that the background should not be painted automatically

paintChildren

void paintChildren(Graphics g)
Invokes the standard algorithm that paints the children of the component. This method should be called at most once.

Parameters:
g - the graphics context to use, null to just inform this component that the background should not be painted automatically

paintOverlay

void paintOverlay(Graphics g)
Invokes the standard algorithm that paints an overlay over the children of the component. This method should be called at most once.

Parameters:
g - the graphics context to use, null to just inform this component that the background should not be painted automatically