int top = getPaintingTop() + (int)getStyle().getMarginWidth(c).top();
int top;  if (mode == Layer.PAGED_MODE_SCREEN) { top = getPaintingTop() + (int)getStyle().getMarginWidth(c).top(); } else if (mode == Layer.PAGED_MODE_PRINT) { top = (int)getStyle().getMarginWidth(c).top(); } else { throw new IllegalArgumentException("Illegal mode"); }
    private void paintRightFlow(RenderingContext c, Layer root, int additionalClearance) {        CalculatedStyle style = getStyle().getCalculatedStyle();        String flowName = style.getStringProperty(CSSName.FS_FLOW_RIGHT);        if (! flowName.equals("none")) {            int left = additionalClearance + getWidth(c)                 - (int)getStyle().getMarginWidth(c).right();            int top = getPaintingTop() + (int)getStyle().getMarginWidth(c).top();                        paintFlow(c, root, c.getGraphics(), flowName, left, top);        }    }