| java.lang.Object org.apache.batik.bridge.ViewBox
Constructor Summary | |
protected | ViewBox() No instance of this class is required. |
Method Summary | |
public static AffineTransform | getPreserveAspectRatioTransform(Element e, float w, float h) Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element. | public static AffineTransform | getPreserveAspectRatioTransform(Element e, float w, float h, BridgeContext ctx) Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element. | public static AffineTransform | getPreserveAspectRatioTransform(Element e, String viewBox, String aspectRatio, float w, float h, BridgeContext ctx) Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element. | public static AffineTransform | getPreserveAspectRatioTransform(Element e, float[] vb, float w, float h, BridgeContext ctx) Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element. | public static AffineTransform | getPreserveAspectRatioTransform(Element e, float[] vb, float w, float h, SVGAnimatedPreserveAspectRatio aPAR, BridgeContext ctx) Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element. | public static AffineTransform | getPreserveAspectRatioTransform(float[] vb, short align, boolean meet, float w, float h) Returns the preserveAspectRatio transform according to the specified
parameters. | public static AffineTransform | getViewTransform(String ref, Element e, float w, float h, BridgeContext ctx) Parses the specified reference (from a URI) and returns the appropriate
transform. | public static float[] | parseViewBoxAttribute(Element e, String value, BridgeContext ctx) Parses a viewBox attribute. |
ViewBox | protected ViewBox()(Code) | | No instance of this class is required.
|
getPreserveAspectRatioTransform | public static AffineTransform getPreserveAspectRatioTransform(Element e, float w, float h, BridgeContext ctx)(Code) | | Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element.
Parameters: e - the element with a viewbox Parameters: w - the width of the effective viewport Parameters: h - The height of the effective viewport Parameters: ctx - The BridgeContext to use for error information |
getPreserveAspectRatioTransform | public static AffineTransform getPreserveAspectRatioTransform(Element e, String viewBox, String aspectRatio, float w, float h, BridgeContext ctx)(Code) | | Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element.
Parameters: e - the element with a viewbox Parameters: viewBox - the viewBox definition Parameters: w - the width of the effective viewport Parameters: h - The height of the effective viewport Parameters: ctx - The BridgeContext to use for error information |
getPreserveAspectRatioTransform | public static AffineTransform getPreserveAspectRatioTransform(Element e, float[] vb, float w, float h, BridgeContext ctx)(Code) | | Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element.
Parameters: e - the element with a viewbox Parameters: vb - the viewBox definition as float Parameters: w - the width of the effective viewport Parameters: h - The height of the effective viewport Parameters: ctx - The BridgeContext to use for error information |
getPreserveAspectRatioTransform | public static AffineTransform getPreserveAspectRatioTransform(Element e, float[] vb, float w, float h, SVGAnimatedPreserveAspectRatio aPAR, BridgeContext ctx)(Code) | | Returns the transformation matrix to apply to initalize a viewport or
null if the specified viewBox disables the rendering of the element.
Parameters: e - the element with a viewbox Parameters: vb - the viewBox definition as float Parameters: w - the width of the effective viewport Parameters: h - The height of the effective viewport Parameters: aPAR - The animated preserveAspectRatio value Parameters: ctx - The BridgeContext to use for error information |
getPreserveAspectRatioTransform | public static AffineTransform getPreserveAspectRatioTransform(float[] vb, short align, boolean meet, float w, float h)(Code) | | Returns the preserveAspectRatio transform according to the specified
parameters.
Parameters: vb - the viewBox definition Parameters: align - the alignment definition Parameters: meet - true means 'meet', false means 'slice' Parameters: w - the width of the region in which the document has to fit into Parameters: h - the height of the region in which the document has to fit into |
getViewTransform | public static AffineTransform getViewTransform(String ref, Element e, float w, float h, BridgeContext ctx)(Code) | | Parses the specified reference (from a URI) and returns the appropriate
transform.
Parameters: ref - the reference of the URI that may specify additional attributevalues such as the viewBox, preserveAspectRatio or a transform Parameters: e - the element interested in its view transform Parameters: w - the width of the effective viewport Parameters: h - The height of the effective viewport Parameters: ctx - The BridgeContext to use for error information exception: BridgeException - if an error occured while computing thepreserveAspectRatio transform |
parseViewBoxAttribute | public static float[] parseViewBoxAttribute(Element e, String value, BridgeContext ctx)(Code) | | Parses a viewBox attribute.
Parameters: e - the element whose viewBox attribute value is being parsed Parameters: value - the viewBox Parameters: ctx - the BridgeContext to use for error information The 4 viewbox components or null. |
|
|