/** * Returns the SVGContext associated to the specified Node or null if * there is none. */ protected static SVGContext getSVGContext(Node node) { if (node instanceof SVGOMElement) { return ((SVGOMElement) node).getSVGContext(); } else if (node instanceof SVGOMDocument) { return ((SVGOMDocument) node).getSVGContext(); } else { return null; } }
/** * Returns the SVGContext associated to the specified Node or null if * there is none. */ protected static SVGContext getSVGContext(Node node) { if (node instanceof SVGOMElement) { return ((SVGOMElement) node).getSVGContext(); } else if (node instanceof SVGOMDocument) { return ((SVGOMDocument) node).getSVGContext(); } else { return null; } }
/** * Returns the SVGContext associated to the specified Node or null if * there is none. */ protected static SVGContext getSVGContext(Node node) { if (node instanceof SVGOMElement) { return ((SVGOMElement) node).getSVGContext(); } else if (node instanceof SVGOMDocument) { return ((SVGOMDocument) node).getSVGContext(); } else { return null; } }