public static void justifyLine(Context c, LineBox line, Element elem, int width) {
public static void justifyLine(Context c, LineBox line, int width) {
    public static void justifyLine(Context c, LineBox line, Element elem, int width) {        if (line.width > width) {            return;        }        //u.p("line width = " + line.width);        //u.p("available width = " + width);        //u.p("inlines = " + line.getChildCount());        //u.p("word count = " + wordCount((InlineBox)line.getChild(0)));        //int extra = width - line.width;        //u.p("extra = " + extra);        /*        int word_count = 0;        for(int i=0; i<line.getChildCount();i++) {            word_count += wordCount((InlineBox)line.getChild(i));        }        if(word_count < 2) {            return;        }        //u.p("final word count = " + word_count);        int spacer = extra/(word_count-1);        //u.p("spacer = " + spacer);        */                // split each inline box into words        List temp_list = new ArrayList();        for (int i = 0; i < line.getChildCount(); i++) {            splitInlineBox(c, (InlineBox) line.getChild(i), temp_list);        }        // clear out all inlines        line.removeAllChildren();        // add in all of the new inlines        line.width = 0;        for (int i = 0; i < temp_list.size(); i++) {            InlineBox box = (InlineBox) temp_list.get(i);            line.width += box.width;            line.addChild(box);        }        int extra = width - line.width;        int spaces = (line.getChildCount() - 1);        float spacer = extra / (float) spaces;        // now realign them        int total_lengths = 0;        for (int i = 0; i < line.getChildCount(); i++) {            InlineBox box = (InlineBox) line.getChild(i);            box.x = total_lengths + (int) (spacer * (float) i);            total_lengths += box.width;        }    }