|
||||||||||
| 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,
String id)
Creates a new algorithm. |
|
| Method Summary | |
|---|---|
void |
addListener(BackgroundAlgorithmListener listener)
Adds an observer to this algorithm. |
BackgroundPaint |
getPaint()
Gets the BackgroundPaint of this UIValue. |
Transparency |
getTransparency()
Tells whether this component is transparent or not. |
void |
paint(PaintableComponent component,
Graphics g)
Paints component using the graphics context g. |
void |
removeListener(BackgroundAlgorithmListener listener)
Removes the observer listener from this algorithm. |
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. |
void |
setTransparency(Transparency transparency)
Informs this component whether it should be transparent or not. |
| 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,
String id)
kind - the kind of UIValue this isid - the identifier of this UIValue| Method Detail |
|---|
public void addListener(BackgroundAlgorithmListener listener)
listener - the new observer, not nullpublic void removeListener(BackgroundAlgorithmListener listener)
listener from this algorithm.
listener - the listener to removepublic 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 void setTransparency(Transparency transparency)
BackgroundComponentScreenDockWindow usually do not support any transparency at all.DockTitle or a Tab, usually paint some parts of their background even if transparent.BackgroundPaint, any component can be made to look as if transparent.
setTransparency in interface BackgroundComponenttransparency - whether to paint a background or notpublic Transparency getTransparency()
BackgroundComponent
getTransparency in interface BackgroundComponentBackgroundComponent.setTransparency(Transparency)public BackgroundPaint getPaint()
BackgroundPaint of this UIValue.
null
public void paint(PaintableComponent component,
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 | |||||||||