/** * Returns the specified length with the specified direction in * user units. A length must be greater than 0. * * @param s the length * @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 svgLengthToObjectBoundingBox(String s, String attr, short d, Context ctx) { float v = svgToObjectBoundingBox(s, attr, d, ctx); if (v < 0) { throw new BridgeException(getBridgeContext(ctx), ctx.getElement(), ErrorConstants.ERR_LENGTH_NEGATIVE, new Object[] {attr, s}); } return v; }
/** * Returns the specified length with the specified direction in * user units. A length must be greater than 0. * * @param s the length * @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 svgLengthToObjectBoundingBox(String s, String attr, short d, Context ctx) { float v = svgToObjectBoundingBox(s, attr, d, ctx); if (v < 0) { throw new BridgeException(getBridgeContext(ctx), ctx.getElement(), ErrorConstants.ERR_LENGTH_NEGATIVE, new Object[] {attr, s}); } 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; } }
/** * Returns the specified coordinate with the specified direction * in user units. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param d the direction of the coordinate * @param ctx the context used to resolve relative value */ public static float svgToUserSpace(String s, String attr, short d, Context ctx) { try { return org.apache.batik.parser.UnitProcessor. svgToUserSpace(s, attr, d, ctx); } catch (ParseException pEx ) { throw new BridgeException (getBridgeContext(ctx), ctx.getElement(), pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, s, pEx, }); } }
/** * Returns the specified value with the specified direction in * objectBoundingBox units. * * @param s the value * @param attr the attribute name that represents the value * @param d the direction of the value * @param ctx the context used to resolve relative value */ public static float svgToObjectBoundingBox(String s, String attr, short d, Context ctx) { try { return org.apache.batik.parser.UnitProcessor. svgToObjectBoundingBox(s, attr, d, ctx); } catch (ParseException pEx ) { throw new BridgeException (getBridgeContext(ctx), ctx.getElement(), pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, s, pEx }); } }
/** * Returns the specified length with the specified direction in * user units. A length must be greater than 0. * * @param s the length * @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 svgLengthToObjectBoundingBox(String s, String attr, short d, Context ctx) { float v = svgToObjectBoundingBox(s, attr, d, ctx); if (v < 0) { throw new BridgeException(getBridgeContext(ctx), ctx.getElement(), ErrorConstants.ERR_LENGTH_NEGATIVE, new Object[] {attr, s}); } 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 value with the specified direction in * objectBoundingBox units. * * @param s the value * @param attr the attribute name that represents the value * @param d the direction of the value * @param ctx the context used to resolve relative value */ public static float svgToObjectBoundingBox(String s, String attr, short d, Context ctx) { try { return org.apache.batik.parser.UnitProcessor. svgToObjectBoundingBox(s, attr, d, ctx); } catch (ParseException pEx ) { throw new BridgeException (getBridgeContext(ctx), ctx.getElement(), pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, s, pEx }); } }
/** * Returns the specified value with the specified direction in * objectBoundingBox units. * * @param s the value * @param attr the attribute name that represents the value * @param d the direction of the value * @param ctx the context used to resolve relative value */ public static float svgToObjectBoundingBox(String s, String attr, short d, Context ctx) { try { return org.apache.batik.parser.UnitProcessor. svgToObjectBoundingBox(s, attr, d, ctx); } catch (ParseException pEx ) { throw new BridgeException (getBridgeContext(ctx), ctx.getElement(), pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, s, pEx }); } }
/** * Returns the specified coordinate with the specified direction * in user units. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param d the direction of the coordinate * @param ctx the context used to resolve relative value */ public static float svgToUserSpace(String s, String attr, short d, Context ctx) { try { return org.apache.batik.parser.UnitProcessor. svgToUserSpace(s, attr, d, ctx); } catch (ParseException pEx ) { throw new BridgeException (getBridgeContext(ctx), ctx.getElement(), pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, s, pEx, }); } }
/** * Returns the specified coordinate with the specified direction * in user units. * * @param s the 'other' coordinate * @param attr the attribute name that represents the length * @param d the direction of the coordinate * @param ctx the context used to resolve relative value */ public static float svgToUserSpace(String s, String attr, short d, Context ctx) { try { return org.apache.batik.parser.UnitProcessor. svgToUserSpace(s, attr, d, ctx); } catch (ParseException pEx ) { throw new BridgeException (getBridgeContext(ctx), ctx.getElement(), pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, s, pEx, }); } }