public interface GConnectorValidator
A custom connector validator must implement this interface. It must also provide a no-argument constructor.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createConnectionType(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
Creates the 'type' string to be used in a new connection.
|
java.lang.String |
createJointType(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
Creates the 'type' string to be used in the joints inside a new connection.
|
boolean |
prevalidate(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
Pre-validate check made during drag-over events.
|
boolean |
validate(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
Validate check made during drag-over events.
|
boolean prevalidate(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
If the pre-validate check fails, the dragged connector will not interact with the dragged-over connector at all.
source - the GConnector that was draggedtarget - the GConnector that was dragged-overtrue if a validate check should be made, false if notboolean validate(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
source - the GConnector that was draggedtarget - the GConnector that was dragged-overtrue if connection is allowed, false if it is forbiddenjava.lang.String createConnectionType(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
If both prevalidate and validate checks pass, a new connection will be created of the type returned by this method.
source - the GConnector that was draggedtarget - the GConnector that was dragged-overString specifying the type for the new connectionjava.lang.String createJointType(de.tesis.dynaware.grapheditor.model.GConnector source,
de.tesis.dynaware.grapheditor.model.GConnector target)
source - the GConnector that was draggedtarget - the GConnector that was dragged-overString specifying the type for the new connectionCopyright © 2014 TESIS DYNAware. All Rights Reserved.