Package org.gvsig.fmap.geom.handler
Class AbstractHandler
java.lang.Object
org.gvsig.fmap.geom.handler.AbstractHandler
- All Implemented Interfaces:
Handler
This class expands the
Handler interface adding support for selection, and
identifying a handler of a geometry.- Author:
- Vicente Caballero Navarro
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsPoint(Object obj) Returnstrueif the object is aHandlerand has the same coordinates as this one.getPoint()Generic method of getting the 2D point that represents a handler of a geometry.booleanReturns the state of the handler.voidselect(boolean b) Sets the state of the handler.
-
Field Details
-
index
protected int indexIdentifies each handler of a geometry. -
point
Position of this handler.- See Also:
-
-
Constructor Details
-
AbstractHandler
public AbstractHandler()
-
-
Method Details
-
getPoint
Description copied from interface:HandlerGeneric method of getting the 2D point that represents a handler of a geometry.
Each handler of each geometry adapts this method to its own behavior in that geometry, that implies that could not be implemented.
-
select
public void select(boolean b) Sets the state of the handler.Trueif is selected,falseif it's not.- Parameters:
b-trueif the handler is selected,falseotherwise- See Also:
-
isSelected
public boolean isSelected()Returns the state of the handler.Trueif is selected,falseif it's not.- Returns:
trueif the handler is selected,falseotherwise- See Also:
-
equalsPoint
Description copied from interface:HandlerReturns
trueif the object is aHandlerand has the same coordinates as this one.- Specified by:
equalsPointin interfaceHandler- Parameters:
obj- the reference object with which to compare- Returns:
trueif this object is the same as theobjargument;falseotherwise- See Also:
-