|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use BridgeContext | |
|---|---|
| org.apache.batik.bridge | Provides an API for mapping and maintaining consistency between the SVG DOM tree and the GVT tree. |
| org.apache.batik.bridge.svg12 | |
| org.apache.batik.extension.svg | |
| org.apache.batik.gvt.svg12 | |
| org.apache.batik.script | Provides an API for interpreting scripting language found in SVG files. |
| org.apache.batik.swing.svg | |
| org.apache.batik.transcoder | Contains all of the interfaces for transcoding an input stream or a document to a particular ouput format. |
| Uses of BridgeContext in org.apache.batik.bridge |
|---|
| Fields in org.apache.batik.bridge declared as BridgeContext | |
|---|---|
protected BridgeContext |
UpdateManager.bridgeContext
The bridge context. |
protected BridgeContext |
BaseScriptingEnvironment.bridgeContext
The bridge context. |
protected BridgeContext |
BridgeEventSupport.Listener.context
|
protected BridgeContext |
SVGAnimationElementBridge.ctx
The BridgeContext to be used. |
protected BridgeContext |
SVGDocumentBridge.ctx
The bridge context. |
protected BridgeContext |
SVGAnimationEngine.ctx
The BridgeContext to use for value parsing. |
protected BridgeContext |
UserAgentAdapter.ctx
The BridgeContext to use for error information. |
protected BridgeContext |
UnitProcessor.DefaultContext.ctx
The bridge context. |
protected BridgeContext |
CursorManager.ctx
BridgeContext associated with this CursorManager |
protected BridgeContext |
SVGFontFamily.ctx
|
protected BridgeContext |
SVGUseElementBridge.CursorMouseOverListener.ctx
|
protected BridgeContext |
AnimatableSVGBridge.ctx
The bridge context to use for dynamic updates. |
protected BridgeContext |
BridgeContext.primaryContext
The bridge context for the primary document, if this is a bridge context for a resource document. |
protected BridgeContext[] |
UpdateManager.secondaryBridgeContexts
Array of resource documents' BridgeContexts. |
protected BridgeContext |
SVGImageElementBridge.subCtx
|
protected BridgeContext |
SVGUseElementBridge.subCtx
The bridge context for the referenced document. |
| Methods in org.apache.batik.bridge that return BridgeContext | |
|---|---|
BridgeContext |
BridgeContext.createBridgeContext(SVGOMDocument doc)
This function creates a new BridgeContext, it mostly exists so subclasses can provide an instance of themselves when a sub BridgeContext is needed. |
BridgeContext |
BridgeContext.createSubBridgeContext(SVGOMDocument newDoc)
This function creates a new 'sub' BridgeContext to associated with 'newDoc' if one currently doesn't exist, otherwise it returns the BridgeContext currently associated with the document. |
BridgeContext |
ScriptingEnvironment.Window.getBridgeContext()
Returns the current BridgeContext. |
BridgeContext |
UpdateManager.getBridgeContext()
Returns the bridge context. |
BridgeContext |
BaseScriptingEnvironment.Window.getBridgeContext()
Returns the current BridgeContext. |
protected static BridgeContext |
UnitProcessor.getBridgeContext(UnitProcessor.Context ctx)
Returns the BridgeContext from the given UnitProcessor.DefaultContext
if it is a UnitProcessor.DefaultContext, or null otherwise. |
BridgeContext[] |
BridgeContext.getChildContexts()
Returns an array of the child contexts. |
BridgeContext |
BridgeContext.getPrimaryBridgeContext()
Returns the primary bridge context. |
| Methods in org.apache.batik.bridge with parameters of type BridgeContext | |
|---|---|
protected void |
SVGTextElementBridge.addChildGlyphPositionAttributes(AttributedString as,
Element element,
BridgeContext ctx)
|
protected void |
SVGTextElementBridge.addChildPaintAttributes(AttributedString as,
Element element,
TextNode node,
TextPaintInfo parentPI,
BridgeContext ctx)
|
protected void |
SVGTextElementBridge.addContextToChild(BridgeContext ctx,
Element e)
Add to the element children of the node, an SVGContext to support dynamic update. |
protected void |
SVGTextElementBridge.addGlyphPositionAttributes(AttributedString as,
Element element,
BridgeContext ctx)
Adds glyph position attributes to an AttributedString. |
static void |
BridgeEventSupport.addGVTListener(BridgeContext ctx,
Document doc)
Is called only for the root element in order to dispatch GVT events to the DOM. |
protected void |
SVGTextElementBridge.addPaintAttributes(AttributedString as,
Element element,
TextNode node,
TextPaintInfo pi,
BridgeContext ctx)
Adds painting attributes to an AttributedString. |
protected void |
SVGTextElementBridge.addTextEventListeners(BridgeContext ctx,
NodeEventTarget e)
Adds the DOM listeners for this text bridge. |
protected void |
AbstractGraphicsNodeBridge.associateSVGContext(BridgeContext ctx,
Element e,
GraphicsNode node)
Associates the SVGContext with the element. |
GraphicsNode |
GVTBuilder.build(BridgeContext ctx,
Document document)
Builds using the specified bridge context the specified SVG document. |
GraphicsNode |
GVTBuilder.build(BridgeContext ctx,
Element e)
Builds using the specified bridge context the specified Element. |
protected AttributedString |
SVGTextElementBridge.buildAttributedString(BridgeContext ctx,
Element element)
Creates the attributed string which represents the given text element children. |
protected void |
GVTBuilder.buildComposite(BridgeContext ctx,
Element e,
CompositeGraphicsNode parentNode)
Builds a composite Element. |
CompositeGraphicsNode |
SVGUseElementBridge.buildCompositeGraphicsNode(BridgeContext ctx,
Element e,
CompositeGraphicsNode gn)
Creates a GraphicsNode from the input element and populates the input CompositeGraphicsNode |
protected static Filter |
SVGFilterElementBridge.buildFilterPrimitives(Element filterElement,
Rectangle2D filterRegion,
Element filteredElement,
GraphicsNode filteredNode,
Filter in,
Map filterNodeMap,
BridgeContext ctx)
Builds the filter primitives of filter chain of the specified filter element and returns the last filter primitive created. |
protected abstract Paint |
AbstractSVGGradientElementBridge.buildGradient(Element paintElement,
Element paintedElement,
GraphicsNode paintedNode,
MultipleGradientPaint.CycleMethodEnum spreadMethod,
MultipleGradientPaint.ColorSpaceEnum colorSpace,
AffineTransform transform,
Color[] colors,
float[] offsets,
BridgeContext ctx)
Builds a concrete gradient according to the specified parameters. |
protected Paint |
SVGRadialGradientElementBridge.buildGradient(Element paintElement,
Element paintedElement,
GraphicsNode paintedNode,
MultipleGradientPaint.CycleMethodEnum spreadMethod,
MultipleGradientPaint.ColorSpaceEnum colorSpace,
AffineTransform transform,
Color[] colors,
float[] offsets,
BridgeContext ctx)
Builds a radial gradient according to the specified parameters. |
protected Paint |
SVGLinearGradientElementBridge.buildGradient(Element paintElement,
Element paintedElement,
GraphicsNode paintedNode,
MultipleGradientPaint.CycleMethodEnum spreadMethod,
MultipleGradientPaint.ColorSpaceEnum colorSpace,
AffineTransform transform,
Color[] colors,
float[] offsets,
BridgeContext ctx)
Builds a linear gradient according to the specified parameters. |
void |
SVGDocumentBridge.buildGraphicsNode(BridgeContext ctx,
Document doc,
RootGraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
void |
DocumentBridge.buildGraphicsNode(BridgeContext ctx,
Document doc,
RootGraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
protected void |
GVTBuilder.buildGraphicsNode(BridgeContext ctx,
Element e,
CompositeGraphicsNode parentNode)
Builds a 'leaf' Element. |
void |
SVGTextElementBridge.buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
void |
GraphicsNodeBridge.buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
void |
SVGAElementBridge.buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
void |
SVGSVGElementBridge.buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
void |
SVGUseElementBridge.buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
void |
AbstractGraphicsNodeBridge.buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
void |
SVGShapeElementBridge.buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
protected GraphicsNode |
SVGImageElementBridge.buildImageGraphicsNode(BridgeContext ctx,
Element e)
Create a Graphics node according to the resource pointed by the href : RasterImageNode for bitmaps, CompositeGraphicsNode for svg files. |
protected static Filter |
SVGFilterElementBridge.buildLocalFilterPrimitives(Element filterElement,
Rectangle2D filterRegion,
Element filteredElement,
GraphicsNode filteredNode,
Filter in,
Map filterNodeMap,
BridgeContext ctx)
Builds the filter primitives of filter chain of the specified filter element and returns the last filter primitive created or 'in' if no filter primitive has been specified. |
protected void |
SVGPathElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode shapeNode)
Constructs a path according to the specified parameters. |
protected void |
SVGRectElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode shapeNode)
Constructs a rectangle according to the specified parameters. |
protected void |
SVGEllipseElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode shapeNode)
Constructs an ellipse according to the specified parameters. |
protected void |
SVGPolygonElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode shapeNode)
Constructs a polygon according to the specified parameters. |
protected void |
SVGCircleElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode shapeNode)
Constructs a circle according to the specified parameters. |
protected void |
SVGPolylineElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode shapeNode)
Constructs a polyline according to the specified parameters. |
protected void |
SVGLineElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode shapeNode)
Constructs a line according to the specified parameters. |
protected abstract void |
SVGShapeElementBridge.buildShape(BridgeContext ctx,
Element e,
ShapeNode node)
Initializes the specified ShapeNode's shape defined by the specified Element and using the specified bridge context. |
protected void |
SVGTextElementBridge.computeLaidoutText(BridgeContext ctx,
Element e,
GraphicsNode node)
Recompute the layout of the <text> node. |
protected AffineTransform |
SVGUseElementBridge.computeTransform(org.w3c.dom.svg.SVGTransformable e,
BridgeContext ctx)
Returns an AffineTransform that is the transformation to
be applied to the node. |
protected AffineTransform |
AbstractGraphicsNodeBridge.computeTransform(org.w3c.dom.svg.SVGTransformable te,
BridgeContext ctx)
Returns an AffineTransform that is the transformation to
be applied to the node. |
protected static float[] |
SVGFeTurbulenceElementBridge.convertBaseFrenquency(Element e,
BridgeContext ctx)
Converts the 'baseFrequency' attribute of the specified feTurbulence element. |
protected static ARGBChannel |
SVGFeDisplacementMapElementBridge.convertChannelSelector(Element filterElement,
String attrName,
ARGBChannel defaultChannel,
BridgeContext ctx)
Returns the channel for the specified feDisplacementMap filter primitive attribute, considering the specified attribute name. |
static ClipRable |
CSSUtilities.convertClipPath(Element clippedElement,
GraphicsNode clippedNode,
BridgeContext ctx)
Returns a Clip referenced by the specified element and which applies on the specified graphics node. |
static Cursor |
CSSUtilities.convertCursor(Element e,
BridgeContext ctx)
Returns the Cursor corresponding to the input element's cursor property |
protected static float |
SVGFeConvolveMatrixElementBridge.convertDivisor(Element filterElement,
float[] kernelMatrix,
BridgeContext ctx)
Convert the 'divisor' attribute of the specified feConvolveMatrix filter primitive element. |
protected static PadMode |
SVGFeConvolveMatrixElementBridge.convertEdgeMode(Element filterElement,
BridgeContext ctx)
Convert the 'edgeMode' attribute of the specified feConvolveMatrix filter primitive element. |
static ShapePainter |
PaintServer.convertFillAndStroke(Element e,
ShapeNode node,
BridgeContext ctx)
Returns a ShapePainter defined on the specified element and for the specified shape node, and using the specified bridge context. |
static Paint |
PaintServer.convertFillPaint(Element filledElement,
GraphicsNode filledNode,
BridgeContext ctx)
Converts for the specified element, its fill paint properties to a Paint object. |
static Filter |
CSSUtilities.convertFilter(Element filteredElement,
GraphicsNode filteredNode,
BridgeContext ctx)
Returns a Filter referenced by the specified element and which applies on the specified graphics node. |
static Rectangle2D |
SVGUtilities.convertFilterChainRegion(Element filterElement,
Element filteredElement,
GraphicsNode filteredNode,
BridgeContext ctx)
Returns the filter region according to the x, y, width, height, dx, dy, dw, dh and filterUnits attributes. |
static Rectangle2D |
SVGUtilities.convertFilterPrimitiveRegion(Element filterPrimitiveElement,
Element filterElement,
Element filteredElement,
GraphicsNode filteredNode,
Rectangle2D defaultRegion,
Rectangle2D filterRegion,
BridgeContext ctx)
Returns the filter primitive region according to the x, y, width, height, and filterUnits attributes. |
static Rectangle2D |
SVGUtilities.convertFilterPrimitiveRegion(Element filterPrimitiveElement,
Element filteredElement,
GraphicsNode filteredNode,
Rectangle2D defaultRegion,
Rectangle2D filterRegion,
BridgeContext ctx)
Returns the filter primitive region according to the x, y, width, height, and filterUnits attributes. |
static float[] |
SVGUtilities.convertFilterRes(Element filterElement,
BridgeContext ctx)
Returns an array of 2 float numbers that describes the filter resolution of the specified filter element. |
static Color |
CSSUtilities.convertFloodColor(Element e,
BridgeContext ctx)
Converts the color defined on the specified <feFlood> element to a Color. |
static Color |
PaintServer.convertICCColor(Element e,
ICCColor c,
float opacity,
BridgeContext ctx)
Returns a Color object that corresponds to the input Paint's ICC color value or null if the related color profile could not be used or loaded for any reason. |
protected static int |
AbstractSVGFilterPrimitiveElementBridge.convertInteger(Element filterElement,
String attrName,
int defaultValue,
BridgeContext ctx)
Converts on the specified filter primitive element, the specified attribute that represents an integer and with the specified default value. |
protected static float[] |
SVGFeConvolveMatrixElementBridge.convertKernelMatrix(Element filterElement,
int[] orderXY,
BridgeContext ctx)
Convert the 'kernelMatrix' attribute of the specified feConvolveMatrix filter primitive element. |
protected static double[] |
SVGFeConvolveMatrixElementBridge.convertKernelUnitLength(Element filterElement,
BridgeContext ctx)
Convert the 'kernelUnitLength' attribute of the specified feConvolveMatrix filter primitive element. |
protected static double[] |
AbstractSVGLightingElementBridge.convertKernelUnitLength(Element filterElement,
BridgeContext ctx)
Convert the 'kernelUnitLength' attribute of the specified feDiffuseLighting or feSpecularLighting filter primitive element. |
static Color |
CSSUtilities.convertLightingColor(Element e,
BridgeContext ctx)
Converts the color defined on the specified lighting filter element to a Color. |
static Marker |
PaintServer.convertMarker(Element e,
Value v,
BridgeContext ctx)
Returns a Marker defined on the specified element by the specified value, and for the specified shape node. |
static ShapePainter |
PaintServer.convertMarkers(Element e,
ShapeNode node,
BridgeContext ctx)
Returns a ShapePainter defined on the specified element and for the specified shape node. |
static Mask |
CSSUtilities.convertMask(Element maskedElement,
GraphicsNode maskedNode,
BridgeContext ctx)
Returns a Mask referenced by the specified element and which applies on the specified graphics node. |
static Rectangle2D |
SVGUtilities.convertMaskRegion(Element maskElement,
Element maskedElement,
GraphicsNode maskedNode,
BridgeContext ctx)
Returns the mask region according to the x, y, width, height, and maskUnits attributes. |
protected static CompositeRule |
SVGFeBlendElementBridge.convertMode(Element filterElement,
BridgeContext ctx)
Converts the 'mode' of the specified feBlend filter primitive. |
protected static float |
AbstractSVGFilterPrimitiveElementBridge.convertNumber(Element filterElement,
String attrName,
float defaultValue,
BridgeContext ctx)
Converts on the specified filter primitive element, the specified attribute that represents a float and with the specified default value. |
protected static CompositeRule |
SVGFeCompositeElementBridge.convertOperator(Element filterElement,
BridgeContext ctx)
Converts the 'operator' attribute of the specified feComposite filter primitive element. |
protected static boolean |
SVGFeMorphologyElementBridge.convertOperator(Element filterElement,
BridgeContext ctx)
Returns the 'operator' of the specified feMorphology filter primitive. |
protected static int[] |
SVGFeConvolveMatrixElementBridge.convertOrder(Element filterElement,
BridgeContext ctx)
Convert the 'order' attribute of the specified feConvolveMatrix filter primitive element. |
static Paint |
PaintServer.convertPaint(Element paintedElement,
GraphicsNode paintedNode,
Value paintDef,
float opacity,
BridgeContext ctx)
Converts a Paint definition to a concrete java.awt.Paint instance according to the specified parameters. |
static Rectangle2D |
SVGUtilities.convertPatternRegion(Element patternElement,
Element paintedElement,
GraphicsNode paintedNode,
BridgeContext ctx)
Returns the pattern region according to the x, y, width, height, and patternUnits attributes. |
protected static boolean |
SVGFeConvolveMatrixElementBridge.convertPreserveAlpha(Element filterElement,
BridgeContext ctx)
Convert the 'preserveAlpha' attribute of the specified feConvolveMatrix filter primitive element. |
protected static float[] |
SVGFeMorphologyElementBridge.convertRadius(Element filterElement,
BridgeContext ctx)
Returns the radius (or radii) of the specified feMorphology filter primitive. |
static Color |
PaintServer.convertRGBICCColor(Element paintedElement,
Value colorDef,
ICCColor iccColor,
float opacity,
BridgeContext ctx)
Returns a Color object that corresponds to the input Paint's ICC color value or an RGB color if the related color profile could not be used or loaded for any reason. |
static float |
SVGUtilities.convertSnapshotTime(Element e,
BridgeContext ctx)
Returns the value of the 'snapshotTime' attribute on the specified element as a float, or 0f if the attribute is missing
or given as "none". |
protected static float |
SVGFeSpecularLightingElementBridge.convertSpecularExponent(Element filterElement,
BridgeContext ctx)
Returns the specular exponent of the specular feSpecularLighting filter primitive element. |
protected static MultipleGradientPaint.CycleMethodEnum |
AbstractSVGGradientElementBridge.convertSpreadMethod(Element paintElement,
String s,
BridgeContext ctx)
Converts the spreadMethod attribute. |
protected static float[] |
SVGFeGaussianBlurElementBridge.convertStdDeviation(Element filterElement,
BridgeContext ctx)
Returns the standard deviation of the specified feGaussianBlur filter primitive element. |
protected static boolean |
SVGFeTurbulenceElementBridge.convertStitchTiles(Element e,
BridgeContext ctx)
Converts the 'stitchTiles' attribute of the specified feTurbulence element. |
static Color |
CSSUtilities.convertStopColor(Element e,
float opacity,
BridgeContext ctx)
Converts the color defined on the specified <stop> element to a Color. |
static Paint |
PaintServer.convertStrokePaint(Element strokedElement,
GraphicsNode strokedNode,
BridgeContext ctx)
Converts for the specified element, its stroke paint properties to a Paint object. |
static ShapePainter |
PaintServer.convertStrokePainter(Element e,
ShapeNode node,
BridgeContext ctx)
|
static Float[] |
SVGUtilities.convertSVGNumberOptionalNumber(Element elem,
String attrName,
String attrValue,
BridgeContext ctx)
This function parses attrValue for a number followed by an optional second Number. |
protected static float[] |
SVGFeComponentTransferElementBridge.SVGFeFuncElementBridge.convertTableValues(Element e,
BridgeContext ctx)
Converts the 'tableValues' attribute of the specified component transfer function element. |
protected static int[] |
SVGFeConvolveMatrixElementBridge.convertTarget(Element filterElement,
int[] orderXY,
BridgeContext ctx)
Convert the 'targetX' and 'targetY' attributes of the specified feConvolveMatrix filter primitive element. |
static AffineTransform |
SVGUtilities.convertTransform(Element e,
String attr,
String transform,
BridgeContext ctx)
Returns an AffineTransform according to the specified parameters. |
protected static boolean |
SVGFeTurbulenceElementBridge.convertType(Element e,
BridgeContext ctx)
Converts the 'type' attribute of the specified feTurbulence element. |
protected static int |
SVGFeColorMatrixElementBridge.convertType(Element filterElement,
BridgeContext ctx)
Converts the type of the specified color matrix filter primitive. |
protected static int |
SVGFeComponentTransferElementBridge.SVGFeFuncElementBridge.convertType(Element e,
BridgeContext ctx)
Converts the type of the specified component transfert function element. |
static Paint |
PaintServer.convertURIPaint(Element paintedElement,
GraphicsNode paintedNode,
Value paintDef,
float opacity,
BridgeContext ctx)
Converts a Paint specified as a URI. |
protected static float |
SVGFeColorMatrixElementBridge.convertValuesToHueRotate(Element filterElement,
BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'hueRotate' type. |
protected static float[][] |
SVGFeColorMatrixElementBridge.convertValuesToMatrix(Element filterElement,
BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'matrix' type. |
protected static float |
SVGFeColorMatrixElementBridge.convertValuesToSaturate(Element filterElement,
BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'saturate' type. |
Glyph[] |
SVGAltGlyphElementBridge.createAltGlyphArray(BridgeContext ctx,
Element altGlyphElement,
float fontSize,
AttributedCharacterIterator aci)
Constructs an array of Glyphs that represents the specified <altGlyph> element at the requested size. |
ClipRable |
SVGClipPathElementBridge.createClip(BridgeContext ctx,
Element clipElement,
Element clipedElement,
GraphicsNode clipedNode)
Creates a Clip according to the specified parameters. |
ClipRable |
ClipBridge.createClip(BridgeContext ctx,
Element clipElement,
Element clipedElement,
GraphicsNode clipedNode)
|