net.refractions.udig.tools.edit.validator
Class PolygonCreationValidator

java.lang.Object
  extended by net.refractions.udig.tools.edit.validator.PolygonCreationValidator
All Implemented Interfaces:
IEditValidator

public class PolygonCreationValidator
extends java.lang.Object
implements IEditValidator

Disallows:

Since:
1.1.0
Author:
Jesse

Field Summary
 
Fields inherited from interface net.refractions.udig.tools.edit.behaviour.IEditValidator
TRUE
 
Constructor Summary
PolygonCreationValidator()
           
 
Method Summary
 java.lang.String isValid(EditToolHandler handler, MapMouseEvent event, EventType type)
          Returns null if the validator considers the state to be "legal" for the new event or a string which is the human readable message describing the problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonCreationValidator

public PolygonCreationValidator()
Method Detail

isValid

public java.lang.String isValid(EditToolHandler handler,
                                MapMouseEvent event,
                                EventType type)
Description copied from interface: IEditValidator
Returns null if the validator considers the state to be "legal" for the new event or a string which is the human readable message describing the problem.

Specified by:
isValid in interface IEditValidator
Parameters:
handler - the handler to use for obtaining the state
event - the event that just occurred.
type - they type of event
Returns:
null if the validator considers the state to be "legal" for the new event or a string which is the human readable message describing the problem.