Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About onPrepare,onPrepare,onPattern #32

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 2 comments
Closed

About onPrepare,onPrepare,onPattern #32

GoogleCodeExporter opened this issue Mar 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Hi, Can you tell me what means about the function "onPrepare","onPrepare" 
,"onPattern" in SvgElement ?
Sorry ,the time of learning the fog is very short, I can't understand……

Original issue reported on code.google.com by weolar@gmail.com on 14 Sep 2011 at 4:04

@GoogleCodeExporter
Copy link
Author

Hi, of course:)

onPrepare() is called when SvgElement is being rendered. The purpose of the 
function is  to setup all painting states to the SvgVisitor (the state 
machine). It does setting of stroke style, fill style, font and font style, and 
transform. In future it should also setup clipping (not implemented currently).

onProcess() is called to render, hit-test, or measure element. The purpose of 
the function is to serialize the element into the SvgVisitor. If SvgVisitor is 
renderer then it will be rendered, if it's SvgMeasure then measured, etc...

onPattern() is called to prepare pattern context for the element. It's only 
reimplemented by the SvgLinearGradient, SvgRadialGradient, and SvgPattern 
elements.

BTW: Please use mailing list (google groups) for questions, this is place 
mainly for bug reporting, not discussion;)

Thanks.
Petr

Original comment by kobalicek.petr on 14 Sep 2011 at 6:47

@GoogleCodeExporter
Copy link
Author

Closed, because it's not bug;)

Original comment by kobalicek.petr on 5 Dec 2011 at 6:42

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant