/** * Returns the specified horizontal coordinate in object bounding box * coordinate system. * * @param s the horizontal coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgHorizontalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, HORIZONTAL_LENGTH, ctx); }
/** * Returns the specified 'other' coordinate in object bounding box * coordinate system. * * @param s the 'other' coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgOtherCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, OTHER_LENGTH, ctx); }
/** * Returns the specified vertical coordinate in object bounding box * coordinate system. * * @param s the vertical coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgVerticalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, VERTICAL_LENGTH, ctx); }
/** * Returns the specified horizontal coordinate in object bounding box * coordinate system. * * @param s the horizontal coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgHorizontalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, HORIZONTAL_LENGTH, ctx); }
/** * Returns the specified vertical coordinate in object bounding box * coordinate system. * * @param s the vertical coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgVerticalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, VERTICAL_LENGTH, ctx); }
/** * Returns the specified 'other' coordinate in object bounding box * coordinate system. * * @param s the 'other' coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgOtherCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, OTHER_LENGTH, ctx); }
/** * Returns the specified horizontal coordinate in object bounding box * coordinate system. * * @param s the horizontal coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgHorizontalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, HORIZONTAL_LENGTH, ctx); }
/** * Returns the specified 'other' coordinate in object bounding box * coordinate system. * * @param s the 'other' coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgOtherCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, OTHER_LENGTH, ctx); }
/** * Returns the specified vertical coordinate in object bounding box * coordinate system. * * @param s the vertical coordinate * @param attr the attribute name that represents the coordinate * @param ctx the context used to resolve relative value */ public static float svgVerticalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) { return svgToObjectBoundingBox(s, attr, VERTICAL_LENGTH, ctx); }
/** * 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 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; }