public Stroke getStroke(GraphArc arc) { if (arc.getType().toString().contains(ProtegeGraphModel.DIRECT_SUBCLASS_SLOT_TYPE) || arc.getType().toString().contains(ProtegeGraphModel.DIRECT_INDIVIDUAL_SLOT_TYPE)) { setDashed(false); } else { setDashed(true); if (arc.getType().toString().contains("Equivalent")) { setDashedCapSquare(BasicStroke.CAP_ROUND); setDashWidth(2f); } else { setDashedCapSquare(BasicStroke.CAP_SQUARE); setDashWidth(10f); } } return super.getStroke(arc); } };