📄 standardlegend.html
字号:
</DL><HR><A NAME="getDisplaySeriesShapes()"><!-- --></A><H3>getDisplaySeriesShapes</H3><PRE>public boolean <B>getDisplaySeriesShapes</B>()</PRE><DL><DD>Returns a flag that controls whether or not the legend displays the series shapes.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the series shapes should be displayed, <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="getShapeScaleX()"><!-- --></A><H3>getShapeScaleX</H3><PRE>public double <B>getShapeScaleX</B>()</PRE><DL><DD>Returns the x scale factor for shapes displayed in the legend.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the x scale factor.</DL></DD></DL><HR><A NAME="setShapeScaleX(double)"><!-- --></A><H3>setShapeScaleX</H3><PRE>public void <B>setShapeScaleX</B>(double factor)</PRE><DL><DD>Sets the x scale factor for shapes displayed in the legend and sends a <A HREF="../../../org/jfree/chart/event/LegendChangeEvent.html" title="class in org.jfree.chart.event"><CODE>LegendChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>factor</CODE> - the factor.</DL></DD></DL><HR><A NAME="getShapeScaleY()"><!-- --></A><H3>getShapeScaleY</H3><PRE>public double <B>getShapeScaleY</B>()</PRE><DL><DD>Returns the y scale factor for shapes displayed in the legend.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y scale factor.</DL></DD></DL><HR><A NAME="setShapeScaleY(double)"><!-- --></A><H3>setShapeScaleY</H3><PRE>public void <B>setShapeScaleY</B>(double factor)</PRE><DL><DD>Sets the y scale factor for shapes displayed in the legend and sends a <A HREF="../../../org/jfree/chart/event/LegendChangeEvent.html" title="class in org.jfree.chart.event"><CODE>LegendChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>factor</CODE> - the factor.</DL></DD></DL><HR><A NAME="setDisplaySeriesLines(boolean)"><!-- --></A><H3>setDisplaySeriesLines</H3><PRE>public void <B>setDisplaySeriesLines</B>(boolean flag)</PRE><DL><DD>Sets a flag that controls whether or not the legend displays the series line stroke.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the new value of the flag.</DL></DD></DL><HR><A NAME="getDisplaySeriesLines()"><!-- --></A><H3>getDisplaySeriesLines</H3><PRE>public boolean <B>getDisplaySeriesLines</B>()</PRE><DL><DD>Returns a flag that controls whether or not the legend displays the series line stroke.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the series lines should be displayed, <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="getRenderingOrder()"><!-- --></A><H3>getRenderingOrder</H3><PRE>public <A HREF="../../../org/jfree/chart/LegendRenderingOrder.html" title="class in org.jfree.chart">LegendRenderingOrder</A> <B>getRenderingOrder</B>()</PRE><DL><DD>Returns the legend rendering order.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The order (never <code>null</code>).</DL></DD></DL><HR><A NAME="setRenderingOrder(org.jfree.chart.LegendRenderingOrder)"><!-- --></A><H3>setRenderingOrder</H3><PRE>public void <B>setRenderingOrder</B>(<A HREF="../../../org/jfree/chart/LegendRenderingOrder.html" title="class in org.jfree.chart">LegendRenderingOrder</A> order)</PRE><DL><DD>Sets the legend rendering order and sends a <A HREF="../../../org/jfree/chart/event/LegendChangeEvent.html" title="class in org.jfree.chart.event"><CODE>LegendChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>order</CODE> - the order (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getBoundingBoxArcWidth()"><!-- --></A><H3>getBoundingBoxArcWidth</H3><PRE>public int <B>getBoundingBoxArcWidth</B>()</PRE><DL><DD>Returns the width of the arc used to round off the corners of the bounding box.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width of the arc used to round off the corners of the bounding box.</DL></DD></DL><HR><A NAME="setBoundingBoxArcWidth(int)"><!-- --></A><H3>setBoundingBoxArcWidth</H3><PRE>public void <B>setBoundingBoxArcWidth</B>(int arcWidth)</PRE><DL><DD>Sets the width of the arc used to round off the corners of the bounding box. A <A HREF="../../../org/jfree/chart/event/LegendChangeEvent.html" title="class in org.jfree.chart.event"><CODE>LegendChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcWidth</CODE> - the new arc width.</DL></DD></DL><HR><A NAME="getBoundingBoxArcHeight()"><!-- --></A><H3>getBoundingBoxArcHeight</H3><PRE>public int <B>getBoundingBoxArcHeight</B>()</PRE><DL><DD>Returns the height of the arc used to round off the corners of the bounding box.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the height of the arc used to round off the corners of the bounding box.</DL></DD></DL><HR><A NAME="setBoundingBoxArcHeight(int)"><!-- --></A><H3>setBoundingBoxArcHeight</H3><PRE>public void <B>setBoundingBoxArcHeight</B>(int arcHeight)</PRE><DL><DD>Sets the height of the arc used to round off the corners of the bounding box. A <A HREF="../../../org/jfree/chart/event/LegendChangeEvent.html" title="class in org.jfree.chart.event"><CODE>LegendChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcHeight</CODE> - the new arc height.</DL></DD></DL><HR><A NAME="getPreferredWidth()"><!-- --></A><H3>getPreferredWidth</H3><PRE>public double <B>getPreferredWidth</B>()</PRE><DL><DD>Returns the preferred width of the legend bounding box if such width has been defined; otherwise returns <code>NO_PREFERRED_WIDTH</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the preferred width of the legend bounding box if such width has been defined; otherwise returns <code>NO_PREFERRED_WIDTH</code>.</DL></DD></DL><HR><A NAME="setPreferredWidth(double)"><!-- --></A><H3>setPreferredWidth</H3><PRE>public void <B>setPreferredWidth</B>(double width)</PRE><DL><DD>Sets the preferred width of the legend bounding box. If a preferred width is set, the legend text is word-wrapped in an attempt to fulfill the preferred width. If the preferred width cannot be fulfilled, the legend would be wider to the extent necessary. <p> The preferred width takes effect only when the legend's anchor is set to one of the three EAST anchors or to one of the three WEST anchors. <p> A <A HREF="../../../org/jfree/chart/event/LegendChangeEvent.html" title="class in org.jfree.chart.event"><CODE>LegendChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the new width.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public java.awt.geom.Rectangle2D <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D available, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Draws the legend on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/chart/Legend.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo)">draw</A></CODE> in class <CODE><A HREF="../../../org/jfree/chart/Legend.html" title="class in org.jfree.chart">Legend</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>available</CODE> - the area within which the legend, and afterwards the plot, should be drawn.<DD><CODE>info</CODE> - collects rendering info (optional).<DT><B>Returns:</B><DD>The area NOT used by the legend.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, boolean, boolean, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>protected java.awt.geom.Rectangle2D <B>draw</B>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D available, boolean horizontal, boolean inverted, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Draws the legend.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>available</CODE> - the area available for drawing the chart.<DD><CODE>horizontal</CODE> - a flag indicating whether the legend items are laid out horizontally.<DD><CODE>inverted</CODE> - ???<DD><CODE>info</CODE> - collects rendering info (optional).<DT><B>Returns:</B><DD>The remaining available drawing area.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object obj)</PRE><DL><DD>Tests an object for equality with this legend.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/jfree/chart/Legend.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../org/jfree/chart/Legend.html" title="class in org.jfree.chart">Legend</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object.<DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</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=3 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="../../../org/jfree/chart/SeriesShapeFactory.html" title="class in org.jfree.chart"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/chart/StandardLegendItemLayout.html" title="class in org.jfree.chart"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="StandardLegend.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: NESTED | <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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -