org.apache.fop.util

Class BreakUtil


public final class BreakUtil
extends java.lang.Object

A utility class for manipulating break classes (the break-before and break-after properties).

Method Summary

static int
compareBreakClasses(int break1, int break2)
Compares the given break classes and return the one that wins.

Method Details

compareBreakClasses

public static int compareBreakClasses(int break1,
                                      int break2)
Compares the given break classes and return the one that wins. even-page and odd-page win over page, which wins over column, which wins over auto. If even-page and odd-page are compared to each other, which one will be returned is undefined.
Returns:
the break class that wins the comparison

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.