PNode p = (PNode) i.getEntity(); if(p.isStartPoint()) { return fill_apspSource; } else if (p.isEndPoint()) { return fill_apspEnd; } else if (p.isPathElement()) { return fill_apsp;
if(i.getEntity() instanceof PNode) { PNode p = (PNode) i.getEntity(); if(p.isStartPoint()) { return fill_apspSource; } else if (p.isEndPoint()) { return fill_apspEnd; }
	public Paint getFillColor(VisualItem i) {		if(!(i.getEntity() instanceof PNode)) {			return fill_normal;		}				if (i.isHighlighted()) {			return fill_mouseover;		}		PNode p = (PNode) i.getEntity();		if(p.isStartPoint()) {			return fill_apspSource;		} else if (p.isEndPoint()) {			return fill_apspEnd;		} else if (p.isPathElement()) {			return fill_apsp;		}		return fill_normal;		/*		if(i.isFixed()) {			return fill_selected;		} else if (i.isHighlighted()) {			return fill_mouseover;		} else {			return fill_normal;		}		*/	}