Package com.luciad.shape.constraints
Class TLcdDefaultCurveConnectorProvider
java.lang.Object
com.luciad.shape.constraints.TLcdDefaultCurveConnectorProvider
- All Implemented Interfaces:
ILcdCurveConnectorProvider
,ILcdCloneable
,Serializable
,Cloneable
Default implementation of
ILcdCurveConnectorProvider
, aggregating all
built-in connectors. Hence, this provider can provide connectors for the following shapes:
ILcd2DEditablePointList
ILcdCircularArcBy3Points
,ILcdCircularArcByBulge
andILcdCircularArcByCenterPoint
ILcdCompositeCurve
- Since:
- 9.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor, offering support for the curves mentioned in the class javadoc. -
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.getCurveConnector
(ILcdCurve aPreviousCurve, ILcdCurve aCurveToConnect, ILcdCurve aNextCurve) Finds anILcdCurveConnector
that can connect a curve to the given previous and next curves.
-
Constructor Details
-
TLcdDefaultCurveConnectorProvider
public TLcdDefaultCurveConnectorProvider()Default constructor, offering support for the curves mentioned in the class javadoc.
-
-
Method Details
-
getCurveConnector
public ILcdCurveConnector getCurveConnector(ILcdCurve aPreviousCurve, ILcdCurve aCurveToConnect, ILcdCurve aNextCurve) Description copied from interface:ILcdCurveConnectorProvider
Finds anILcdCurveConnector
that can connect a curve to the given previous and next curves. Either ofaPreviousCurve
oraNextCurve
can benull
, but not both.- Specified by:
getCurveConnector
in interfaceILcdCurveConnectorProvider
- Parameters:
aPreviousCurve
- the previous curve. Can benull
.aCurveToConnect
- a curve that the returned connector can modify so as to make the start and end point coincide withaPreviousCurve
's end point andaNextCurve
's start point, respectivelyaNextCurve
- the next curve. Can benull
.- Returns:
- a connector that can connect the given curve to another
ILcdCurve
instance, or null if such a connector could not be found - See Also:
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.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 ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-