147a148,148 > if ((target != null) 148,148c149,149 < if ((target != null) && target.canConnect() --- > && target.canConnect() 150a152,164 > /* > * JP, 25-May-03: Fix for ignored direction when checking > * connectability. Old version didn't take direction of > * connection into account, which could result in incorrect > * drawing if syntax rules were a concern. > * > * See also new canConnectTo() method below. > * > * Was: > * > * && getConnection().canConnect(source().owner(), target)) { > */ > && canConnectTo(target)) { 151,151d151 < && getConnection().canConnect(source().owner(), target)) { 156a170,177 > /** > * Called to check whether this end of the connection can connect to the > * given target figure. Needs to be overriden by the start and end changers > * to take the connection's direction into account during the check. JHD 5.4 > * beta and before did not do this. > */ > protected abstract boolean canConnectTo(Figure figure); >