/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { SVGPathSegList psl = getPathSegList(); PathArrayProducer pp = new PathArrayProducer(); SVGAnimatedPathDataSupport.handlePathSegList(psl, pp); return new AnimatablePathDataValue(target, pp.getPathCommands(), pp.getPathParameters()); }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { SVGPathSegList psl = getPathSegList(); PathArrayProducer pp = new PathArrayProducer(); SVGAnimatedPathDataSupport.handlePathSegList(psl, pp); return new AnimatablePathDataValue(target, pp.getPathCommands(), pp.getPathParameters()); }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { SVGPathSegList psl = getPathSegList(); PathArrayProducer pp = new PathArrayProducer(); SVGAnimatedPathDataSupport.handlePathSegList(psl, pp); return new AnimatablePathDataValue(target, pp.getPathCommands(), pp.getPathParameters()); }
SVGAnimatedPathDataSupport.handlePathSegList (pathElt.getPathSegList(), app); return (ExtendedGeneralPath) app.getShape();
SVGAnimatedPathDataSupport.handlePathSegList (pathElt.getPathSegList(), app); return (ExtendedGeneralPath) app.getShape();
SVGAnimatedPathDataSupport.handlePathSegList (pathElt.getPathSegList(), app); return (ExtendedGeneralPath) app.getShape();
/** * 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()); } }
/** * 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()); } }
/** * 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()); } }