drawablelegenditem.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 522 行 · 第 1/2 页

HTML
522
字号
</TR></TABLE><A NAME="DrawableLegendItem(org.jfree.chart.LegendItem)"><!-- --></A><H3>DrawableLegendItem</H3><PRE>public <B>DrawableLegendItem</B>(<A HREF="../../../org/jfree/chart/LegendItem.html">LegendItem</A>&nbsp;item)</PRE><DL><DD>Create a legend item.<P><DT><B>Parameters:</B><DD><CODE>item</CODE> - the legend item for display.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getItem()"><!-- --></A><H3>getItem</H3><PRE>public <A HREF="../../../org/jfree/chart/LegendItem.html">LegendItem</A> <B>getItem</B>()</PRE><DL><DD>Returns the legend item.<P><DD><DL><DT><B>Returns:</B><DD>the legend item.</DL></DD></DL><HR><A NAME="getX()"><!-- --></A><H3>getX</H3><PRE>public double <B>getX</B>()</PRE><DL><DD>Get the x-coordinate for the item's location.<P><DD><DL><DT><B>Returns:</B><DD>the x-coordinate for the item's location.</DL></DD></DL><HR><A NAME="setX(double)"><!-- --></A><H3>setX</H3><PRE>public void <B>setX</B>(double&nbsp;x)</PRE><DL><DD>Set the x-coordinate for the item's location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-coordinate.</DL></DD></DL><HR><A NAME="getY()"><!-- --></A><H3>getY</H3><PRE>public double <B>getY</B>()</PRE><DL><DD>Get the y-coordinate for the item's location.<P><DD><DL><DT><B>Returns:</B><DD>the y-coordinate for the item's location.</DL></DD></DL><HR><A NAME="setY(double)"><!-- --></A><H3>setY</H3><PRE>public void <B>setY</B>(double&nbsp;y)</PRE><DL><DD>Set the y-coordinate for the item's location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - the y-coordinate.</DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public double <B>getWidth</B>()</PRE><DL><DD>Get the width of this item.<P><DD><DL><DT><B>Returns:</B><DD>the width.</DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public double <B>getHeight</B>()</PRE><DL><DD>Get the height of this item.<P><DD><DL><DT><B>Returns:</B><DD>the height.</DL></DD></DL><HR><A NAME="getMarker()"><!-- --></A><H3>getMarker</H3><PRE>public java.awt.Shape <B>getMarker</B>()</PRE><DL><DD>Get the marker.<P><DD><DL><DT><B>Returns:</B><DD>the shape used to indicate color on the legend for this item.</DL></DD></DL><HR><A NAME="setMarker(java.awt.Shape)"><!-- --></A><H3>setMarker</H3><PRE>public void <B>setMarker</B>(java.awt.Shape&nbsp;marker)</PRE><DL><DD>Set the marker.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>marker</CODE> - a shape used to indicate color on the legend for this item.</DL></DD></DL><HR><A NAME="getLabelPosition()"><!-- --></A><H3>getLabelPosition</H3><PRE>public java.awt.geom.Point2D <B>getLabelPosition</B>()</PRE><DL><DD>Returns the label position.<P><DD><DL><DT><B>Returns:</B><DD>the label position.</DL></DD></DL><HR><A NAME="setLabelPosition(java.awt.geom.Point2D)"><!-- --></A><H3>setLabelPosition</H3><PRE>public void <B>setLabelPosition</B>(java.awt.geom.Point2D&nbsp;position)</PRE><DL><DD>Sets the label position.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - the label position.</DL></DD></DL><HR><A NAME="setBounds(double, double, double, double)"><!-- --></A><H3>setBounds</H3><PRE>public void <B>setBounds</B>(double&nbsp;x,                      double&nbsp;y,                      double&nbsp;width,                      double&nbsp;height)</PRE><DL><DD>Set the bounds of this item.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - x-coordinate for the item's location.<DD><CODE>y</CODE> - y-coordinate for the item's location.<DD><CODE>width</CODE> - the width of this item.<DD><CODE>height</CODE> - the height of this item.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, double, double)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D&nbsp;g2,                 double&nbsp;xOffset,                 double&nbsp;yOffset)</PRE><DL><DD>Draw the item. Currently it does nothing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>xOffset</CODE> - offset for the x-coordinate.<DD><CODE>yOffset</CODE> - offset for the y-coordinate.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jfree/chart/DefaultShapeFactory.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/chart/ImageTitle.html"><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>  &nbsp;&nbsp;<A HREF="DrawableLegendItem.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?