<!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:02:57 CEST 2007 --> <TITLE> QPen </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.gui.QPen class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QPen"; } </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/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QPicture.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/gui/QPen.html" target="_top"><B>FRAMES</B></A> <A HREF="QPen.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.gui</FONT> <BR> Class QPen</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 "><B>com.trolltech.qt.gui.QPen</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>QPen</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL> </PRE> <P> <p>The <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a> class defines how a <a href="QPainter.html"><tt>QPainter</tt></a> should draw lines and outlines of shapes.</p> <p>A pen has a <a href="QPen.html#style()"><tt>style</tt></a>, <a href="QPen.html#width()"><tt>width</tt></a>, <a href="QPen.html#brush()"><tt>brush</tt></a>, <a href="QPen.html#capStyle()"><tt>capStyle</tt></a> and <a href="QPen.html#joinStyle()"><tt>joinStyle</tt></a>.</p> <p>The pen style defines the line type. The brush is used to fill strokes generated with the pen. Use the <a href="QBrush.html"><tt>QBrush</tt></a> class to specify fill styles. The cap style determines the line end caps that can be drawn using <a href="QPainter.html"><tt>QPainter</tt></a>, while the join style describes how joins between two lines are drawn. The pen width can be specified in both integer (<a href="QPen.html#width()"><tt>width</tt></a>) and floating point (<a href="QPen.html#widthF()"><tt>widthF</tt></a>) precision. A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the <a href="QPainter.html#coordinate-transformations">transformation</tt></a> set on the painter.</p> <p>The various settings can easily be modified using the corresponding <a href="QPen.html#setStyle(com.trolltech.qt.core.Qt.PenStyle)"><tt>setStyle</tt></a>, <a href="QPen.html#setWidth(int)"><tt>setWidth</tt></a>, <a href="QPen.html#setBrush(com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, <a href="QPen.html#setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)"><tt>setCapStyle</tt></a> and <a href="QPen.html#setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>setJoinStyle</tt></a> functions (note that the painter's pen must be reset when altering the pen's properties).</p> <p>For example:</p> <pre> QPainter painter(this); QPen pen(Qt::green, 3, Qt::DashDotLine, Qt::RoundCap, Qt::RoundJoin); painter.setPen(pen);</pre> <p>which is equivalent to</p> <pre> QPainter painter(this); QPen pen(); <span class="comment">// creates a default pen</span> pen.setStyle(Qt::DashDotLine); pen.setWidth(3); pen.setBrush(Qt::green); pen.setCapStyle(Qt::RoundCap); pen.setJoinStyle(Qt::RoundJoin); painter.setPen(pen);</pre> <p>The default pen is a solid black brush with 0 width, square cap style (Qt::SquareCap), and bevel join style (Qt::BevelJoin).</p> <p>In addition <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a> provides the <a href="QPen.html#color()"><tt>color</tt></a> and <a href="QPen.html#setColor(com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a> convenience functions to extract and set the color of the pen's brush, respectively. Pens may also be compared and streamed.</p> <p>For more information about painting in general, see <a href="%2E%2E/paintsystem.html">The Paint System</tt></a> documentation.</p> <ul><li><a href="#pen-style">Pen Style</a></li> <li><a href="#cap-style">Cap Style</a></li> <li><a href="#join-style">Join Style</a></li> </ul> <a name="pen-style"></a> <h3>Pen Style</h3> <p>Qt provides several built-in styles represented by the Qt::PenStyle enum:</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/qpen-solid.png" /></td><td><img src="%2E%2E/images/qpen-dash.png" /></td><td><img src="%2E%2E/images/qpen-dot.png" /></td></tr> <tr valign="top" class="even"><td>Qt::SolidLine</td><td>Qt::DashLine</td><td>Qt::DotLine</td></tr> <tr valign="top" class="odd"><td><img src="%2E%2E/images/qpen-dashdot.png" /></td><td><img src="%2E%2E/images/qpen-dashdotdot.png" /></td><td><img src="%2E%2E/images/qpen-custom.png" /></td></tr> <tr valign="top" class="even"><td>Qt::DashDotLine</td><td>Qt::DashDotDotLine</td><td>Qt::CustomDashLine</td></tr> </table></p> <p>Simply use the <a href="QPen.html#setStyle(com.trolltech.qt.core.Qt.PenStyle)"><tt>setStyle</tt></a> function to convert the pen style to either of the built-in styles, except the Qt::CustomDashLine style which we will come back to shortly. Setting the style to Qt::NoPen tells the painter to not draw lines or outlines. The default pen style is Qt::SolidLine.</p> <p>Since Qt 4.1 it is also possible to specify a custom dash pattern using the <a href="QPen.html#setDashPattern(java.util.List<java.lang.Double>)"><tt>setDashPattern</tt></a> function which implicitly converts the style of the pen to Qt::CustomDashLine. The pattern argument, a QVector, must be specified as an even number of qreal</tt> entries where the entries 1, 3, 5... are the dashes and 2, 4, 6... are the spaces. For example, the custom pattern shown above is created using the following code:</p> <pre> QPen pen; QVector<qreal> dashes; qreal space = 4; dashes << 1 << space << 3 << space << 9 << space << 27 << space << 9; pen.setDashPattern(dashes);</pre> <p>Note that the dash pattern is specified in units of the pens width, e.g. a dash of length 5 in width 10 is 50 pixels long.</p> <p>The currently set dash pattern can be retrieved using the <a href="QPen.html#dashPattern()"><tt>dashPattern</tt></a> function. Use the <a href="QPen.html#isSolid()"><tt>isSolid</tt></a> function to determine whether the pen has a solid fill, or not.</p> <a name="cap-style"></a> <h3>Cap Style</h3> <p>The cap style defines how the end points of lines are drawn using <a href="QPainter.html"><tt>QPainter</tt></a>. The cap style only apply to wide lines, i.e. when the width is 1 or greater. The Qt::PenCapStyle enum provides the following styles:</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/qpen-square.png" /></td><td><img src="%2E%2E/images/qpen-flat.png" /></td><td><img src="%2E%2E/images/qpen-roundcap.png" /></td></tr> <tr valign="top" class="even"><td>Qt::SquareCap</td><td>Qt::FlatCap</td><td>Qt::RoundCap</td></tr> </table></p> <p>The Qt::SquareCap style is a square line end that covers the end point and extends beyond it by half the line width. The Qt::FlatCap style is a square line end that does not cover the end point of the line. And the Qt::RoundCap style is a rounded line end covering the end point.</p> <p>The default is Qt::SquareCap.</p> <p>Whether or not end points are drawn when the pen width is 0 or 1 depends on the cap style. Using Qt::SquareCap or Qt::RoundCap they are drawn, using Qt::FlatCap they are not drawn.</p> <a name="join-style"></a> <h3>Join Style</h3> <p>The join style defines how joins between two connected lines can be drawn using <a href="QPainter.html"><tt>QPainter</tt></a>. The join style only apply to wide lines, i.e. when the width is 1 or greater. The Qt::PenJoinStyle enum provides the following styles:</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/qpen-bevel.png" /></td><td><img src="%2E%2E/images/qpen-miter.png" /></td><td><img src="%2E%2E/images/qpen-roundjoin.png" /></td></tr> <tr valign="top" class="even"><td>Qt::BevelJoin</td><td>Qt::MiterJoin</td><td>Qt::RoundJoin</td></tr> </table></p> <p>The Qt::BevelJoin style fills the triangular notch between the two lines. The Qt::MiterJoin style extends the lines to meet at an angle. And the Qt::RoundJoin style fills a circular arc between the two lines.</p> <p>The default is Qt::BevelJoin.</p> <p align="center"><img src="%2E%2E/images/qpen-miterlimit.png" /></p><p>When the Qt::MiterJoin style is applied, it is possible to use the <a href="QPen.html#setMiterLimit(double)"><tt>setMiterLimit</tt></a> function to specify how far the miter join can extend from the join point. The <a href="QPen.html#miterLimit()"><tt>miterLimit</tt></a> is used to reduce artifacts between line joins where the lines are close to parallel.</p> <p>The <a href="QPen.html#miterLimit()"><tt>miterLimit</tt></a> must be specified in units of the pens width, e.g. a miter limit of 5 in width 10 is 50 pixels long. The default miter limit is 2, i.e. twice the pen width in pixels.</p> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/qpen-demo.png" /></td><td><b>The Path Stroking Demo</tt></b><p>The Path Stroking demo shows Qt's built-in dash patterns and shows how custom patterns can be used to extend the range of available patterns.</p> </td></tr> </table></p> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QPainter.html"><tt>QPainter</tt></a>, <a href="QBrush.html"><tt>QBrush</tt></a>, <CODE>Stroking Demo</tt></CODE>, <CODE>Example</tt></CODE></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>static <A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#NoPen">NoPen</A></B></CODE> <BR> </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/gui/QPen.html#QPen()">QPen</A></B>()</CODE> <BR> Constructs a default black solid line pen with 0 width.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QBrush, double)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width)</CODE> <BR> Equivalent to <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a>(<tt>brush</tt>, <tt>width</tt>, Qt::SolidLine, Qt::SquareCap, Qt::BevelJoin).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s)</CODE> <BR> Equivalent to <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a>(<tt>brush</tt>, <tt>width</tt>, <tt>s</tt>, Qt::SquareCap, Qt::BevelJoin).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c)</CODE> <BR> Equivalent to <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a>(<tt>brush</tt>, <tt>width</tt>, <tt>s</tt>, <tt>c</tt>, Qt::BevelJoin).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c, <A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A> j)</CODE> <BR> Constructs a pen with the specified <tt>brush</tt>, <tt>width</tt>, pen <tt>s</tt>, <tt>c</tt> style and <tt>j</tt> style.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QColor)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color)</CODE> <BR> Constructs a solid line pen with 0 width and the given <tt>color</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QColor, double)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width)</CODE> <BR> This is an overloaded constructor provided for convenience.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QColor, double, com.trolltech.qt.core.Qt.PenStyle)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s)</CODE> <BR> This is an overloaded constructor provided for convenience.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QColor, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c)</CODE> <BR> Constructs a pen with the specified <tt>color</tt>, <tt>width</tt>, pen style <tt>s</tt>, and <tt>c</tt> cap style.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QColor, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c, <A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A> j)</CODE> <BR> Constructs a pen with the specified <tt>color</tt>, <tt>width</tt>, pen style <tt>s</tt>, pen cap style <tt>c</tt>, and pen join style <tt>j</tt></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.gui.QPen)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A> pen)</CODE> <BR> Constructs a pen that is a copy of the given <tt>pen</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#QPen(com.trolltech.qt.core.Qt.PenStyle)">QPen</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> arg__1)</CODE> <BR> Constructs a black pen with 0 width and the given <tt>arg__1</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> <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#brush()">brush</A></B>()</CODE> <BR> Returns the brush used to fill strokes generated with this pen.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#capStyle()">capStyle</A></B>()</CODE> <BR> Returns the pen's cap style.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#color()">color</A></B>()</CODE> <BR> Returns the color of this pen's brush.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#dashOffset()">dashOffset</A></B>()</CODE> <BR> Returns the dash offset for the pen.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.List<java.lang.Double></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#dashPattern()">dashPattern</A></B>()</CODE> <BR> Returns the dash pattern of this pen.</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/gui/QPen.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object other)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.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 QPen 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/gui/QPen.html#isCosmetic()">isCosmetic</A></B>()</CODE> <BR> Returns true if the pen is cosmetic; 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/gui/QPen.html#isSolid()">isSolid</A></B>()</CODE> <BR> Returns true if the pen has a solid fill, otherwise false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#joinStyle()">joinStyle</A></B>()</CODE> <BR> Returns the pen's join style.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#miterLimit()">miterLimit</A></B>()</CODE> <BR> Returns the miter limit of the pen.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#nativePointerArray(com.trolltech.qt.gui.QPen[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A>[] array)</CODE> <BR> This function returns a QNativePointer that is pointing to the specified QPen array.</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/gui/QPen.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</CODE> <BR> Reads a QPen from arg__1.</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/gui/QPen.html#setBrush(com.trolltech.qt.gui.QBrush)">setBrush</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush)</CODE> <BR> Sets the brush used to fill strokes generated with this pen to the given <tt>brush</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/gui/QPen.html#setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)">setCapStyle</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> pcs)</CODE> <BR> Sets the pen's cap style to the given <tt>pcs</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/gui/QPen.html#setColor(com.trolltech.qt.gui.QColor)">setColor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color)</CODE> <BR> Sets the color of this pen's brush to the given <tt>color</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/gui/QPen.html#setCosmetic(boolean)">setCosmetic</A></B>(boolean cosmetic)</CODE> <BR> Sets this pen to cosmetic or non-cosmetic, depending on the value of <tt>cosmetic</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/gui/QPen.html#setDashOffset(double)">setDashOffset</A></B>(double doffset)</CODE> <BR> Sets the dash offset for this pen to the given <tt>doffset</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/gui/QPen.html#setDashPattern(java.util.List)">setDashPattern</A></B>(java.util.List<java.lang.Double> pattern)</CODE> <BR> Sets the dash pattern for this pen to the given <tt>pattern</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/gui/QPen.html#setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)">setJoinStyle</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A> pcs)</CODE> <BR> Sets the pen's join style to the given <tt>pcs</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/gui/QPen.html#setMiterLimit(double)">setMiterLimit</A></B>(double limit)</CODE> <BR> Sets the miter limit of this pen to the given <tt>limit</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/gui/QPen.html#setStyle(com.trolltech.qt.core.Qt.PenStyle)">setStyle</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> arg__1)</CODE> <BR> Sets the pen style to the given <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/gui/QPen.html#setWidth(int)">setWidth</A></B>(int width)</CODE> <BR> Sets the pen width to the given <tt>width</tt> in pixels with integer precision.</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/gui/QPen.html#setWidthF(double)">setWidthF</A></B>(double width)</CODE> <BR> Sets the pen width to the given <tt>width</tt> in pixels with floating point precision.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#style()">style</A></B>()</CODE> <BR> Returns the pen style.</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/gui/QPen.html#width()">width</A></B>()</CODE> <BR> Returns the pen width with integer precision.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPen.html#widthF()">widthF</A></B>()</CODE> <BR> Returns the pen width with floating point precision.</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/gui/QPen.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</CODE> <BR> Writes thisQPen to arg__1.</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#blockSignals(boolean)">blockSignals</A>, <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#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</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, 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="NoPen"><!-- --></A><H3> NoPen</H3> <PRE> public static final <A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A> <B>NoPen</B></PRE> <DL> <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="QPen(com.trolltech.qt.gui.QPen)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A> pen)</PRE> <DL> <DD><p>Constructs a pen that is a copy of the given <tt>pen</tt>.</p> <P> </DL> <HR> <A NAME="QPen()"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>()</PRE> <DL> <DD><p>Constructs a default black solid line pen with 0 width.</p> <P> </DL> <HR> <A NAME="QPen(com.trolltech.qt.core.Qt.PenStyle)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> arg__1)</PRE> <DL> <DD><p>Constructs a black pen with 0 width and the given <tt>arg__1</tt>.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QPen.html#setStyle(com.trolltech.qt.core.Qt.PenStyle)"><tt>setStyle</tt></a></DL> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QColor)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color)</PRE> <DL> <DD><p>Constructs a solid line pen with 0 width and the given <tt>color</tt>.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QPen.html#setBrush(com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, <a href="QPen.html#setColor(com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a></DL> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c)</PRE> <DL> <DD><p>Equivalent to <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a>(<tt>brush</tt>, <tt>width</tt>, <tt>s</tt>, <tt>c</tt>, Qt::BevelJoin). <P> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s)</PRE> <DL> <DD><p>Equivalent to <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a>(<tt>brush</tt>, <tt>width</tt>, <tt>s</tt>, Qt::SquareCap, Qt::BevelJoin). <P> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QBrush, double)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width)</PRE> <DL> <DD><p>Equivalent to <a href="QPen.html#QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>QPen</tt></a>(<tt>brush</tt>, <tt>width</tt>, Qt::SolidLine, Qt::SquareCap, Qt::BevelJoin). <P> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QBrush, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c, <A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A> j)</PRE> <DL> <DD><p>Constructs a pen with the specified <tt>brush</tt>, <tt>width</tt>, pen <tt>s</tt>, <tt>c</tt> style and <tt>j</tt> style.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QPen.html#setBrush(com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, <a href="QPen.html#setWidth(int)"><tt>setWidth</tt></a>, <a href="QPen.html#setStyle(com.trolltech.qt.core.Qt.PenStyle)"><tt>setStyle</tt></a>, <a href="QPen.html#setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)"><tt>setCapStyle</tt></a>, <a href="QPen.html#setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>setJoinStyle</tt></a></DL> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QColor, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle, com.trolltech.qt.core.Qt.PenJoinStyle)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c, <A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A> j)</PRE> <DL> <DD>Constructs a pen with the specified <tt>color</tt>, <tt>width</tt>, pen style <tt>s</tt>, pen cap style <tt>c</tt>, and pen join style <tt>j</tt> <P> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QColor, double, com.trolltech.qt.core.Qt.PenStyle, com.trolltech.qt.core.Qt.PenCapStyle)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s, <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> c)</PRE> <DL> <DD>Constructs a pen with the specified <tt>color</tt>, <tt>width</tt>, pen style <tt>s</tt>, and <tt>c</tt> cap style. <P> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QColor, double, com.trolltech.qt.core.Qt.PenStyle)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width, <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> s)</PRE> <DL> <DD>This is an overloaded constructor provided for convenience. <P> </DL> <HR> <A NAME="QPen(com.trolltech.qt.gui.QColor, double)"><!-- --></A><H3> QPen</H3> <PRE> public <B>QPen</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color, double width)</PRE> <DL> <DD>This is an overloaded constructor provided for convenience. <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="brush()"><!-- --></A><H3> brush</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>brush</B>()</PRE> <DL> <DD><p>Returns the brush used to fill strokes generated with this pen.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setBrush(com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a></DL> </DD> </DL> <HR> <A NAME="capStyle()"><!-- --></A><H3> capStyle</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> <B>capStyle</B>()</PRE> <DL> <DD><p>Returns the pen's cap style.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)"><tt>setCapStyle</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="color()"><!-- --></A><H3> color</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> <B>color</B>()</PRE> <DL> <DD><p>Returns the color of this pen's brush.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#brush()"><tt>brush</tt></a>, <a href="QPen.html#setColor(com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a></DL> </DD> </DL> <HR> <A NAME="dashOffset()"><!-- --></A><H3> dashOffset</H3> <PRE> public final double <B>dashOffset</B>()</PRE> <DL> <DD><p>Returns the dash offset for the pen.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setDashOffset(double)"><tt>setDashOffset</tt></a></DL> </DD> </DL> <HR> <A NAME="dashPattern()"><!-- --></A><H3> dashPattern</H3> <PRE> public final java.util.List<java.lang.Double> <B>dashPattern</B>()</PRE> <DL> <DD><p>Returns the dash pattern of this pen.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setDashPattern(java.util.List<java.lang.Double>)"><tt>setDashPattern</tt></a>, <a href="QPen.html#style()"><tt>style</tt></a>, <a href="QPen.html#isSolid()"><tt>isSolid</tt></a></DL> </DD> </DL> <HR> <A NAME="isCosmetic()"><!-- --></A><H3> isCosmetic</H3> <PRE> public final boolean <B>isCosmetic</B>()</PRE> <DL> <DD><p>Returns true if the pen is cosmetic; otherwise returns false.</p> <p>Cosmetic pens are used to draw strokes that have a constant width regardless of any transformations applied to the <a href="QPainter.html"><tt>QPainter</tt></a> they are used with. Drawing a shape with a cosmetic pen ensures that its outline will have the same thickness at different scale factors.</p> <p>A zero width pen is cosmetic by default; pens with a non-zero width are non-cosmetic.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setCosmetic(boolean)"><tt>setCosmetic</tt></a>, <a href="QPen.html#widthF()"><tt>widthF</tt></a></DL> </DD> </DL> <HR> <A NAME="isSolid()"><!-- --></A><H3> isSolid</H3> <PRE> public final boolean <B>isSolid</B>()</PRE> <DL> <DD><p>Returns true if the pen has a solid fill, otherwise false.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#style()"><tt>style</tt></a>, <a href="QPen.html#dashPattern()"><tt>dashPattern</tt></a></DL> </DD> </DL> <HR> <A NAME="joinStyle()"><!-- --></A><H3> joinStyle</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A> <B>joinStyle</B>()</PRE> <DL> <DD><p>Returns the pen's join style.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>setJoinStyle</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="miterLimit()"><!-- --></A><H3> miterLimit</H3> <PRE> public final double <B>miterLimit</B>()</PRE> <DL> <DD><p>Returns the miter limit of the pen. The miter limit is only relevant when the join style is set to Qt::MiterJoin.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setMiterLimit(double)"><tt>setMiterLimit</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3> writeTo</H3> <PRE> public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</PRE> <DL> <DD>Writes thisQPen to arg__1. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3> readFrom</H3> <PRE> public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</PRE> <DL> <DD>Reads a QPen from arg__1. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setBrush(com.trolltech.qt.gui.QBrush)"><!-- --></A><H3> setBrush</H3> <PRE> public final void <B>setBrush</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush)</PRE> <DL> <DD><p>Sets the brush used to fill strokes generated with this pen to the given <tt>brush</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#brush()"><tt>brush</tt></a>, <a href="QPen.html#setColor(com.trolltech.qt.gui.QColor)"><tt>setColor</tt></a></DL> </DD> </DL> <HR> <A NAME="setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)"><!-- --></A><H3> setCapStyle</H3> <PRE> public final void <B>setCapStyle</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenCapStyle.html" title="enum in com.trolltech.qt.core">Qt.PenCapStyle</A> pcs)</PRE> <DL> <DD><p>Sets the pen's cap style to the given <tt>pcs</tt>. The default value is Qt::SquareCap.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#capStyle()"><tt>capStyle</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="setColor(com.trolltech.qt.gui.QColor)"><!-- --></A><H3> setColor</H3> <PRE> public final void <B>setColor</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color)</PRE> <DL> <DD><p>Sets the color of this pen's brush to the given <tt>color</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setBrush(com.trolltech.qt.gui.QBrush)"><tt>setBrush</tt></a>, <a href="QPen.html#color()"><tt>color</tt></a></DL> </DD> </DL> <HR> <A NAME="setCosmetic(boolean)"><!-- --></A><H3> setCosmetic</H3> <PRE> public final void <B>setCosmetic</B>(boolean cosmetic)</PRE> <DL> <DD><p>Sets this pen to cosmetic or non-cosmetic, depending on the value of <tt>cosmetic</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#isCosmetic()"><tt>isCosmetic</tt></a></DL> </DD> </DL> <HR> <A NAME="setDashOffset(double)"><!-- --></A><H3> setDashOffset</H3> <PRE> public final void <B>setDashOffset</B>(double doffset)</PRE> <DL> <DD><p>Sets the dash offset for this pen to the given <tt>doffset</tt>. This implicitly converts the style of the pen to Qt::CustomDashLine.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#dashOffset()"><tt>dashOffset</tt></a></DL> </DD> </DL> <HR> <A NAME="setDashPattern(java.util.List)"><!-- --></A><H3> setDashPattern</H3> <PRE> public final void <B>setDashPattern</B>(java.util.List<java.lang.Double> pattern)</PRE> <DL> <DD><p>Sets the dash pattern for this pen to the given <tt>pattern</tt>. This implicitly converts the style of the pen to Qt::CustomDashLine.</p> <p>The pattern must be specified as an even number of entries where the entries 1, 3, 5... are the dashes and 2, 4, 6... are the spaces. For example:</p> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/qpen-custom.png" /></td><td><pre> QPen pen; QVector<qreal> dashes; qreal space = 4; dashes << 1 << space << 3 << space << 9 << space << 27 << space << 9; pen.setDashPattern(dashes);</pre> </td></tr> </table></p> <p>The dash pattern is specified in units of the pens width, e.g. a dash of length 5 in width 10 is 50 pixels long. Each dash is also subject to cap styles so a dash of 1 with square cap set will extend 0.5 pixels out in each direction resulting in a total width of 2.</p> <p>Note that the default cap style is Qt::SquareCap, meaning that a square line end covers the end point and extends beyond it by half the line width.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setStyle(com.trolltech.qt.core.Qt.PenStyle)"><tt>setStyle</tt></a>, <a href="QPen.html#dashPattern()"><tt>dashPattern</tt></a>, <a href="QPen.html#setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)"><tt>setCapStyle</tt></a></DL> </DD> </DL> <HR> <A NAME="setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)"><!-- --></A><H3> setJoinStyle</H3> <PRE> public final void <B>setJoinStyle</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenJoinStyle.html" title="enum in com.trolltech.qt.core">Qt.PenJoinStyle</A> pcs)</PRE> <DL> <DD><p>Sets the pen's join style to the given <tt>pcs</tt>. The default value is Qt::BevelJoin.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#joinStyle()"><tt>joinStyle</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="setMiterLimit(double)"><!-- --></A><H3> setMiterLimit</H3> <PRE> public final void <B>setMiterLimit</B>(double limit)</PRE> <DL> <DD><p>Sets the miter limit of this pen to the given <tt>limit</tt>.</p> <p align="center"><img src="%2E%2E/images/qpen-miterlimit.png" /></p><p>The miter limit describes how far a miter join can extend from the join point. This is used to reduce artifacts between line joins where the lines are close to parallel.</p> <p>This value does only have effect when the pen style is set to Qt::MiterJoin. The value is specified in units of the pen's width, e.g. a miter limit of 5 in width 10 is 50 pixels long. The default miter limit is 2, i.e. twice the pen width in pixels.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#miterLimit()"><tt>miterLimit</tt></a>, <a href="QPen.html#setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)"><tt>setJoinStyle</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="setStyle(com.trolltech.qt.core.Qt.PenStyle)"><!-- --></A><H3> setStyle</H3> <PRE> public final void <B>setStyle</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> arg__1)</PRE> <DL> <DD><p>Sets the pen style to the given <tt>arg__1</tt>.</p> <p>See the <tt>Qt::PenStyle</tt> documentation for a list of the available styles. Since Qt 4.1 it is also possible to specify a custom dash pattern using the <a href="QPen.html#setDashPattern(java.util.List<java.lang.Double>)"><tt>setDashPattern</tt></a> function which implicitly converts the style of the pen to Qt::CustomDashLine.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#style()"><tt>style</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="setWidth(int)"><!-- --></A><H3> setWidth</H3> <PRE> public final void <B>setWidth</B>(int width)</PRE> <DL> <DD><p>Sets the pen width to the given <tt>width</tt> in pixels with integer precision.</p> <p>A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the <a href="QPainter.html#coordinate-transformations">transformation</tt></a> set on the painter.</p> <p>Setting a pen width with a negative value is not supported.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setWidthF(double)"><tt>setWidthF</tt></a>, <a href="QPen.html#width()"><tt>width</tt></a></DL> </DD> </DL> <HR> <A NAME="setWidthF(double)"><!-- --></A><H3> setWidthF</H3> <PRE> public final void <B>setWidthF</B>(double width)</PRE> <DL> <DD><p>Sets the pen width to the given <tt>width</tt> in pixels with floating point precision.</p> <p>A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the <a href="QPainter.html#coordinate-transformations">transformation</tt></a> on the painter.</p> <p>Setting a pen width with a negative value is not supported.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setWidth(int)"><tt>setWidth</tt></a>, <a href="QPen.html#widthF()"><tt>widthF</tt></a></DL> </DD> </DL> <HR> <A NAME="style()"><!-- --></A><H3> style</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/Qt.PenStyle.html" title="enum in com.trolltech.qt.core">Qt.PenStyle</A> <B>style</B>()</PRE> <DL> <DD><p>Returns the pen style.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setStyle(com.trolltech.qt.core.Qt.PenStyle)"><tt>setStyle</tt></a>, <CODE>Style</tt></CODE></DL> </DD> </DL> <HR> <A NAME="width()"><!-- --></A><H3> width</H3> <PRE> public final int <B>width</B>()</PRE> <DL> <DD><p>Returns the pen width with integer precision.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setWidth(int)"><tt>setWidth</tt></a>, <a href="QPen.html#widthF()"><tt>widthF</tt></a></DL> </DD> </DL> <HR> <A NAME="widthF()"><!-- --></A><H3> widthF</H3> <PRE> public final double <B>widthF</B>()</PRE> <DL> <DD><p>Returns the pen width with floating point precision.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QPen.html#setWidthF(double)"><tt>setWidthF</tt></a>, <a href="QPen.html#width()"><tt>width</tt></a></DL> </DD> </DL> <HR> <A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3> fromNativePointer</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</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 QPen 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> <HR> <A NAME="nativePointerArray(com.trolltech.qt.gui.QPen[])"><!-- --></A><H3> nativePointerArray</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A>[] array)</PRE> <DL> <DD>This function returns a QNativePointer that is pointing to the specified QPen array. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to. <DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL> </DD> </DL> <HR> <A NAME="equals(java.lang.Object)"><!-- --></A><H3> equals</H3> <PRE> public boolean <B>equals</B>(java.lang.Object other)</PRE> <DL> <DD> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL> </DD> <DD><DL> </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/gui/QPalette.ColorRole.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QPicture.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/gui/QPen.html" target="_top"><B>FRAMES</B></A> <A HREF="QPen.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>