| java.lang.Object org.apache.batik.parser.UnitProcessor org.apache.batik.bridge.UnitProcessor
Inner Class :public static class DefaultContext implements Context | |
Method Summary | |
public static Context | createContext(BridgeContext ctx, Element e) Creates a context for the specified element. | protected static BridgeContext | getBridgeContext(Context ctx) Returns the
BridgeContext from the given
Context if it is a
DefaultContext , or null otherwise. | public static float | svgHorizontalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) Returns the specified horizontal coordinate in object bounding box
coordinate system. | public static float | svgHorizontalCoordinateToUserSpace(String s, String attr, Context ctx) Returns the specified horizontal coordinate in user units. | public static float | svgHorizontalLengthToObjectBoundingBox(String s, String attr, Context ctx) Returns the specified horizontal length in object bounding box
coordinate system. | public static float | svgHorizontalLengthToUserSpace(String s, String attr, Context ctx) Returns the specified horizontal length in user units. | public static float | svgLengthToObjectBoundingBox(String s, String attr, short d, Context ctx) Returns the specified length with the specified direction in
user units. | public static float | svgLengthToUserSpace(String s, String attr, short d, Context ctx) Returns the specified length with the specified direction in
user units. | public static float | svgOtherCoordinateToObjectBoundingBox(String s, String attr, Context ctx) Returns the specified 'other' coordinate in object bounding box
coordinate system. | public static float | svgOtherCoordinateToUserSpace(String s, String attr, Context ctx) Returns the specified 'other' coordinate in user units. | public static float | svgOtherLengthToObjectBoundingBox(String s, String attr, Context ctx) Returns the specified 'other' length in object bounding box
coordinate system. | public static float | svgOtherLengthToUserSpace(String s, String attr, Context ctx) Returns the specified 'other' length in user units. | public static float | svgToObjectBoundingBox(String s, String attr, short d, Context ctx) Returns the specified value with the specified direction in
objectBoundingBox units. | public static float | svgToUserSpace(String s, String attr, short d, Context ctx) Returns the specified coordinate with the specified direction
in user units. | public static float | svgVerticalCoordinateToObjectBoundingBox(String s, String attr, Context ctx) Returns the specified vertical coordinate in object bounding box
coordinate system. | public static float | svgVerticalCoordinateToUserSpace(String s, String attr, Context ctx) Returns the specified vertical coordinate in user units. | public static float | svgVerticalLengthToObjectBoundingBox(String s, String attr, Context ctx) Returns the specified vertical length in object bounding box
coordinate system. | public static float | svgVerticalLengthToUserSpace(String s, String attr, Context ctx) Returns the specified vertical length in user units. |
createContext | public static Context createContext(BridgeContext ctx, Element e)(Code) | | Creates a context for the specified element.
Parameters: ctx - the bridge context that contains the user agent andviewport definition Parameters: e - the element interested in its context |
getBridgeContext | protected static BridgeContext getBridgeContext(Context ctx)(Code) | | Returns the
BridgeContext from the given
Context if it is a
DefaultContext , or null otherwise.
|
svgHorizontalCoordinateToObjectBoundingBox | public static float svgHorizontalCoordinateToObjectBoundingBox(String s, String attr, Context ctx)(Code) | | Returns the specified horizontal coordinate in object bounding box
coordinate system.
Parameters: s - the horizontal coordinate Parameters: attr - the attribute name that represents the coordinate Parameters: ctx - the context used to resolve relative value |
svgHorizontalCoordinateToUserSpace | public static float svgHorizontalCoordinateToUserSpace(String s, String attr, Context ctx)(Code) | | Returns the specified horizontal coordinate in user units.
Parameters: s - the horizontal coordinate Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgHorizontalLengthToObjectBoundingBox | public static float svgHorizontalLengthToObjectBoundingBox(String s, String attr, Context ctx)(Code) | | Returns the specified horizontal length in object bounding box
coordinate system. A length must be greater than 0.
Parameters: s - the 'other' length Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgHorizontalLengthToUserSpace | public static float svgHorizontalLengthToUserSpace(String s, String attr, Context ctx)(Code) | | Returns the specified horizontal length in user units. A length
must be greater than 0.
Parameters: s - the horizontal length Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgLengthToObjectBoundingBox | public static float svgLengthToObjectBoundingBox(String s, String attr, short d, Context ctx)(Code) | | Returns the specified length with the specified direction in
user units. A length must be greater than 0.
Parameters: s - the length Parameters: attr - the attribute name that represents the length Parameters: d - the direction of the length Parameters: ctx - the context used to resolve relative value |
svgLengthToUserSpace | public static float svgLengthToUserSpace(String s, String attr, short d, Context ctx)(Code) | | Returns the specified length with the specified direction in
user units. A length must be greater than 0.
Parameters: s - the 'other' coordinate Parameters: attr - the attribute name that represents the length Parameters: d - the direction of the length Parameters: ctx - the context used to resolve relative value |
svgOtherCoordinateToObjectBoundingBox | public static float svgOtherCoordinateToObjectBoundingBox(String s, String attr, Context ctx)(Code) | | Returns the specified 'other' coordinate in object bounding box
coordinate system.
Parameters: s - the 'other' coordinate Parameters: attr - the attribute name that represents the coordinate Parameters: ctx - the context used to resolve relative value |
svgOtherCoordinateToUserSpace | public static float svgOtherCoordinateToUserSpace(String s, String attr, Context ctx)(Code) | | Returns the specified 'other' coordinate in user units.
Parameters: s - the 'other' coordinate Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgOtherLengthToObjectBoundingBox | public static float svgOtherLengthToObjectBoundingBox(String s, String attr, Context ctx)(Code) | | Returns the specified 'other' length in object bounding box
coordinate system. A length must be greater than 0.
Parameters: s - the 'other' length Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgOtherLengthToUserSpace | public static float svgOtherLengthToUserSpace(String s, String attr, Context ctx)(Code) | | Returns the specified 'other' length in user units. A length
must be greater than 0.
Parameters: s - the 'other' length Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgToObjectBoundingBox | public static float svgToObjectBoundingBox(String s, String attr, short d, Context ctx)(Code) | | Returns the specified value with the specified direction in
objectBoundingBox units.
Parameters: s - the value Parameters: attr - the attribute name that represents the value Parameters: d - the direction of the value Parameters: ctx - the context used to resolve relative value |
svgToUserSpace | public static float svgToUserSpace(String s, String attr, short d, Context ctx)(Code) | | Returns the specified coordinate with the specified direction
in user units.
Parameters: s - the 'other' coordinate Parameters: attr - the attribute name that represents the length Parameters: d - the direction of the coordinate Parameters: ctx - the context used to resolve relative value |
svgVerticalCoordinateToObjectBoundingBox | public static float svgVerticalCoordinateToObjectBoundingBox(String s, String attr, Context ctx)(Code) | | Returns the specified vertical coordinate in object bounding box
coordinate system.
Parameters: s - the vertical coordinate Parameters: attr - the attribute name that represents the coordinate Parameters: ctx - the context used to resolve relative value |
svgVerticalCoordinateToUserSpace | public static float svgVerticalCoordinateToUserSpace(String s, String attr, Context ctx)(Code) | | Returns the specified vertical coordinate in user units.
Parameters: s - the vertical coordinate Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgVerticalLengthToObjectBoundingBox | public static float svgVerticalLengthToObjectBoundingBox(String s, String attr, Context ctx)(Code) | | Returns the specified vertical length in object bounding box
coordinate system. A length must be greater than 0.
Parameters: s - the vertical length Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
svgVerticalLengthToUserSpace | public static float svgVerticalLengthToUserSpace(String s, String attr, Context ctx)(Code) | | Returns the specified vertical length in user units. A length
must be greater than 0.
Parameters: s - the vertical length Parameters: attr - the attribute name that represents the length Parameters: ctx - the context used to resolve relative value |
Methods inherited from org.apache.batik.parser.UnitProcessor | protected static float emsToPixels(float v, short d, Context ctx)(Code)(Java Doc) protected static float exsToPixels(float v, short d, Context ctx)(Code)(Java Doc) protected static float percentagesToPixels(float v, short d, Context ctx)(Code)(Java Doc) protected static float pixelsToEms(float v, short d, Context ctx)(Code)(Java Doc) protected static float pixelsToExs(float v, short d, Context ctx)(Code)(Java Doc) protected static float pixelsToPercentages(float v, short d, Context ctx)(Code)(Java Doc) public static float svgToObjectBoundingBox(String s, String attr, short d, Context ctx) throws ParseException(Code)(Java Doc) public static float svgToObjectBoundingBox(float value, short type, short d, Context ctx)(Code)(Java Doc) public static float svgToUserSpace(String s, String attr, short d, Context ctx) throws ParseException(Code)(Java Doc) public static float svgToUserSpace(float v, short type, short d, Context ctx)(Code)(Java Doc) public static float userSpaceToSVG(float v, short type, short d, Context ctx)(Code)(Java Doc)
|
|
|