public abstract class BackgroundAlgorithm extends Object implements BackgroundComponent
BackgroundPaint, BackgroundComponent
and PaintableComponent at the same time.KIND| Constructor and Description |
|---|
BackgroundAlgorithm(Path kind,
String id)
Creates a new algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentpublic 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()
BackgroundComponentrepaint 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()
BackgroundComponentgetTransparency in interface BackgroundComponentBackgroundComponent.setTransparency(Transparency)public BackgroundPaint getPaint()
BackgroundPaint of this UIValue.nullpublic 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 useCopyright © 2017 Docking Frames. All rights reserved.