Package com.treemap.treeplot
Class AbstractTreePlotSettings<Color,Font>
java.lang.Object
com.treemap.treeplot.AbstractTreePlotSettings<Color,Font>
- All Implemented Interfaces:
PropertyChange,TreePlotSettings<Color,Font>
- Direct Known Subclasses:
DefaultTreePlotSettings
public abstract class AbstractTreePlotSettings<Color,Font>
extends Object
implements TreePlotSettings<Color,Font>
This class provides a skeletal implementation of the TreeMapSettings interface to minimize the effort required to implement this interface.
-
Field Summary
Fields inherited from interface com.treemap.treeplot.TreePlotSettings
PROPERTY_COLOR_FIELD, PROPERTY_DEPTH, PROPERTY_GROUP_BY_FIELD, PROPERTY_HIDE_FILTER_RESULTS, PROPERTY_HIDE_SEARCH_RESULTS, PROPERTY_PROBING_COLOR, PROPERTY_RENDERING, PROPERTY_SELECTION_COLOR, PROPERTY_SIZE_FIELD, PROPERTY_TOOLTIP_BACKGROUND, PROPERTY_TOOLTIP_FIELD, PROPERTY_TREEPLOT_BACKGROUND_COLOR, PROPERTY_TREEPLOT_BUBBLE_SIZE, PROPERTY_TREEPLOT_GRID_COLOR, PROPERTY_TREEPLOT_GRID_THICKNESS, PROPERTY_TREEPLOT_GROUPBY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PropertyChangeListener to the listener list.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.voidAdd a listener for receiving interesting events about changes in the settings.protected voidfirePropertyChange(String propertyName, boolean oldValue, boolean newValue) Support for reporting bound property changes for boolean properties.protected voidfirePropertyChange(String propertyName, int oldValue, int newValue) Support for reporting bound property changes for integer properties.protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes for Object properties.Returns an array of all the property change listeners registered on this component.getPropertyChangeListeners(String propertyName) Returns an array of all the listeners which have been associated with the named property.protected voidvoidRemoves a PropertyChangeListener from the listener list.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Removes a PropertyChangeListener from the listener list for a specific property.voidRemove all the listener from the list of listeners that should be notified about changes in the settings.voidRemove a listener from the list of listeners that should be notified about changes in the settings.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.treemap.treeplot.TreePlotSettings
getBackground, getBackgroundProperty, getBubbleSizeInterval, getColorTreeMapField, getDefaultFieldSettings, getDepth, getFieldSettings, getGridColor, getGridColorProperty, getGridThickness, getGridThicknessInterval, getGroupBy, getGroupByTreeMapFields, getProbingColor, getRendering, getSelectionColor, getShowPopup, getSizeTreeMapField, getTooltipBackground, getToolTipTreeMapFields, getValue, groupByProperty, isHideFilterResults, isHideSearchResults, resetToDefaults, setBackground, setColor, setColorByName, setColorTreeMapField, setDepth, setGridColor, setGridThickness, setGroupBy, setGroupBy, setGroupByByNames, setGroupByTreeMapFields, setHideFilterResults, setHideSearchResults, setProbingColor, setRendering, setSelectionColor, setShowPopup, setSize, setSizeByName, setSizeTreeMapField, setTooltipBackground, setToolTipTreeMapFields
-
Constructor Details
-
AbstractTreePlotSettings
protected AbstractTreePlotSettings()
-
-
Method Details
-
addTreeMapSettingsListener
Add a listener for receiving interesting events about changes in the settings.- Specified by:
addTreeMapSettingsListenerin interfaceTreePlotSettings<Color,Font> - Parameters:
listener- the listener to add.
-
removeTreeMapSettingsListener
Remove a listener from the list of listeners that should be notified about changes in the settings.- Specified by:
removeTreeMapSettingsListenerin interfaceTreePlotSettings<Color,Font> - Parameters:
listener- the listener to remove.
-
removeTreeMapSettingsListener
public void removeTreeMapSettingsListener()Remove all the listener from the list of listeners that should be notified about changes in the settings.- Specified by:
removeTreeMapSettingsListenerin interfaceTreePlotSettings<Color,Font>
-
notifySettingsChanged
-
addPropertyChangeListener
Adds a PropertyChangeListener to the listener list.- Specified by:
addPropertyChangeListenerin interfacePropertyChange- Specified by:
addPropertyChangeListenerin interfaceTreePlotSettings<Color,Font> - Parameters:
listener- the PropertyChangeListener to be added- See Also:
-
removePropertyChangeListener
Removes a PropertyChangeListener from the listener list. This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class. If listener is null, no exception is thrown and no action is performed.- Specified by:
removePropertyChangeListenerin interfacePropertyChange- Specified by:
removePropertyChangeListenerin interfaceTreePlotSettings<Color,Font> - Parameters:
listener- the PropertyChangeListener to be removed- See Also:
-
getPropertyChangeListeners
Returns an array of all the property change listeners registered on this component.- Returns:
- all of this component's
PropertyChangeListeners or an empty array if no property change listeners are currently registered - Since:
- 1.4
- See Also:
-
addPropertyChangeListener
Adds a PropertyChangeListener to the listener list for a specific property.- Specified by:
addPropertyChangeListenerin interfacePropertyChange- Specified by:
addPropertyChangeListenerin interfaceTreePlotSettings<Color,Font> - Parameters:
propertyName- one of the property names listed abovelistener- the PropertyChangeListener to be added- See Also:
-
removePropertyChangeListener
Removes a PropertyChangeListener from the listener list for a specific property. This method should be used to remove PropertyChangeListeners that were registered for a specific bound property. If listener is null, no exception is thrown and no action is performed.- Specified by:
removePropertyChangeListenerin interfacePropertyChange- Specified by:
removePropertyChangeListenerin interfaceTreePlotSettings<Color,Font> - Parameters:
propertyName- a valid property namelistener- the PropertyChangeListener to be removed- See Also:
-
getPropertyChangeListeners
Returns an array of all the listeners which have been associated with the named property.- Parameters:
propertyName- the property name- Returns:
- all of the
PropertyChangeListenersassociated with the named property or an empty array if no listeners have been added - Since:
- 1.4
- See Also:
-
firePropertyChange
Support for reporting bound property changes for Object properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.- Parameters:
propertyName- the property whose value has changedoldValue- the property's previous valuenewValue- the property's new value
-
firePropertyChange
Support for reporting bound property changes for boolean properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.- Parameters:
propertyName- the property whose value has changedoldValue- the property's previous valuenewValue- the property's new value
-
firePropertyChange
Support for reporting bound property changes for integer properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.- Parameters:
propertyName- the property whose value has changedoldValue- the property's previous valuenewValue- the property's new value
-