Package com.luciad.lucy.map
Interface ILcySnappable
- All Known Implementing Classes:
TLcyPIMGXYLayer
,TLcySnappableGXYLayer
,com.luciad.internal.lucy.map.TLcyStyledSnappableGXYLayer
public interface ILcySnappable
Interface for layers that allow snapping. Note that to make snapping work, all painters and
editors of the layer need to support snapping. Please refer to
ILcyMapComponent.getSnapList()
to see how this interface is used.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if snapping is enabled.void
setSnappingOn
(boolean aSnappingOn) Sets the snappable state.
-
Method Details
-
isSnappingOn
boolean isSnappingOn()Return true if snapping is enabled.- Returns:
- true if snapping is enabled.
-
setSnappingOn
void setSnappingOn(boolean aSnappingOn) Sets the snappable state. Note that this method needs to fire a property change event whenever the "snappingOn" property changes its state. Note: refer to Implementing Bound Property Support Within a Bean for an example about firing a property change.- Parameters:
aSnappingOn
- True if snapping is to be enabled, false otherwise
-