-
public interface IsolinesFactory
A factory for the creation of the basic astractions contained in this package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description enum
IsolinesFactory.IsolineFinders
Enum containing all the available isolines finding algorithms.
-
Method Summary
Modifier and Type Method Description abstract Segment2D
makeSegment(Number x1, Number y1, Number x2, Number y2)
Create a 2D segment. abstract Isoline
makeIsoline(Number value, Collection<Segment2D> segments)
Create an Isoline. abstract IsolinesFinder
makeIsolinesFinder(IsolinesFactory.IsolineFinders algorithm)
Create an IsolinesFinder object, capable of finding isolines.As different finders could be available - each one extractingisolines in a different way - you can specify which one to use withthe algorithm parameter. -
-
Method Detail
-
makeSegment
abstract Segment2D makeSegment(Number x1, Number y1, Number x2, Number y2)
Create a 2D segment.
- Parameters:
x1
- - x coordinate of point 1y1
- - y coordinate of point 1x2
- - x coordinate of point 2y2
- - y coordinate of point 2
-
makeIsoline
abstract Isoline makeIsoline(Number value, Collection<Segment2D> segments)
Create an Isoline.
- Parameters:
value
- - the value associated to the isoline to be createdsegments
- - the segments forming the isoline
-
makeIsolinesFinder
abstract IsolinesFinder makeIsolinesFinder(IsolinesFactory.IsolineFinders algorithm)
Create an IsolinesFinder object, capable of finding isolines.As different finders could be available - each one extractingisolines in a different way - you can specify which one to use withthe algorithm parameter.
- Parameters:
algorithm
- - the algorithm you want to use
-
-
-
-