* Returns fill color as paint object for for specified block device
* vertex.
*/
@Override
protected Color getVertexFillColor(final Vertex v) {
final HostDrbdInfo hi = vertexToHostMap.get(v);
final Vertex hostVertex = getVertex(hi);
if (v.equals(hostVertex)) {
return hi.getHost().getDrbdColors()[0];
} else if (hi != null &&
(hi.getHost() == null || (!hi.getHost().isDrbdStatusOk() && hi.getHost().isDrbdLoaded()))) {
return Tools.getDefaultColor("DrbdGraph.FillPaintUnknown");
} else {
if (!isVertexDrbd(v)) {
if (isVertexAvailable(v)) {
return super.getVertexFillColor(v);