public class TLcdDefaultCurveConnectorProvider extends Object implements ILcdCurveConnectorProvider
ILcdCurveConnectorProvider
, aggregating all
built-in connectors. Hence, this provider can provide connectors for the following shapes:
ILcd2DEditablePointList
ILcdCircularArcBy3Points
, ILcdCircularArcByBulge
and ILcdCircularArcByCenterPoint
ILcdCompositeCurve
Constructor and Description |
---|
TLcdDefaultCurveConnectorProvider()
Default constructor, offering support for the curves mentioned in the class javadoc.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes
Object.clone() public. |
ILcdCurveConnector |
getCurveConnector(ILcdCurve aPreviousCurve,
ILcdCurve aCurveToConnect,
ILcdCurve aNextCurve)
Finds an
ILcdCurveConnector that can connect a curve
to the given previous and next curves. |
public TLcdDefaultCurveConnectorProvider()
public ILcdCurveConnector getCurveConnector(ILcdCurve aPreviousCurve, ILcdCurve aCurveToConnect, ILcdCurve aNextCurve)
ILcdCurveConnectorProvider
ILcdCurveConnector
that can connect a curve
to the given previous and next curves.
Either of aPreviousCurve
or aNextCurve
can be null
, but not both.getCurveConnector
in interface ILcdCurveConnectorProvider
aPreviousCurve
- the previous curve. Can be null
.aCurveToConnect
- a curve that the returned connector can modify so as to make
the start and end point coincide with
aPreviousCurve
's end point and aNextCurve
's start point,
respectivelyaNextCurve
- the next curve. Can be null
.ILcdCurve
instance,
or null if such a connector could not be foundILcdCurveConnector.connect(com.luciad.shape.ILcdCurve, com.luciad.shape.ILcdCurve, com.luciad.shape.ILcdCurve, com.luciad.model.ILcdModelReference)
public Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()