final int meanWidth = (int) Math.rint(stick.getWeight() / stick.getLength());
final int meanWidth = (int) Math.rint((double) stick.getWeight() / (double) stick.getLength());
    private boolean isThickBar (Stick stick)    {        // Max width of a thin bar line, otherwise this must be a thick bar        final int maxThinWidth = scale.fracToPixels(constants.maxThinWidth);        final int meanWidth = (int) Math.rint(stick.getWeight()                                              / stick.getLength());        return meanWidth > maxThinWidth;    }