/** * Returns the specified 'other' coordinate in user units. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgOtherCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, OTHER_LENGTH, ctx); }
/** * Returns the specified 'other' coordinate in user units. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgOtherCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, OTHER_LENGTH, ctx); }
/** * Returns the specified horizontal coordinate in user units. * * @param s the horizontal coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgHorizontalCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, HORIZONTAL_LENGTH, ctx); }
/** * Returns the specified vertical coordinate in user units. * * @param s the vertical coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgVerticalCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, VERTICAL_LENGTH, ctx); }
/** * Returns the specified 'other' coordinate in user units. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgOtherCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, OTHER_LENGTH, ctx); }
/** * Returns the specified vertical coordinate in user units. * * @param s the vertical coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgVerticalCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, VERTICAL_LENGTH, ctx); }
/** * Returns the specified vertical coordinate in user units. * * @param s the vertical coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgVerticalCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, VERTICAL_LENGTH, ctx); }
/** * Returns the specified horizontal coordinate in user units. * * @param s the horizontal coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgHorizontalCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, HORIZONTAL_LENGTH, ctx); }
/** * Returns the specified horizontal coordinate in user units. * * @param s the horizontal coordinate * @param attr the attribute name that represents the length * @param ctx the context used to resolve relative value */ public static float svgHorizontalCoordinateToUserSpace(String s, String attr, Context ctx) { return svgToUserSpace(s, attr, HORIZONTAL_LENGTH, ctx); }
/** * Returns the specified length with the specified direction in * user units. A length must be greater than 0. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param d the direction of the length * @param ctx the context used to resolve relative value */ public static float svgLengthToUserSpace(String s, String attr, short d, Context ctx) { float v = svgToUserSpace(s, attr, d, ctx); if (v < 0) { throw new BridgeException(getBridgeContext(ctx), ctx.getElement(), ErrorConstants.ERR_LENGTH_NEGATIVE, new Object[] {attr, s}); } else { return v; } }
/** * Returns the specified length with the specified direction in * user units. A length must be greater than 0. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param d the direction of the length * @param ctx the context used to resolve relative value */ public static float svgLengthToUserSpace(String s, String attr, short d, Context ctx) { float v = svgToUserSpace(s, attr, d, ctx); if (v < 0) { throw new BridgeException(getBridgeContext(ctx), ctx.getElement(), ErrorConstants.ERR_LENGTH_NEGATIVE, new Object[] {attr, s}); } else { return v; } }
/** * Returns the specified length with the specified direction in * user units. A length must be greater than 0. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param d the direction of the length * @param ctx the context used to resolve relative value */ public static float svgLengthToUserSpace(String s, String attr, short d, Context ctx) { float v = svgToUserSpace(s, attr, d, ctx); if (v < 0) { throw new BridgeException(getBridgeContext(ctx), ctx.getElement(), ErrorConstants.ERR_LENGTH_NEGATIVE, new Object[] {attr, s}); } else { return v; } }