Class LayoutStateChange.SupportImpl
- java.lang.Object
-
- org.jungrapht.visualization.layout.event.LayoutStateChange.SupportImpl
-
- All Implemented Interfaces:
LayoutStateChange.Support
- Enclosing interface:
- LayoutStateChange
public static class LayoutStateChange.SupportImpl extends Object implements LayoutStateChange.Support
implementations for a producer of this event model
-
-
Field Summary
Fields Modifier and Type Field Description protected List<LayoutStateChange.Listener>
changeListeners
listeners for these changesprotected boolean
fireEvents
to fire or not to fire....
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayoutStateChangeListener(LayoutStateChange.Listener l)
void
fireLayoutStateChanged(LayoutModel layoutModel, boolean state)
List<LayoutStateChange.Listener>
getLayoutStateChangeListeners()
boolean
isFireEvents()
void
removeLayoutStateChangeListener(LayoutStateChange.Listener l)
void
setFireEvents(boolean fireEvents)
-
-
-
Field Detail
-
fireEvents
protected boolean fireEvents
to fire or not to fire....
-
changeListeners
protected List<LayoutStateChange.Listener> changeListeners
listeners for these changes
-
-
Method Detail
-
isFireEvents
public boolean isFireEvents()
- Specified by:
isFireEvents
in interfaceLayoutStateChange.Support
-
setFireEvents
public void setFireEvents(boolean fireEvents)
- Specified by:
setFireEvents
in interfaceLayoutStateChange.Support
-
addLayoutStateChangeListener
public void addLayoutStateChangeListener(LayoutStateChange.Listener l)
- Specified by:
addLayoutStateChangeListener
in interfaceLayoutStateChange.Support
-
removeLayoutStateChangeListener
public void removeLayoutStateChangeListener(LayoutStateChange.Listener l)
- Specified by:
removeLayoutStateChangeListener
in interfaceLayoutStateChange.Support
-
getLayoutStateChangeListeners
public List<LayoutStateChange.Listener> getLayoutStateChangeListeners()
- Specified by:
getLayoutStateChangeListeners
in interfaceLayoutStateChange.Support
-
fireLayoutStateChanged
public void fireLayoutStateChanged(LayoutModel layoutModel, boolean state)
- Specified by:
fireLayoutStateChanged
in interfaceLayoutStateChange.Support
- Parameters:
layoutModel
- the layoutModelstate
-true
if the layoutModel is active,false
otherwise
-
-