Class TLspMoveDescriptor
java.lang.Object
com.luciad.view.lightspeed.editor.operation.TLspMoveDescriptor
Object that describes a translation.
TLspMoveDescriptor
defines a translation by providing a start
point (getStartPoint()
) and a target point (getTargetPoint()
).
If both are defined the editor should make sure that the move operation maps
the start point to the target point. If the start point is null
the editor is free to interpret the move operation as fit.
Moving may be constrained to certain dimensions defined by the descriptors
TLspMoveDescriptor.Constraints
.- Since:
- 2012.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumeration to indicate in which dimensions the move occurs. -
Constructor Summary
ConstructorDescriptionTLspMoveDescriptor
(ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint) Creates a new unconstrained move from start to target pointTLspMoveDescriptor
(TLspMoveDescriptor.Constraints aConstraints, ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint) Creates a new Constrained move from start to target point -
Method Summary
Modifier and TypeMethodDescriptionReturns the constraints of thisTLspMoveDescriptor
Returns the model reference of thisTLspMoveDescriptor
Returns the start point of thisTLspMoveDescriptor
Returns the target point of thisTLspMoveDescriptor
-
Constructor Details
-
TLspMoveDescriptor
public TLspMoveDescriptor(ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint) Creates a new unconstrained move from start to target point- Parameters:
aModelReference
- the given model referenceaStartPoint
- the given start pointaTargetPoint
- the given target point
-
TLspMoveDescriptor
public TLspMoveDescriptor(TLspMoveDescriptor.Constraints aConstraints, ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint) Creates a new Constrained move from start to target point- Parameters:
aConstraints
- the constraints of the move.aModelReference
- the given model referenceaStartPoint
- the given start pointaTargetPoint
- the given target point
-
-
Method Details
-
getModelReference
Returns the model reference of thisTLspMoveDescriptor
- Returns:
- the model reference of this
TLspMoveDescriptor
-
getStartPoint
Returns the start point of thisTLspMoveDescriptor
- Returns:
- the start point of this
TLspMoveDescriptor
-
getTargetPoint
Returns the target point of thisTLspMoveDescriptor
- Returns:
- the target point of this
TLspMoveDescriptor
-
getConstraints
Returns the constraints of thisTLspMoveDescriptor
- Returns:
- the constraints of this
TLspMoveDescriptor
-