public class TLspMoveDescriptor extends Object
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
.Modifier and Type | Class and Description |
---|---|
static class |
TLspMoveDescriptor.Constraints
Enumeration to indicate in which dimensions the move occurs.
|
Constructor and Description |
---|
TLspMoveDescriptor(ILcdModelReference aModelReference,
ILcdPoint aStartPoint,
ILcdPoint aTargetPoint)
Creates a new unconstrained move from start to target point
|
TLspMoveDescriptor(TLspMoveDescriptor.Constraints aConstraints,
ILcdModelReference aModelReference,
ILcdPoint aStartPoint,
ILcdPoint aTargetPoint)
Creates a new Constrained move from start to target point
|
Modifier and Type | Method and Description |
---|---|
TLspMoveDescriptor.Constraints |
getConstraints()
Returns the constraints of this
TLspMoveDescriptor |
ILcdModelReference |
getModelReference()
Returns the model reference of this
TLspMoveDescriptor |
ILcdPoint |
getStartPoint()
Returns the start point of this
TLspMoveDescriptor |
ILcdPoint |
getTargetPoint()
Returns the target point of this
TLspMoveDescriptor |
public TLspMoveDescriptor(ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint)
aModelReference
- the given model referenceaStartPoint
- the given start pointaTargetPoint
- the given target pointpublic TLspMoveDescriptor(TLspMoveDescriptor.Constraints aConstraints, ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint)
aConstraints
- the constraints of the move.aModelReference
- the given model referenceaStartPoint
- the given start pointaTargetPoint
- the given target pointpublic ILcdModelReference getModelReference()
TLspMoveDescriptor
TLspMoveDescriptor
public ILcdPoint getStartPoint()
TLspMoveDescriptor
TLspMoveDescriptor
public ILcdPoint getTargetPoint()
TLspMoveDescriptor
TLspMoveDescriptor
public TLspMoveDescriptor.Constraints getConstraints()
TLspMoveDescriptor
TLspMoveDescriptor