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:
ILcd2DEditablePointListILcdCircularArcBy3Points,ILcdCircularArcByBulgeandILcdCircularArcByCenterPointILcdCompositeCurve
- Since:
- 9.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 anILcdCurveConnectorthat 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:ILcdCurveConnectorProviderFinds anILcdCurveConnectorthat can connect a curve to the given previous and next curves. Either ofaPreviousCurveoraNextCurvecan benull, but not both.- Specified by:
getCurveConnectorin 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
ILcdCurveinstance, or null if such a connector could not be found - See Also:
-
clone
Description copied from interface:ILcdCloneableMakes
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:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-