📄 legendgraphic.html
字号:
<HR><A NAME="setShapeAnchor(org.jfree.ui.RectangleAnchor)"><!-- --></A><H3>setShapeAnchor</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.299"><B>setShapeAnchor</B></A>(org.jfree.ui.RectangleAnchor anchor)</PRE><DL><DD>Sets the shape anchor. This defines a point on the shapes bounding rectangle that will be used to align the shape to a location.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>anchor</CODE> - the anchor (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getShapeLocation()"><!-- --></A><H3>getShapeLocation</H3><PRE>public org.jfree.ui.RectangleAnchor <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.311"><B>getShapeLocation</B></A>()</PRE><DL><DD>Returns the shape location.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The shape location.</DL></DD></DL><HR><A NAME="setShapeLocation(org.jfree.ui.RectangleAnchor)"><!-- --></A><H3>setShapeLocation</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.321"><B>setShapeLocation</B></A>(org.jfree.ui.RectangleAnchor location)</PRE><DL><DD>Sets the shape location. This defines a point within the drawing area that will be used to align the shape to.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - the location (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="isLineVisible()"><!-- --></A><H3>isLineVisible</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.333"><B>isLineVisible</B></A>()</PRE><DL><DD>Returns the flag that controls whether or not the line is visible.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="setLineVisible(boolean)"><!-- --></A><H3>setLineVisible</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.342"><B>setLineVisible</B></A>(boolean visible)</PRE><DL><DD>Sets the flag that controls whether or not the line is visible.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>visible</CODE> - the flag.</DL></DD></DL><HR><A NAME="getLine()"><!-- --></A><H3>getLine</H3><PRE>public java.awt.Shape <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.351"><B>getLine</B></A>()</PRE><DL><DD>Returns the line centered about (0, 0).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The line.</DL></DD></DL><HR><A NAME="setLine(java.awt.Shape)"><!-- --></A><H3>setLine</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.361"><B>setLine</B></A>(java.awt.Shape line)</PRE><DL><DD>Sets the line. A Shape is used here, because then you can use Line2D, GeneralPath or any other Shape to represent the line.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>line</CODE> - the line.</DL></DD></DL><HR><A NAME="getLinePaint()"><!-- --></A><H3>getLinePaint</H3><PRE>public java.awt.Paint <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.370"><B>getLinePaint</B></A>()</PRE><DL><DD>Returns the line paint.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="setLinePaint(java.awt.Paint)"><!-- --></A><H3>setLinePaint</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.379"><B>setLinePaint</B></A>(java.awt.Paint paint)</PRE><DL><DD>Sets the line paint.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the paint.</DL></DD></DL><HR><A NAME="getLineStroke()"><!-- --></A><H3>getLineStroke</H3><PRE>public java.awt.Stroke <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.388"><B>getLineStroke</B></A>()</PRE><DL><DD>Returns the line stroke.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The stroke.</DL></DD></DL><HR><A NAME="setLineStroke(java.awt.Stroke)"><!-- --></A><H3>setLineStroke</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.397"><B>setLineStroke</B></A>(java.awt.Stroke stroke)</PRE><DL><DD>Sets the line stroke.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>stroke</CODE> - the stroke.</DL></DD></DL><HR><A NAME="arrange(java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)"><!-- --></A><H3>arrange</H3><PRE>public org.jfree.ui.Size2D <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.410"><B>arrange</B></A>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A> constraint)</PRE><DL><DD>Arranges the contents of the block, within the given constraints, and returns the block size.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/block/Block.html#arrange(java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)">arrange</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/block/Block.html" title="interface in org.jfree.chart.block">Block</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#arrange(java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)">arrange</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html" title="class in org.jfree.chart.block">AbstractBlock</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>constraint</CODE> - the constraint (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The block size (in Java2D units, never <code>null</code>).</DL></DD></DL><HR><A NAME="arrangeNN(java.awt.Graphics2D)"><!-- --></A><H3>arrangeNN</H3><PRE>protected org.jfree.ui.Size2D <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.466"><B>arrangeNN</B></A>(java.awt.Graphics2D g2)</PRE><DL><DD>Performs the layout with no constraint, so the content size is determined by the bounds of the shape and/or line drawn to represent the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DT><B>Returns:</B><DD>The content size.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>draw</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.483"><B>draw</B></A>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)</PRE><DL><DD>Draws the graphic item within the specified area.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>draw</CODE> in interface <CODE>org.jfree.ui.Drawable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.lang.Object)"><!-- --></A><H3>draw</H3><PRE>public java.lang.Object <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.532"><B>draw</B></A>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.lang.Object params)</PRE><DL><DD>Draws the block within the specified area.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/block/Block.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.lang.Object)">draw</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/block/Block.html" title="interface in org.jfree.chart.block">Block</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area.<DD><CODE>params</CODE> - ignored (<code>null</code> permitted).<DT><B>Returns:</B><DD>Always <code>null</code>.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.545"><B>equals</B></A>(java.lang.Object obj)</PRE><DL><DD>Tests this <code>LegendGraphic</code> instance for equality with an arbitrary object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html" title="class in org.jfree.chart.block">AbstractBlock</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <A HREF="../../../../src-html/org/jfree/chart/title/LegendGraphic.html#line.602"><B>clone</B></A>() throws java.lang.CloneNotSupportedException</PRE><DL><DD>Returns a clone of this <code>LegendGraphic</code> instance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>clone</CODE> in interface <CODE>org.jfree.util.PublicCloneable</CODE><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone of this <code>LegendGraphic</code> instance.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if there is a problem cloning.</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="class-use/LegendGraphic.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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/title/ImageTitle.html" title="class in org.jfree.chart.title"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/chart/title/LegendItemBlockContainer.html" title="class in org.jfree.chart.title"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/chart/title/LegendGraphic.html" target="_top"><B>FRAMES</B></A> <A HREF="LegendGraphic.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -