Package com.macrofocus.common.interval
Class TransformBoundedInterval
java.lang.Object
com.macrofocus.common.interval.AbstractMutableInterval
com.macrofocus.common.interval.AbstractBoundedInterval
com.macrofocus.common.interval.TransformBoundedInterval
- All Implemented Interfaces:
BoundedInterval
,Interval
,MutableBoundedInterval
,MutableInterval
public class TransformBoundedInterval
extends AbstractBoundedInterval
implements MutableBoundedInterval
-
Constructor Summary
ConstructorsConstructorDescriptionTransformBoundedInterval
(MutableBoundedInterval interval, MutableProperty<Transform> scale) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double value) Tests if this interval contains the specified valueboolean
containsInterval
(Interval interval) Tests if this interval contains the specified intervalboolean
containsStartEnd
(double start, double end) Tests if this interval contains the specified intervaldouble
getEnd()
double
double
double
double
double
double
getStart()
boolean
Tests whether the starting and ending values are the sameboolean
boolean
boolean
overlaps
(double start, double end) Tests if this interval overlaps the specified interval.boolean
overlapsInterval
(Interval interval) Tests if this interval overlaps the specified interval.void
reset()
void
setEnd
(double value) void
setExtent
(double extent) void
setMaximum
(double maximum) void
setMaximumExtent
(double maximumExtent) void
setMinimum
(double minimum) void
setMinimumExtent
(double minimumExtent) void
setMinMax
(double min, double max) void
setMinMaxExtent
(double min, double max, double minExtent, double maxExtent) void
setStart
(double value) void
setValue
(double value, double extent) toString()
Methods inherited from class com.macrofocus.common.interval.AbstractBoundedInterval
addBoundedIntervalListener, addWeakBoundedIntervalListener, isFullRange, notifyBoundedIntervalChanged, removeBoundedIntervalListener, removeBoundedIntervalListeners
Methods inherited from class com.macrofocus.common.interval.AbstractMutableInterval
addIntervalListener, addWeakIntervalListener, notifyIntervalChanged, removeIntervalListener, removeIntervalListeners
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.macrofocus.common.interval.BoundedInterval
addBoundedIntervalListener, addWeakBoundedIntervalListener, isFullRange, removeBoundedIntervalListener, removeBoundedIntervalListeners
Methods inherited from interface com.macrofocus.common.interval.Interval
addIntervalListener, addWeakIntervalListener, removeIntervalListener, removeIntervalListeners
-
Constructor Details
-
TransformBoundedInterval
-
-
Method Details
-
setStart
public void setStart(double value) - Specified by:
setStart
in interfaceMutableBoundedInterval
- Specified by:
setStart
in interfaceMutableInterval
-
setEnd
public void setEnd(double value) - Specified by:
setEnd
in interfaceMutableBoundedInterval
- Specified by:
setEnd
in interfaceMutableInterval
-
setExtent
public void setExtent(double extent) - Specified by:
setExtent
in interfaceMutableBoundedInterval
- Specified by:
setExtent
in interfaceMutableInterval
-
setValue
public void setValue(double value, double extent) - Specified by:
setValue
in interfaceMutableBoundedInterval
- Specified by:
setValue
in interfaceMutableInterval
-
getStartProperty
- Specified by:
getStartProperty
in interfaceInterval
- Specified by:
getStartProperty
in interfaceMutableBoundedInterval
- Specified by:
getStartProperty
in interfaceMutableInterval
-
getEndProperty
- Specified by:
getEndProperty
in interfaceInterval
- Specified by:
getEndProperty
in interfaceMutableBoundedInterval
- Specified by:
getEndProperty
in interfaceMutableInterval
-
getStart
public double getStart() -
getEnd
public double getEnd() -
getExtent
public double getExtent() -
contains
public boolean contains(double value) Description copied from interface:Interval
Tests if this interval contains the specified value -
containsStartEnd
public boolean containsStartEnd(double start, double end) Description copied from interface:Interval
Tests if this interval contains the specified interval- Specified by:
containsStartEnd
in interfaceInterval
- Parameters:
start
- the value to testend
- the value to test- Returns:
- true if the interval contains the value, false otherwise
-
containsInterval
Description copied from interface:Interval
Tests if this interval contains the specified interval- Specified by:
containsInterval
in interfaceInterval
- Parameters:
interval
- the interval to test- Returns:
- true if the interval contains the value, false otherwise
-
overlaps
public boolean overlaps(double start, double end) Description copied from interface:Interval
Tests if this interval overlaps the specified interval. -
overlapsInterval
Description copied from interface:Interval
Tests if this interval overlaps the specified interval.- Specified by:
overlapsInterval
in interfaceInterval
- Parameters:
interval
- the interval to test- Returns:
- true if this interval overlaps the specified interval, false otherwise
-
isDegenerate
public boolean isDegenerate()Description copied from interface:Interval
Tests whether the starting and ending values are the same- Specified by:
isDegenerate
in interfaceInterval
- Returns:
- true if start and end values are identical, false otherwise
-
isInverted
public boolean isInverted()- Specified by:
isInverted
in interfaceInterval
-
isInvertedScale
public boolean isInvertedScale()- Specified by:
isInvertedScale
in interfaceBoundedInterval
-
setMinimum
public void setMinimum(double minimum) - Specified by:
setMinimum
in interfaceMutableBoundedInterval
-
setMaximum
public void setMaximum(double maximum) - Specified by:
setMaximum
in interfaceMutableBoundedInterval
-
getMinimum
public double getMinimum()- Specified by:
getMinimum
in interfaceBoundedInterval
-
getMaximum
public double getMaximum()- Specified by:
getMaximum
in interfaceBoundedInterval
-
setMinMax
public void setMinMax(double min, double max) - Specified by:
setMinMax
in interfaceMutableBoundedInterval
-
setMinimumExtent
public void setMinimumExtent(double minimumExtent) - Specified by:
setMinimumExtent
in interfaceMutableBoundedInterval
-
setMaximumExtent
public void setMaximumExtent(double maximumExtent) - Specified by:
setMaximumExtent
in interfaceMutableBoundedInterval
-
setMinMaxExtent
public void setMinMaxExtent(double min, double max, double minExtent, double maxExtent) - Specified by:
setMinMaxExtent
in interfaceMutableBoundedInterval
-
getMinimumExtent
public double getMinimumExtent()- Specified by:
getMinimumExtent
in interfaceBoundedInterval
-
getMaximumExtent
public double getMaximumExtent()- Specified by:
getMaximumExtent
in interfaceBoundedInterval
-
reset
public void reset()- Specified by:
reset
in interfaceMutableBoundedInterval
-
toString
-