@ColorCodes(value="stack.border") public class LinePainter extends java.lang.Object implements TabPanePainter
Constructor and Description |
---|
LinePainter(EclipseTabPane pane)
Creates a new painter.
|
Modifier and Type | Method and Description |
---|---|
void |
paintBackground(java.awt.Graphics g)
Paints the decorations of the
EclipseTabPane with this
this painter is associated. |
void |
paintForeground(java.awt.Graphics g)
Paints the decorations of the
EclipseTabPane with which
this painter is associated. |
void |
setController(DockController controller)
Sets the controller for which this painter is used.
|
public LinePainter(EclipseTabPane pane)
pane
- the component for which this painter will workpublic void setController(DockController controller)
TabPanePainter
setController
in interface TabPanePainter
controller
- the controller, can be null
public void paintBackground(java.awt.Graphics g)
TabPanePainter
EclipseTabPane
with this
this painter is associated. This method is called before any Component
is painted. The graphics object is such that its point 0/0 falls together
with the point 0/0 of CombinedStackDockComponent.getAvailableArea()
.paintBackground
in interface TabPanePainter
g
- graphics context to use for paintingpublic void paintForeground(java.awt.Graphics g)
TabPanePainter
EclipseTabPane
with which
this painter is associated. This method is called after the Component
s
have been painted. The graphics object is such that
its point 0/0 falls together with the point 0/0 of
CombinedStackDockComponent.getAvailableArea()
.paintForeground
in interface TabPanePainter
g
- the graphics used to paint on tabStrip