Class LayoutSizeChange.SupportImpl<V>
- java.lang.Object
-
- org.jungrapht.visualization.layout.event.LayoutSizeChange.SupportImpl<V>
-
- All Implemented Interfaces:
LayoutSizeChange.Support<V>
- Enclosing interface:
- LayoutSizeChange
public static class LayoutSizeChange.SupportImpl<V> extends Object implements LayoutSizeChange.Support<V>
implementations for a producer of this event model
-
-
Field Summary
Fields Modifier and Type Field Description protected List<LayoutSizeChange.Listener<V>>changeListenerslisteners for these changesprotected booleanfireEventsto fire or not to fire....
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutSizeChangeListener(LayoutSizeChange.Listener<V> l)voidfireLayoutSizeChanged(LayoutModel<V> layoutModel, int width, int height)List<LayoutSizeChange.Listener<V>>getLayoutSizeChangeListeners()booleanisFireEvents()voidremoveLayoutSizeChangeListener(LayoutSizeChange.Listener<V> l)voidsetFireEvents(boolean fireEvents)
-
-
-
Field Detail
-
fireEvents
protected boolean fireEvents
to fire or not to fire....
-
changeListeners
protected List<LayoutSizeChange.Listener<V>> changeListeners
listeners for these changes
-
-
Method Detail
-
isFireEvents
public boolean isFireEvents()
- Specified by:
isFireEventsin interfaceLayoutSizeChange.Support<V>
-
setFireEvents
public void setFireEvents(boolean fireEvents)
- Specified by:
setFireEventsin interfaceLayoutSizeChange.Support<V>
-
addLayoutSizeChangeListener
public void addLayoutSizeChangeListener(LayoutSizeChange.Listener<V> l)
- Specified by:
addLayoutSizeChangeListenerin interfaceLayoutSizeChange.Support<V>
-
removeLayoutSizeChangeListener
public void removeLayoutSizeChangeListener(LayoutSizeChange.Listener<V> l)
- Specified by:
removeLayoutSizeChangeListenerin interfaceLayoutSizeChange.Support<V>
-
getLayoutSizeChangeListeners
public List<LayoutSizeChange.Listener<V>> getLayoutSizeChangeListeners()
- Specified by:
getLayoutSizeChangeListenersin interfaceLayoutSizeChange.Support<V>
-
fireLayoutSizeChanged
public void fireLayoutSizeChanged(LayoutModel<V> layoutModel, int width, int height)
- Specified by:
fireLayoutSizeChangedin interfaceLayoutSizeChange.Support<V>- Parameters:
layoutModel- the layoutModelwidth- thewidthof theLayoutModelheight- theheightof theLayoutModel
-
-