/** Returns if left-to-right orientation is used. If not set explicitly in the layout constraints the Locale * of the <code>parent</code> is used. * @param lc The constraint if there is one. Can be <code>null</code>. * @param container The parent that may be used to get the left-to-right if lc does not specify this. * @return If left-to-right orientation is currently used. */ public static boolean isLeftToRight(LC lc, ContainerWrapper container) { if (lc != null && lc.getLeftToRight() != null) return lc.getLeftToRight(); return container == null || container.isLeftToRight(); }