/** * <b>DOM</b>: Implements {@link SVGPathElement#getAnimatedPathSegList()}. */ public SVGPathSegList getAnimatedPathSegList() { return d.getAnimatedPathSegList(); }
/** * <b>DOM</b>: Implements {@link * SVGPathElement#getAnimatedNormalizedPathSegList()}. */ public SVGPathSegList getAnimatedNormalizedPathSegList() { return d.getAnimatedNormalizedPathSegList(); }
/** * <b>DOM</b>: Implements {@link SVGPathElement#getNormalizedPathSegList()}. */ public SVGPathSegList getNormalizedPathSegList() { return d.getNormalizedPathSegList(); }
/** * Called when an Attr node has been added. */ public void attrAdded(Attr node, String newv) { if (!changing) { if (pathSegs != null) { pathSegs.invalidate(); } if (normalizedPathSegs != null) { normalizedPathSegs.invalidate(); } } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
/** * Constructs a path according to the specified parameters. * * @param ctx the bridge context to use * @param e the element that describes a rect element * @param shapeNode the shape node to initialize */ protected void buildShape(BridgeContext ctx, Element e, ShapeNode shapeNode) { SVGOMPathElement pe = (SVGOMPathElement) e; AWTPathProducer app = new AWTPathProducer(); try { // 'd' attribute - required SVGOMAnimatedPathData _d = pe.getAnimatedPathData(); _d.check(); SVGPathSegList p = _d.getAnimatedPathSegList(); app.setWindingRule(CSSUtilities.convertFillRule(e)); SVGAnimatedPathDataSupport.handlePathSegList(p, app); } catch (LiveAttributeException ex) { throw new BridgeException(ctx, ex); } finally { shapeNode.setShape(app.getShape()); } }
/** * <b>DOM</b>: Implements {@link SVGPathElement#getPathSegList()}. */ public SVGPathSegList getPathSegList() { return d.getPathSegList(); }
/** * Creates a new {@link SVGOMAnimatedPathData} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedPathData createLiveAnimatedPathData(String ns, String ln, String def) { SVGOMAnimatedPathData v = new SVGOMAnimatedPathData(this, ns, ln, def); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatablePathDataValue animPath = (AnimatablePathDataValue) val; if (animPathSegs == null) { animPathSegs = new AnimSVGPathSegList(); } animPathSegs.setAnimatedValue(animPath.getCommands(), animPath.getParameters()); } fireAnimatedAttributeListeners(); }
/** * Called when an Attr node has been modified. */ public void attrModified(Attr node, String oldv, String newv) { if (!changing) { if (pathSegs != null) { pathSegs.invalidate(); } if (normalizedPathSegs != null) { normalizedPathSegs.invalidate(); } } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
/** * Constructs a path according to the specified parameters. * * @param ctx the bridge context to use * @param e the element that describes a rect element * @param shapeNode the shape node to initialize */ protected void buildShape(BridgeContext ctx, Element e, ShapeNode shapeNode) { SVGOMPathElement pe = (SVGOMPathElement) e; AWTPathProducer app = new AWTPathProducer(); try { // 'd' attribute - required SVGOMAnimatedPathData _d = pe.getAnimatedPathData(); _d.check(); SVGPathSegList p = _d.getAnimatedPathSegList(); app.setWindingRule(CSSUtilities.convertFillRule(e)); SVGAnimatedPathDataSupport.handlePathSegList(p, app); } catch (LiveAttributeException ex) { throw new BridgeException(ctx, ex); } finally { shapeNode.setShape(app.getShape()); } }
/** * <b>DOM</b>: Implements {@link SVGPathElement#getPathSegList()}. */ public SVGPathSegList getPathSegList() { return d.getPathSegList(); }
/** * Creates a new {@link SVGOMAnimatedPathData} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedPathData createLiveAnimatedPathData(String ns, String ln, String def) { SVGOMAnimatedPathData v = new SVGOMAnimatedPathData(this, ns, ln, def); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * Updates the animated value with the given {@link AnimatableValue}. */ protected void updateAnimatedValue(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatablePathDataValue animPath = (AnimatablePathDataValue) val; if (animPathSegs == null) { animPathSegs = new AnimSVGPathSegList(); } animPathSegs.setAnimatedValue(animPath.getCommands(), animPath.getParameters()); } fireAnimatedAttributeListeners(); }
/** * Called when an Attr node has been modified. */ public void attrModified(Attr node, String oldv, String newv) { if (!changing) { if (pathSegs != null) { pathSegs.invalidate(); } if (normalizedPathSegs != null) { normalizedPathSegs.invalidate(); } } fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
/** * Constructs a path according to the specified parameters. * * @param ctx the bridge context to use * @param e the element that describes a rect element * @param shapeNode the shape node to initialize */ protected void buildShape(BridgeContext ctx, Element e, ShapeNode shapeNode) { SVGOMPathElement pe = (SVGOMPathElement) e; AWTPathProducer app = new AWTPathProducer(); try { // 'd' attribute - required SVGOMAnimatedPathData _d = pe.getAnimatedPathData(); _d.check(); SVGPathSegList p = _d.getAnimatedPathSegList(); app.setWindingRule(CSSUtilities.convertFillRule(e)); SVGAnimatedPathDataSupport.handlePathSegList(p, app); } catch (LiveAttributeException ex) { throw new BridgeException(ctx, ex); } finally { shapeNode.setShape(app.getShape()); } }
/** * <b>DOM</b>: Implements {@link SVGPathElement#getPathSegList()}. */ public SVGPathSegList getPathSegList() { return d.getPathSegList(); }
/** * Creates a new {@link SVGOMAnimatedPathData} and stores it in * this element's LiveAttributeValue table. */ protected SVGOMAnimatedPathData createLiveAnimatedPathData(String ns, String ln, String def) { SVGOMAnimatedPathData v = new SVGOMAnimatedPathData(this, ns, ln, def); liveAttributeValues.put(ns, ln, v); v.addAnimatedAttributeListener (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener()); return v; }
/** * <b>DOM</b>: Implements {@link SVGPathElement#getAnimatedPathSegList()}. */ public SVGPathSegList getAnimatedPathSegList() { return d.getAnimatedPathSegList(); }
/** * <b>DOM</b>: Implements {@link * SVGPathElement#getAnimatedNormalizedPathSegList()}. */ public SVGPathSegList getAnimatedNormalizedPathSegList() { return d.getAnimatedNormalizedPathSegList(); }
/** * <b>DOM</b>: Implements {@link SVGPathElement#getNormalizedPathSegList()}. */ public SVGPathSegList getNormalizedPathSegList() { return d.getNormalizedPathSegList(); }