meterplot.html

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

HTML
1,724 行
字号
</DL><HR><A NAME="getDrawBorder()"><!-- --></A><H3>getDrawBorder</H3><PRE>public boolean <B>getDrawBorder</B>()</PRE><DL><DD>Returns a flag that controls whether or not a rectangular border is drawn around the plot area.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A flag.</DL></DD></DL><HR><A NAME="setDrawBorder(boolean)"><!-- --></A><H3>setDrawBorder</H3><PRE>public void <B>setDrawBorder</B>(boolean&nbsp;draw)</PRE><DL><DD>Sets the flag that controls whether or not a rectangular border is drawn around the plot area. <P> Note:  it looks like the true setting needs some work to provide some insets.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>draw</CODE> - The flag.</DL></DD></DL><HR><A NAME="getMeterAngle()"><!-- --></A><H3>getMeterAngle</H3><PRE>public int <B>getMeterAngle</B>()</PRE><DL><DD>Returns the meter angle.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the meter angle.</DL></DD></DL><HR><A NAME="setMeterAngle(int)"><!-- --></A><H3>setMeterAngle</H3><PRE>public void <B>setMeterAngle</B>(int&nbsp;angle)</PRE><DL><DD>Sets the range through which the dial's needle is free to rotate.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>angle</CODE> - the angle.</DL></DD></DL><HR><A NAME="getDialOutlinePaint()"><!-- --></A><H3>getDialOutlinePaint</H3><PRE>public java.awt.Paint <B>getDialOutlinePaint</B>()</PRE><DL><DD>Returns the dial outline paint.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="setDialOutlinePaint(java.awt.Paint)"><!-- --></A><H3>setDialOutlinePaint</H3><PRE>public void <B>setDialOutlinePaint</B>(java.awt.Paint&nbsp;paint)</PRE><DL><DD>Sets the dial outline paint.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the paint.</DL></DD></DL><HR><A NAME="getDataset()"><!-- --></A><H3>getDataset</H3><PRE>public <A HREF="../../../../org/jfree/data/ValueDataset.html">ValueDataset</A> <B>getDataset</B>()</PRE><DL><DD>Returns the primary dataset for the plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The primary dataset (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setDataset(org.jfree.data.ValueDataset)"><!-- --></A><H3>setDataset</H3><PRE>public void <B>setDataset</B>(<A HREF="../../../../org/jfree/data/ValueDataset.html">ValueDataset</A>&nbsp;dataset)</PRE><DL><DD>Sets the dataset for the plot, replacing the existing dataset if there is one.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getLegendItemLabels()"><!-- --></A><H3>getLegendItemLabels</H3><PRE>public java.util.List <B>getLegendItemLabels</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use getLegendItems().</I><P><DD>Returns a list of legend item labels.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the legend item labels.</DL></DD></DL><HR><A NAME="getLegendItems()"><!-- --></A><H3>getLegendItems</H3><PRE>public <A HREF="../../../../org/jfree/chart/LegendItemCollection.html">LegendItemCollection</A> <B>getLegendItems</B>()</PRE><DL><DD>Returns null.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html#getLegendItems()">getLegendItems</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>null.</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(java.awt.Graphics2D&nbsp;g2,                 java.awt.geom.Rectangle2D&nbsp;plotArea,                 <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info)</PRE><DL><DD>Draws the plot 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/plot/Plot.html#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.ChartRenderingInfo)">draw</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - The graphics device.<DD><CODE>plotArea</CODE> - The area within which the plot should be drawn.<DD><CODE>info</CODE> - Collects info about the drawing.</DL></DD></DL><HR><A NAME="getPlotType()"><!-- --></A><H3>getPlotType</H3><PRE>public java.lang.String <B>getPlotType</B>()</PRE><DL><DD>Returns a short string describing the type of plot.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html#getPlotType()">getPlotType</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>always <i>Meter Plot</i>.</DL></DD></DL><HR><A NAME="zoom(double)"><!-- --></A><H3>zoom</H3><PRE>public void <B>zoom</B>(double&nbsp;percent)</PRE><DL><DD>A zoom method that does nothing. <p> Plots are required to support the zoom operation.  In the case of a pie chart, it doesn't make sense to zoom in or out, so the method is empty.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html#zoom(double)">zoom</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>percent</CODE> - The zoom percentage.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;object)</PRE><DL><DD>Tests an object for equality with this plot.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - the object.<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="getDialType()"><!-- --></A><H3>getDialType</H3><PRE>public int <B>getDialType</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use getDialShape().</I><P><DD>Returns the type of dial (DIALTYPE_PIE, DIALTYPE_CIRCLE, DIALTYPE_CHORD).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The dial type.</DL></DD></DL><HR><A NAME="setDialType(int)"><!-- --></A><H3>setDialType</H3><PRE>public void <B>setDialType</B>(int&nbsp;type)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use setDialShape(...).</I><P><DD>Sets the dial type (background shape). <P> This controls the shape of the dial background.  Use one of the constants: DIALTYPE_PIE, DIALTYPE_CIRCLE, or DIALTYPE_CHORD.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The dial type.</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/plot/JThermometer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/jfree/chart/plot/PeriodMarkerPlot.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="MeterPlot.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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 + -
显示快捷键?