Package com.luciad.view.gxy.controller
Class TLcdGXYEditControllerModel2.SnapTargetInfo
java.lang.Object
com.luciad.view.gxy.controller.TLcdGXYEditControllerModel2.SnapTargetInfo
- Enclosing class:
TLcdGXYEditControllerModel2
Object representing all needed information about a snap target.
This consists of:
- the
getGXYLayer()layer} from which this snap target originated - the
snap objectfrom which the snap target originated, one of the objects fromlayer.getModel()(e.g. a polyline). This information is used to paint a visual indication of the snap target. - the actual
snap target, deduced from the snap object (e.g., one point of the polyline).
- Since:
- 7.0
-
Constructor Summary
ConstructorsConstructorDescriptionSnapTargetInfo(ILcdGXYLayer aGXYLayer, Object aSnapObject, Object aSnapTarget) Creates a newSnapTargetInfoobject. -
Method Summary
Modifier and TypeMethodDescriptionReturns the layer from which the snap target originated.Returns the object from which the snap target originated (e.g., a polyline).Returns the snap target itself (e.g., one point of a polyline).
-
Constructor Details
-
SnapTargetInfo
Creates a newSnapTargetInfoobject.- Parameters:
aGXYLayer- The layer.aSnapObject- The snap object, or null if the snap indication must not be visualizedaSnapTarget- The snap target.
-
-
Method Details
-
getGXYLayer
Returns the layer from which the snap target originated.- Returns:
- the layer from which the snap target originated.
-
getSnapObject
Returns the object from which the snap target originated (e.g., a polyline).- Returns:
- the object from which the snap target originated, or null if the snap info must not be visualized
-
getSnapTarget
Returns the snap target itself (e.g., one point of a polyline).- Returns:
- the snap target itself.
-