Class ModelChange.SupportImpl
- java.lang.Object
-
- org.jungrapht.visualization.layout.event.ModelChange.SupportImpl
-
- All Implemented Interfaces:
ModelChange.Support
- Enclosing interface:
- ModelChange
public static class ModelChange.SupportImpl extends Object implements ModelChange.Support
implementation of support. Manages a List of listeners
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
fireEvents
to fire or not to fire....protected List<ModelChange.Listener>
modelChangeListeners
listeners for these changes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModelChangeListener(ModelChange.Listener l)
void
fireModelChanged()
List<ModelChange.Listener>
getModelChangeListeners()
boolean
isFireEvents()
void
removeModelChangeListener(ModelChange.Listener l)
void
setFireEvents(boolean fireEvents)
-
-
-
Field Detail
-
fireEvents
protected boolean fireEvents
to fire or not to fire....
-
modelChangeListeners
protected List<ModelChange.Listener> modelChangeListeners
listeners for these changes
-
-
Method Detail
-
isFireEvents
public boolean isFireEvents()
- Specified by:
isFireEvents
in interfaceModelChange.Support
-
setFireEvents
public void setFireEvents(boolean fireEvents)
- Specified by:
setFireEvents
in interfaceModelChange.Support
-
addModelChangeListener
public void addModelChangeListener(ModelChange.Listener l)
- Specified by:
addModelChangeListener
in interfaceModelChange.Support
-
removeModelChangeListener
public void removeModelChangeListener(ModelChange.Listener l)
- Specified by:
removeModelChangeListener
in interfaceModelChange.Support
-
getModelChangeListeners
public List<ModelChange.Listener> getModelChangeListeners()
- Specified by:
getModelChangeListeners
in interfaceModelChange.Support
-
fireModelChanged
public void fireModelChanged()
- Specified by:
fireModelChanged
in interfaceModelChange.Support
-
-