<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:07:26 CEST 2007 --> <TITLE> QSvgRenderer </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.svg.QSvgRenderer class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QSvgRenderer"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/svg/QGraphicsSvgItem.enum_1.html" title="enum in com.trolltech.qt.svg"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/svg/QSvgWidget.html" title="class in com.trolltech.qt.svg"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/svg/QSvgRenderer.html" target="_top"><B>FRAMES</B></A> <A HREF="QSvgRenderer.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.trolltech.qt.svg</FONT> <BR> Class QSvgRenderer</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.svg.QSvgRenderer</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>QSvgRenderer</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></DL> </PRE> <P> <p>The <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a> class is used to draw the contents of SVG files onto paint devices.</p> <p>Using <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a>, Scalable Vector Graphics (SVG) can be rendered onto any <a href="%2E%2E/gui/QPaintDevice.html"><tt>QPaintDevice</tt></a> subclass, including <a href="%2E%2E/gui/QWidget.html"><tt>QWidget</tt></a>, <a href="%2E%2E/gui/QImage.html"><tt>QImage</tt></a>, and <a href="%2E%2E/opengl/QGLWidget.html"><tt>QGLWidget</tt></a>.</p> <p><a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a> provides an API that supports basic features of SVG rendering, such as loading and rendering of static drawings, and more interactive features like animation. Since the rendering is performed using <a href="%2E%2E/gui/QPainter.html"><tt>QPainter</tt></a>, SVG drawings can be rendered on any subclass of <a href="%2E%2E/gui/QPaintDevice.html"><tt>QPaintDevice</tt></a>.</p> <p>SVG drawings are either loaded when an <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a> is constructed, or loaded later using the <a href="QSvgRenderer.html#load(com.trolltech.qt.core.QByteArray)"><tt>load</tt></a> functions. Data is either supplied directly as serialized XML, or indirectly using a file name. If a valid file has been loaded, either when the renderer is constructed or at some later time, <a href="QSvgRenderer.html#isValid()"><tt>isValid</tt></a> returns true; otherwise it returns false. <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a> provides the <a href="QSvgRenderer.html#render(com.trolltech.qt.gui.QPainter)"><tt>render</tt></a> slot to render the current document, or the current frame of an animated document, using a given painter.</p> <p>The <a href="QSvgRenderer.html#defaultSize()"><tt>defaultSize</tt></a> function provides information about the amount of space that is required to render the currently loaded SVG file. This is useful for paint devices, such as <a href="%2E%2E/gui/QWidget.html"><tt>QWidget</tt></a>, that often need to supply a size hint to their parent layout. The default size of a drawing may differ from its visible area, found using the <a href="QSvgRenderer.html#viewBox()"><tt>viewBox</tt></a> property.</p> <p>Animated SVG drawings are supported, and can be controlled with a simple collection of functions and properties:</p> <ul> <li>The <a href="QSvgRenderer.html#animated()"><tt>animated</tt></a> function indicates whether a drawing contains animation information.</li> <li>The <a href="QSvgRenderer.html#framesPerSecond()"><tt>framesPerSecond</tt></a> property contains the rate at which the animation plays.</li> </ul> <p>Finally, the <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a> class provides the <a href="QSvgRenderer.html#repaintNeeded()"><tt>repaintNeeded</tt></a> signal which is emitted whenever the rendering of the document needs to be updated.</p> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QSvgWidget.html"><tt>QSvgWidget</tt></a>, <tt>QtSvg Module</tt>, <CODE>Viewer Example</tt></CODE>, <a href="%2E%2E/gui/QPicture.html"><tt>QPicture</tt></a></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>></CODE></TD> </TR> </TABLE> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#repaintNeeded">repaintNeeded</A></B></CODE> <BR> This signal is emitted whenever the rendering of the document needs to be updated, usually for the purposes of animation.</TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#QSvgRenderer()">QSvgRenderer</A></B>()</CODE> <BR> Equivalent to <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a>(0).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray)">QSvgRenderer</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> contents)</CODE> <BR> Equivalent to <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a>(<tt>contents</tt>, 0).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)">QSvgRenderer</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> contents, <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</CODE> <BR> Constructs a new renderer with the given <tt>parent</tt> and loads the specified SVG format <tt>contents</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QObject)">QSvgRenderer</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</CODE> <BR> Constructs a new renderer with the given <tt>parent</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#QSvgRenderer(java.lang.String)">QSvgRenderer</A></B>(java.lang.String filename)</CODE> <BR> Equivalent to <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a>(<tt>filename</tt>, 0).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#QSvgRenderer(java.lang.String, com.trolltech.qt.core.QObject)">QSvgRenderer</A></B>(java.lang.String filename, <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</CODE> <BR> Constructs a new renderer with the given <tt>parent</tt> and loads the contents of the SVG file with the specified <tt>filename</tt>.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#animated()">animated</A></B>()</CODE> <BR> Returns true if the current document contains animated elements; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#animationDuration()">animationDuration</A></B>()</CODE> <BR> This method is used internally by Qt Jambi.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#boundsOnElement(java.lang.String)">boundsOnElement</A></B>(java.lang.String id)</CODE> <BR> Returns bounding rectangle of the item with the given <tt>id</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#currentFrame()">currentFrame</A></B>()</CODE> <BR> Returns the current frame of the document's animation, or 0 if the document is not animated.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#defaultSize()">defaultSize</A></B>()</CODE> <BR> Returns the default size of the document contents.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#elementExists(java.lang.String)">elementExists</A></B>(java.lang.String id)</CODE> <BR> Returns true if the element with the given <tt>id</tt> exists in the currently parsed SVG file and is a renderable element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#framesPerSecond()">framesPerSecond</A></B>()</CODE> <BR> Returns the number of frames per second to be shown.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html" title="class in com.trolltech.qt.svg">QSvgRenderer</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</CODE> <BR> This function returns the QSvgRenderer instance pointed to by nativePointer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#isValid()">isValid</A></B>()</CODE> <BR> Returns true if there is a valid current document; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#load(com.trolltech.qt.core.QByteArray)">load</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> contents)</CODE> <BR> Loads the specified SVG format <tt>contents</tt>, returning true if the content was successfully parsed; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#load(java.lang.String)">load</A></B>(java.lang.String filename)</CODE> <BR> Loads the SVG file specified by <tt>filename</tt>, returning true if the content was successfully parsed; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#matrixForElement(java.lang.String)">matrixForElement</A></B>(java.lang.String id)</CODE> <BR> Returns the transformation matrix setup for the element with the given <tt>id</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#render(com.trolltech.qt.gui.QPainter)">render</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p)</CODE> <BR> Renders the current document, or the current frame of an animated document, using the given <tt>p</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)">render</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p, <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> bounds)</CODE> <BR> Renders the current document, or the current frame of an animated document, using the given <tt>p</tt> on the specified <tt>bounds</tt> within the painter.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#render(com.trolltech.qt.gui.QPainter, java.lang.String)">render</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p, java.lang.String elementId)</CODE> <BR> Equivalent to <a href="QSvgRenderer.html#render(com.trolltech.qt.gui.QPainter)">render</tt></a>(<tt>p</tt>, <tt>elementId</tt>, QRectF()).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#render(com.trolltech.qt.gui.QPainter, java.lang.String, com.trolltech.qt.core.QRectF)">render</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p, java.lang.String elementId, <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> bounds)</CODE> <BR> Renders the given element with <tt>elementId</tt> using the given <tt>p</tt> on the specified <tt>bounds</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#setCurrentFrame(int)">setCurrentFrame</A></B>(int arg__1)</CODE> <BR> Sets the current frame of the document's animation, or 0 if the document is not animated to <tt>arg__1</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#setFramesPerSecond(int)">setFramesPerSecond</A></B>(int num)</CODE> <BR> Sets the number of frames per second to be shown to <tt>num</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#setViewBox(com.trolltech.qt.core.QRect)">setViewBox</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> viewbox)</CODE> <BR> Sets the rectangle specifying the visible area of the document in logical coordinates to <tt>viewbox</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#setViewBox(com.trolltech.qt.core.QRectF)">setViewBox</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> viewbox)</CODE> <BR> Sets the rectangle specifying the visible area of the document in logical coordinates to <tt>viewbox</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#viewBox()">viewBox</A></B>()</CODE> <BR> Returns <a href="QSvgRenderer.html#viewBoxF()"><tt>viewBoxF</tt></a>.toRect().</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html#viewBoxF()">viewBoxF</A></B>()</CODE> <BR> Returns the rectangle specifying the visible area of the document in logical coordinates.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="repaintNeeded"><!-- --></A><H3> repaintNeeded</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>repaintNeeded</B></PRE> <DL> <DD><p>This signal is emitted whenever the rendering of the document needs to be updated, usually for the purposes of animation.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <P> <DL> </DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="QSvgRenderer(java.lang.String)"><!-- --></A><H3> QSvgRenderer</H3> <PRE> public <B>QSvgRenderer</B>(java.lang.String filename)</PRE> <DL> <DD><p>Equivalent to <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a>(<tt>filename</tt>, 0). <P> </DL> <HR> <A NAME="QSvgRenderer(java.lang.String, com.trolltech.qt.core.QObject)"><!-- --></A><H3> QSvgRenderer</H3> <PRE> public <B>QSvgRenderer</B>(java.lang.String filename, <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</PRE> <DL> <DD><p>Constructs a new renderer with the given <tt>parent</tt> and loads the contents of the SVG file with the specified <tt>filename</tt>.</p> <P> </DL> <HR> <A NAME="QSvgRenderer(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3> QSvgRenderer</H3> <PRE> public <B>QSvgRenderer</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> contents)</PRE> <DL> <DD><p>Equivalent to <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a>(<tt>contents</tt>, 0). <P> </DL> <HR> <A NAME="QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><!-- --></A><H3> QSvgRenderer</H3> <PRE> public <B>QSvgRenderer</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> contents, <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</PRE> <DL> <DD><p>Constructs a new renderer with the given <tt>parent</tt> and loads the specified SVG format <tt>contents</tt>.</p> <P> </DL> <HR> <A NAME="QSvgRenderer()"><!-- --></A><H3> QSvgRenderer</H3> <PRE> public <B>QSvgRenderer</B>()</PRE> <DL> <DD><p>Equivalent to <a href="QSvgRenderer.html#QSvgRenderer(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QObject)"><tt>QSvgRenderer</tt></a>(0). <P> </DL> <HR> <A NAME="QSvgRenderer(com.trolltech.qt.core.QObject)"><!-- --></A><H3> QSvgRenderer</H3> <PRE> public <B>QSvgRenderer</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</PRE> <DL> <DD><p>Constructs a new renderer with the given <tt>parent</tt>.</p> <P> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="animated()"><!-- --></A><H3> animated</H3> <PRE> public final boolean <B>animated</B>()</PRE> <DL> <DD><p>Returns true if the current document contains animated elements; otherwise returns false.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#framesPerSecond()"><tt>framesPerSecond</tt></a></DL> </DD> </DL> <HR> <A NAME="animationDuration()"><!-- --></A><H3> animationDuration</H3> <PRE> public final int <B>animationDuration</B>()</PRE> <DL> <DD><p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#animated()"><tt>animated</tt></a>, <a href="QSvgRenderer.html#framesPerSecond()"><tt>framesPerSecond</tt></a></DL> </DD> </DL> <HR> <A NAME="boundsOnElement(java.lang.String)"><!-- --></A><H3> boundsOnElement</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>boundsOnElement</B>(java.lang.String id)</PRE> <DL> <DD><p>Returns bounding rectangle of the item with the given <tt>id</tt>. The transformation matrix of parent elements is not affecting the bounds of the element.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="currentFrame()"><!-- --></A><H3> currentFrame</H3> <PRE> public final int <B>currentFrame</B>()</PRE> <DL> <DD><p>Returns the current frame of the document's animation, or 0 if the document is not animated.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#setCurrentFrame(int)"><tt>setCurrentFrame</tt></a>, <a href="QSvgRenderer.html#animationDuration()"><tt>animationDuration</tt></a>, <a href="QSvgRenderer.html#framesPerSecond()"><tt>framesPerSecond</tt></a>, <a href="QSvgRenderer.html#animated()"><tt>animated</tt></a></DL> </DD> </DL> <HR> <A NAME="defaultSize()"><!-- --></A><H3> defaultSize</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> <B>defaultSize</B>()</PRE> <DL> <DD><p>Returns the default size of the document contents.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="elementExists(java.lang.String)"><!-- --></A><H3> elementExists</H3> <PRE> public final boolean <B>elementExists</B>(java.lang.String id)</PRE> <DL> <DD><p>Returns true if the element with the given <tt>id</tt> exists in the currently parsed SVG file and is a renderable element.</p> <p>Note: this method returns true only for elements that can be rendered. Which implies that elements that are considered part of the fill/stroke style properties, e.g. radialGradients even tough marked with "id" attributes will not be found by this method.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="framesPerSecond()"><!-- --></A><H3> framesPerSecond</H3> <PRE> public final int <B>framesPerSecond</B>()</PRE> <DL> <DD><p>Returns the number of frames per second to be shown.</p> <p>The number of frames per second is 0 if the current document is not animated.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#setFramesPerSecond(int)"><tt>setFramesPerSecond</tt></a>, <a href="QSvgRenderer.html#animated()"><tt>animated</tt></a></DL> </DD> </DL> <HR> <A NAME="isValid()"><!-- --></A><H3> isValid</H3> <PRE> public final boolean <B>isValid</B>()</PRE> <DL> <DD><p>Returns true if there is a valid current document; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="load(java.lang.String)"><!-- --></A><H3> load</H3> <PRE> public final boolean <B>load</B>(java.lang.String filename)</PRE> <DL> <DD><p>Loads the SVG file specified by <tt>filename</tt>, returning true if the content was successfully parsed; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="load(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3> load</H3> <PRE> public final boolean <B>load</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> contents)</PRE> <DL> <DD><p>Loads the specified SVG format <tt>contents</tt>, returning true if the content was successfully parsed; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="matrixForElement(java.lang.String)"><!-- --></A><H3> matrixForElement</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A> <B>matrixForElement</B>(java.lang.String id)</PRE> <DL> <DD><p>Returns the transformation matrix setup for the element with the given <tt>id</tt>. That includes the transformation on the element itself.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="render(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)"><!-- --></A><H3> render</H3> <PRE> public final void <B>render</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p, <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> bounds)</PRE> <DL> <DD><p>Renders the current document, or the current frame of an animated document, using the given <tt>p</tt> on the specified <tt>bounds</tt> within the painter. If the bounding rectangle is not specified the SVG file is mapped to the whole paint device.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="render(com.trolltech.qt.gui.QPainter)"><!-- --></A><H3> render</H3> <PRE> public final void <B>render</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p)</PRE> <DL> <DD><p>Renders the current document, or the current frame of an animated document, using the given <tt>p</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="render(com.trolltech.qt.gui.QPainter, java.lang.String)"><!-- --></A><H3> render</H3> <PRE> public final void <B>render</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p, java.lang.String elementId)</PRE> <DL> <DD><p>Equivalent to <a href="QSvgRenderer.html#render(com.trolltech.qt.gui.QPainter)">render</tt></a>(<tt>p</tt>, <tt>elementId</tt>, QRectF()). <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="render(com.trolltech.qt.gui.QPainter, java.lang.String, com.trolltech.qt.core.QRectF)"><!-- --></A><H3> render</H3> <PRE> public final void <B>render</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> p, java.lang.String elementId, <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> bounds)</PRE> <DL> <DD><p>Renders the given element with <tt>elementId</tt> using the given <tt>p</tt> on the specified <tt>bounds</tt>. If the bounding rectangle is not specified the SVG element is mapped to the whole paint device.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setCurrentFrame(int)"><!-- --></A><H3> setCurrentFrame</H3> <PRE> public final void <B>setCurrentFrame</B>(int arg__1)</PRE> <DL> <DD><p>Sets the current frame of the document's animation, or 0 if the document is not animated to <tt>arg__1</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#currentFrame()"><tt>currentFrame</tt></a>, <a href="QSvgRenderer.html#animationDuration()"><tt>animationDuration</tt></a>, <a href="QSvgRenderer.html#framesPerSecond()"><tt>framesPerSecond</tt></a>, <a href="QSvgRenderer.html#animated()"><tt>animated</tt></a></DL> </DD> </DL> <HR> <A NAME="setFramesPerSecond(int)"><!-- --></A><H3> setFramesPerSecond</H3> <PRE> public final void <B>setFramesPerSecond</B>(int num)</PRE> <DL> <DD><p>Sets the number of frames per second to be shown to <tt>num</tt>.</p> <p>The number of frames per second is 0 if the current document is not animated.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#framesPerSecond()"><tt>framesPerSecond</tt></a>, <a href="QSvgRenderer.html#animated()"><tt>animated</tt></a></DL> </DD> </DL> <HR> <A NAME="setViewBox(com.trolltech.qt.core.QRect)"><!-- --></A><H3> setViewBox</H3> <PRE> public final void <B>setViewBox</B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> viewbox)</PRE> <DL> <DD><p>Sets the rectangle specifying the visible area of the document in logical coordinates to <tt>viewbox</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setViewBox(com.trolltech.qt.core.QRectF)"><!-- --></A><H3> setViewBox</H3> <PRE> public final void <B>setViewBox</B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> viewbox)</PRE> <DL> <DD><p>Sets the rectangle specifying the visible area of the document in logical coordinates to <tt>viewbox</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#viewBox()"><tt>viewBox</tt></a></DL> </DD> </DL> <HR> <A NAME="viewBox()"><!-- --></A><H3> viewBox</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> <B>viewBox</B>()</PRE> <DL> <DD><p>Returns <a href="QSvgRenderer.html#viewBoxF()"><tt>viewBoxF</tt></a>.toRect().</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSvgRenderer.html#setViewBox(com.trolltech.qt.core.QRectF)"><tt>setViewBox</tt></a>, <a href="QSvgRenderer.html#viewBoxF()"><tt>viewBoxF</tt></a></DL> </DD> </DL> <HR> <A NAME="viewBoxF()"><!-- --></A><H3> viewBoxF</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>viewBoxF</B>()</PRE> <DL> <DD><p>Returns the rectangle specifying the visible area of the document in logical coordinates.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3> fromNativePointer</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/svg/QSvgRenderer.html" title="class in com.trolltech.qt.svg">QSvgRenderer</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</PRE> <DL> <DD>This function returns the QSvgRenderer instance pointed to by nativePointer <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/svg/QGraphicsSvgItem.enum_1.html" title="enum in com.trolltech.qt.svg"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/svg/QSvgWidget.html" title="class in com.trolltech.qt.svg"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/svg/QSvgRenderer.html" target="_top"><B>FRAMES</B></A> <A HREF="QSvgRenderer.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>