Package com.macrofocus.interval
Class AbstractMutableInterval
- java.lang.Object
-
- com.macrofocus.interval.AbstractMutableInterval
-
- All Implemented Interfaces:
Interval
,MutableInterval
- Direct Known Subclasses:
AbstractBoundedInterval
,ClosedInterval
public abstract class AbstractMutableInterval extends java.lang.Object implements MutableInterval
This class provides a skeletal implementation of the MutableInterval interface to minimize the effort required to implement this interface.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMutableInterval()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIntervalListener(IntervalListener listener)
void
addWeakIntervalListener(IntervalListener listener)
protected void
notifyIntervalChanged(IntervalEvent event)
void
removeIntervalListener(IntervalListener listener)
void
removeIntervalListeners()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.interval.Interval
contains, contains, contains, getEnd, getExtent, getStart, isDegenerate, isInverted, overlaps, overlaps
-
Methods inherited from interface com.macrofocus.interval.MutableInterval
getEndProperty, getStartProperty, setEnd, setExtent, setStart, setValue
-
-
-
-
Method Detail
-
addIntervalListener
public void addIntervalListener(IntervalListener listener)
- Specified by:
addIntervalListener
in interfaceInterval
-
addWeakIntervalListener
public void addWeakIntervalListener(IntervalListener listener)
- Specified by:
addWeakIntervalListener
in interfaceInterval
-
removeIntervalListener
public void removeIntervalListener(IntervalListener listener)
- Specified by:
removeIntervalListener
in interfaceInterval
-
removeIntervalListeners
public void removeIntervalListeners()
- Specified by:
removeIntervalListeners
in interfaceInterval
-
notifyIntervalChanged
protected void notifyIntervalChanged(IntervalEvent event)
-
-