public int getScale(GridCluster cluster, int totalNumPoints) { int scaleMin = 5; int scaleMax = 40; int scale; int clusterPoints = cluster.getNumPoints(); scale = scaleMin + (int)((3 * scaleMax * clusterPoints) / totalNumPoints); if (!cluster.isGroupPoints()) { scale = scale / 4; } return(20); // scale; }