Java Reference
In-Depth Information
]]>
</script>
<defs id="defs4173">
... // beginning of SVG code
... // Main clock code
<g id="hands" transform="translate(108,100)">
<g id="minuteHand">
<line stroke-width="3.59497285" y2="50"
stroke-linecap="round" stroke="#00fff6" opacity=".9" />
<animateTransform attributeName="transform" type="rotate"
repeatCount="indefinite" dur="60min" by="360" />
</g>
<g id="hourHand">
<line stroke-width="5" y2="30" stroke-linecap="round"
stroke="#ffcb00" opacity=".9" />
<animateTransform attributeName="transform" type="rotate"
repeatCount="indefinite" dur="12h" by="360" />
</g>
<g id="secondHand">
<line stroke-width="2" y1="-20" y2="70"
stroke-linecap="round" stroke="red"/>
<animateTransform attributeName="transform" type="rotate"
repeatCount="indefinite" dur="60s" by="360" />
</g>
</g>
... // The rest of the Clock code: shiney glare,
black button cover (center) on top of arms
</svg>
Figure 17-7 depicts a JavaFX application that renders the SVG file clock3.svg
displaying an analog clock.
 
Search WWH ::




Custom Search