info.monitorenter.gui.chart.controls
Class LayoutFactory.BasicPropertyAdaptSupport
java.lang.Object
info.monitorenter.gui.chart.controls.LayoutFactory.BasicPropertyAdaptSupport
- All Implemented Interfaces:
- PropertyChangeListener, EventListener
- Enclosing class:
- LayoutFactory
public static class LayoutFactory.BasicPropertyAdaptSupport
- extends Object
- implements PropertyChangeListener
Implementation for a PropertyChangeListener
that adpapts a wrapped
JComponent
to the following properties.
- background color
- foreground color (text)
- font
- Author:
- Achim Westermann
m_delegate
protected WeakReference m_delegate
- The weak reference to the component to adapt properties on.
LayoutFactory.BasicPropertyAdaptSupport
public LayoutFactory.BasicPropertyAdaptSupport(Component delegate,
Component adaptee)
- Parameters:
delegate
- The component to adapt the properties on.adaptee
- The peer component delegate will be adapted to.
finalize
public void finalize()
throws Throwable
- Removes the listener for basic property changes from the component to adapt to.
- Overrides:
finalize
in class Object
- Throws:
Throwable
- if sth. goes wrong cleaning up.- See Also:
Object.finalize()
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange
in interface PropertyChangeListener
- See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
Copyright © 2001 - 2007 LGPL, All Rights Footloose.