org.jplot2d.swing.outline
Class PlotOutline
- java.lang.Object
-
- org.jplot2d.swing.outline.PlotOutline
-
- All Implemented Interfaces:
- java.util.EventListener, ElementChangeListener
public class PlotOutline extends java.lang.Object implements ElementChangeListener
The PlotOutlineManager manage a plot tree. It register itself to environment as an ElementChangeListener. Whenever a plot property changed, this PlotOutline will notify the registered ShowPropertiesAction to refresh its contents. Also when user choose a new tree node, this PlotOutline will notify the registered ShowPropertiesAction to show the properties.
-
-
Constructor Summary
Constructors Constructor and Description PlotOutline(PlotEnvironment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomponentAdded(ElementChangeEvent evt)Called after a component added to a containervoidcomponentRemoved(ElementChangeEvent evt)Called after a component is removed form its containervoidcomponentRemoving(ElementChangeEvent evt)Called before a component is removed form its containerjavax.swing.JComponentgetComponent()voidpropertiesChanged(ElementChangeEvent evt)Called after properties of an element is changed.voidpropertyChangesProcessed(ElementChangeEvent evt)Called after the property changes has been processed.voidsetShowPropertiesAction(ShowPropertiesAction action)voidshowCurrentProperties()
-
-
-
Constructor Detail
-
PlotOutline
public PlotOutline(PlotEnvironment env)
-
-
Method Detail
-
getComponent
public javax.swing.JComponent getComponent()
-
componentAdded
public void componentAdded(ElementChangeEvent evt)
Description copied from interface:ElementChangeListenerCalled after a component added to a container- Specified by:
componentAddedin interfaceElementChangeListener- Parameters:
evt- the ElementChangeEvent. The element of this event is the added component
-
componentRemoving
public void componentRemoving(ElementChangeEvent evt)
Description copied from interface:ElementChangeListenerCalled before a component is removed form its container- Specified by:
componentRemovingin interfaceElementChangeListener- Parameters:
evt- the ElementChangeEvent. The element of this event is the removing component
-
componentRemoved
public void componentRemoved(ElementChangeEvent evt)
Description copied from interface:ElementChangeListenerCalled after a component is removed form its container- Specified by:
componentRemovedin interfaceElementChangeListener- Parameters:
evt- the ElementChangeEvent. The element of this event is the removed component
-
propertiesChanged
public void propertiesChanged(ElementChangeEvent evt)
Description copied from interface:ElementChangeListenerCalled after properties of an element is changed.- Specified by:
propertiesChangedin interfaceElementChangeListener- Parameters:
evt- event the ElementChangeEvent. The element of this event is the element whoes properties is changed
-
propertyChangesProcessed
public void propertyChangesProcessed(ElementChangeEvent evt)
Description copied from interface:ElementChangeListenerCalled after the property changes has been processed.- Specified by:
propertyChangesProcessedin interfaceElementChangeListener- Parameters:
evt- the ElementChangeEvent. The element of this event isnull
-
setShowPropertiesAction
public void setShowPropertiesAction(ShowPropertiesAction action)
-
showCurrentProperties
public void showCurrentProperties()
-
-
DMelt 3.0 © DataMelt by jWork.ORG