|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.util.BackgroundAlgorithm
public abstract class BackgroundAlgorithm
A utility class for managing BackgroundPaint, BackgroundComponent
and PaintableComponent at the same time.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.util.BackgroundComponent |
|---|
KIND |
| Constructor Summary | |
|---|---|
BackgroundAlgorithm(Path kind,
java.lang.String id)
Creates a new algorithm. |
|
| Method Summary | |
|---|---|
BackgroundPaint |
getPaint()
Gets the BackgroundPaint of this UIValue. |
void |
paint(PaintableComponent component,
java.awt.Graphics g)
Paints component using the graphics context g. |
void |
repaint()
Informs this component that it should be repainted. |
void |
set(BackgroundPaint value)
Called when the underlying resource of this UIValue changes. |
void |
setController(DockController controller)
Sets the source of the BackgroundPaint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.util.BackgroundComponent |
|---|
getComponent |
| Constructor Detail |
|---|
public BackgroundAlgorithm(Path kind,
java.lang.String id)
kind - the kind of UIValue this isid - the identifier of this UIValue| Method Detail |
|---|
public void setController(DockController controller)
BackgroundPaint.
controller - the new controller, can be nullpublic void repaint()
BackgroundComponent
repaint in interface BackgroundComponentpublic void set(BackgroundPaint value)
UIValueUIValue changes.
set in interface UIValue<BackgroundPaint>value - the new valuepublic BackgroundPaint getPaint()
BackgroundPaint of this UIValue.
null
public void paint(PaintableComponent component,
java.awt.Graphics g)
component using the graphics context g. This method
ensures that PaintableComponent.paintBackground(Graphics) and
PaintableComponent.paintForeground(Graphics) are not called with a null argument.
component does not need to track how often its paint-methods are called, that is done
by this method.
component - the component to paintg - the graphics context to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||