Package com.luciad.view.gxy.controller
Class ALcdGXYNewControllerModel2.SnapTargetInfo
java.lang.Object
com.luciad.view.gxy.controller.ALcdGXYNewControllerModel2.SnapTargetInfo
- Enclosing class:
ALcdGXYNewControllerModel2
Object representing all needed information about a snap target.
This consists of:
- the
getGXYLayer()
layer} from which this snap target originated - the
snap object
from 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:
- 9.0
-
Constructor Summary
ConstructorDescriptionSnapTargetInfo
(ILcdGXYLayer aGXYLayer, Object aSnapObject, Object aSnapTarget) Creates a newSnapTargetInfo
object. -
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 newSnapTargetInfo
object.- 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.
-