} else if (vertical == TOP && horizontal == RIGHT || vertical == BOTTOM && horizontal == LEFT) {
} else if (vertical == SConstants.TOP && horizontal == SConstants.RIGHT || vertical == SConstants.BOTTOM && horizontal == SConstants.LEFT) {
    public void writeCompound(Device device, SComponent component, int horizontal, int vertical) throws IOException {        if (horizontal == NO_ALIGN)            horizontal = RIGHT;        if (vertical == NO_ALIGN)            vertical = CENTER;        boolean order = vertical == TOP || (vertical == CENTER && horizontal == LEFT);        device.print("<table");        SDimension prefSize = component.getPreferredSize();        if (prefSize != null && (prefSize.getWidth() != null || prefSize.getHeight() != null)) {            device.print(" style=\"width:100%;height:100%\"");        }        device.print(">");        if (vertical == TOP && horizontal == LEFT ||                vertical == BOTTOM && horizontal == RIGHT) {            device.print("<tr><td align=\"left\" valign=\"top\">");            first(device, order);            device.print("</td><td></td></tr><tr><td></td><td align=\"right\" valign=\"bottom\">");            last(device, order);            device.print("</td></tr>");        } else if (vertical == TOP && horizontal == RIGHT ||                vertical == BOTTOM && horizontal == LEFT) {            device.print("<tr><td></td><td align=\"right\" valign=\"top\">");            first(device, order);            device.print("</td></tr><tr><td align=\"left\" valign=\"bottom\">");            last(device, order);            device.print("</td><td></td></tr>");        } else if (vertical == TOP && horizontal == CENTER ||                vertical == BOTTOM && horizontal == CENTER) {            device.print("<tr><td align=\"center\" valign=\"top\">");            first(device, order);            device.print("</td></tr><tr><td align=\"center\" valign=\"bottom\">");            last(device, order);            device.print("</td></tr>");        } else if (vertical == CENTER && horizontal == LEFT ||                vertical == CENTER && horizontal == RIGHT) {            device.print("<tr><td align=\"left\">");            first(device, order);            device.print("</td><td align=\"right\">");            last(device, order);            device.print("</td></tr>");        } else {            log.warn("horizontal = " + horizontal);            log.warn("vertical = " + vertical);        }        device.print("</table>");    }