com.esri.adf.web.ags.data.edit.bean
Class SnapRulesBean

java.lang.Object
  extended by com.esri.adf.web.ags.data.edit.bean.SnapRulesBean
All Implemented Interfaces:
Serializable

public class SnapRulesBean
extends Object
implements Serializable

Specifies the snapping rules.

See Also:
Serialized Form

Constructor Summary
SnapRulesBean()
           
 
Method Summary
 Integer getId()
          Gets the id of the layer associated with the rules.
 String getLayer()
          Gets the name of the layer associated with the rules.
 int getSnapType()
          Converts the rules to an esriGeometryHitPartType const.
 boolean isEdge()
          Returns true to snap to edge of the geometry.
 boolean isEnd()
          Returns true to snap to end of the geometry.
 boolean isSnapEnabled()
          Returns true if any rule is enabled.
 boolean isVertex()
          Returns true to snap to vertex of the geometry.
 void setEdge(boolean edge)
          Sets to true to snap to edge of the geometry.
 void setEnd(boolean end)
          Sets to true to snap to end of the geometry.
 void setId(Integer id)
          Gets the id of the layer associated with the rules.
 void setLayer(String layer)
          Sets the name of the layer associated with the rules.
 void setVertex(boolean vertex)
          Sets to true to snap to vertex of the geometry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapRulesBean

public SnapRulesBean()
Method Detail

getId

public Integer getId()
Gets the id of the layer associated with the rules.

Returns:
Returns the id.

setId

public void setId(Integer id)
Gets the id of the layer associated with the rules.

Parameters:
id - The id to set.

getLayer

public String getLayer()
Gets the name of the layer associated with the rules.

Returns:
Returns the layer.

setLayer

public void setLayer(String layer)
Sets the name of the layer associated with the rules.

Parameters:
layer - The layer to set.

isVertex

public boolean isVertex()
Returns true to snap to vertex of the geometry.

Returns:
Returns the vertex.

setVertex

public void setVertex(boolean vertex)
Sets to true to snap to vertex of the geometry.

Parameters:
vertex - The vertex to set.

isEdge

public boolean isEdge()
Returns true to snap to edge of the geometry.

Returns:
Returns the edge.

setEdge

public void setEdge(boolean edge)
Sets to true to snap to edge of the geometry.

Parameters:
edge - The edge to set.

isEnd

public boolean isEnd()
Returns true to snap to end of the geometry.

Returns:
Returns the end.

setEnd

public void setEnd(boolean end)
Sets to true to snap to end of the geometry.

Parameters:
end - The end to set.

isSnapEnabled

public boolean isSnapEnabled()
Returns true if any rule is enabled.


getSnapType

public int getSnapType()
Converts the rules to an esriGeometryHitPartType const.