* primary to secondory, or from connected node to the disconnected or
* none at all.
*/
@Override
protected boolean showEdgeArrow(final Edge edge) {
final BlockDevInfo sourceBDI = (BlockDevInfo) getInfo(edge.getSource());
final BlockDevInfo destBDI = (BlockDevInfo) getInfo(edge.getDest());
if (sourceBDI == null || destBDI == null) {
return false;
}
final BlockDevice sourceBD = sourceBDI.getBlockDevice();
final BlockDevice destBD = destBDI.getBlockDevice();
final Application.RunMode runMode = getRunMode();
if (sourceBDI.isConnected(runMode)
&& sourceBD.isPrimary() != destBD.isPrimary()) {
return true;
} else if (sourceBDI.isWFConnection(runMode) ^ destBDI.isWFConnection(runMode)) {
/* show arrow from wf connection */
return true;
}
return false;
}