/** * Creates a factory which will reorder the axis of all objects created by the supplied factory. * This constructor accepts the following optional hints: * * <p> * * <ul> * <li>{@link Hints#FORCE_STANDARD_AXIS_UNITS} * <li>{@link Hints#FORCE_STANDARD_AXIS_DIRECTIONS} * </ul> * * @param factory The factory that produces objects using arbitrary axis order. * @param userHints An optional set of hints, or {@code null} if none. * @param axisOrder An array of axis directions that determine the axis order wanted, or {@code * null} for the default axis order. * @throws IllegalArgumentException If at least two axis directions are colinear. * @since 2.3 */ public OrderedAxisAuthorityFactory( final AbstractAuthorityFactory factory, final Hints userHints, final AxisDirection[] axisOrder) throws IllegalArgumentException { super(factory); forceStandardUnits = booleanValue(userHints, Hints.FORCE_STANDARD_AXIS_UNITS); forceStandardDirections = booleanValue(userHints, Hints.FORCE_STANDARD_AXIS_DIRECTIONS); directionRanks = computeDirectionRanks(axisOrder); completeHints(); }
forceStandardDirections = booleanValue(userHints, Hints.FORCE_STANDARD_AXIS_DIRECTIONS); directionRanks = computeDirectionRanks(axisOrder); completeHints();