|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.geom.handler.AbstractHandler
public abstract class AbstractHandler
This class expands the Handler interface adding support for selection, and
identifying a handler of a geometry.
Handler| Field Summary | |
|---|---|
protected int |
index
Identifies each handler of a geometry. |
protected Point2D |
point
Position of this handler. |
| Constructor Summary | |
|---|---|
AbstractHandler()
|
|
| Method Summary | |
|---|---|
boolean |
equalsPoint(Object obj)
Returns true if the object is a Handler and has the
same coordinates as this one. |
Point2D |
getPoint()
Generic method of getting the 2D point that represents a handler of a geometry. |
boolean |
isSelected()
Returns the state of the handler. |
void |
select(boolean b)
Sets the state of the handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gvsig.fmap.geom.handler.Handler |
|---|
move, set |
| Field Detail |
|---|
protected int index
protected Point2D point
getPoint(),
Handler.set(double, double),
Handler.move(double, double)| Constructor Detail |
|---|
public AbstractHandler()
| Method Detail |
|---|
public Point2D getPoint()
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.
getPoint in interface HandlerHandler.set(double, double),
Handler.move(double, double)public void select(boolean b)
True if is selected, false if it's not.
b - true if the handler is selected, false otherwiseisSelected()public boolean isSelected()
True if is selected, false if it's not.
true if the handler is selected,false otherwiseselect(boolean)public boolean equalsPoint(Object obj)
HandlerReturns true if the object is a Handler and has the
same coordinates as this one.
equalsPoint in interface Handlerobj - the reference object with which to compare
true if this object is the same as the obj
argument; false otherwiseHandler.getPoint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||