⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crosshairstate.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="CrosshairState()"><!-- --></A><H3>CrosshairState</H3><PRE>public <B>CrosshairState</B>()</PRE><DL><DD>Default constructor.<P></DL><HR><A NAME="CrosshairState(boolean)"><!-- --></A><H3>CrosshairState</H3><PRE>public <B>CrosshairState</B>(boolean&nbsp;calculateDistanceInDataSpace)</PRE><DL><DD>Creates a new info object.<P><DT><B>Parameters:</B><DD><CODE>calculateDistanceInDataSpace</CODE> - a flag that controls whether the distance is calculated                                      in data space or Java2D space.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setCrosshairDistance(double)"><!-- --></A><H3>setCrosshairDistance</H3><PRE>public void <B>setCrosshairDistance</B>(double&nbsp;distance)</PRE><DL><DD>Sets the distance between the anchor point and the current crosshair point.  As each data point is processed, its distance to the anchor point is compared with this value and, if it is closer, the data point becomes the new crosshair point.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>distance</CODE> - the distance.</DL></DD></DL><HR><A NAME="updateCrosshairPoint(double, double, double, double, org.jfree.chart.plot.PlotOrientation)"><!-- --></A><H3>updateCrosshairPoint</H3><PRE>public void <B>updateCrosshairPoint</B>(double&nbsp;x,                                 double&nbsp;y,                                 double&nbsp;transX,                                 double&nbsp;transY,                                 <A HREF="../../../../org/jfree/chart/plot/PlotOrientation.html" title="class in org.jfree.chart.plot">PlotOrientation</A>&nbsp;orientation)</PRE><DL><DD>Evaluates a data point and if it is the closest to the anchor point it becomes the new crosshair point. <P> To understand this method, you need to know the context in which it will be called.  An instance of this class is passed to an  <A HREF="../../../../org/jfree/chart/renderer/XYItemRenderer.html" title="interface in org.jfree.chart.renderer"><CODE>XYItemRenderer</CODE></A> as each data point is plotted.  As the point is plotted, it is passed to this method to see if it should be the new crosshair point.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - x coordinate (measured against the domain axis).<DD><CODE>y</CODE> - y coordinate (measured against the range axis).<DD><CODE>transX</CODE> - x translated into Java2D space.<DD><CODE>transY</CODE> - y translated into Java2D space.<DD><CODE>orientation</CODE> - the plot orientation.</DL></DD></DL><HR><A NAME="updateCrosshairX(double)"><!-- --></A><H3>updateCrosshairX</H3><PRE>public void <B>updateCrosshairX</B>(double&nbsp;candidateX)</PRE><DL><DD>Evaluates an x-value and if it is the closest to the anchor point it becomes the new crosshair point. <P> Used in cases where only the x-axis is numerical.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>candidateX</CODE> - x position of the candidate for the new crosshair point.</DL></DD></DL><HR><A NAME="updateCrosshairY(double)"><!-- --></A><H3>updateCrosshairY</H3><PRE>public void <B>updateCrosshairY</B>(double&nbsp;candidateY)</PRE><DL><DD>Evaluates a y-value and if it is the closest to the anchor point it becomes the new crosshair point. <P> Used in cases where only the y-axis is numerical.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>candidateY</CODE> - y position of the candidate for the new crosshair point.</DL></DD></DL><HR><A NAME="setAnchor(java.awt.geom.Point2D)"><!-- --></A><H3>setAnchor</H3><PRE>public void <B>setAnchor</B>(java.awt.geom.Point2D&nbsp;anchor)</PRE><DL><DD>Sets the anchor point.  This is usually the mouse click point in a chart panel, and the crosshair point will often be the data item that is closest to the anchor point.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>anchor</CODE> - the anchor point.</DL></DD></DL><HR><A NAME="getCrosshairX()"><!-- --></A><H3>getCrosshairX</H3><PRE>public double <B>getCrosshairX</B>()</PRE><DL><DD>Get the x-value for the crosshair point.<P><DD><DL><DT><B>Returns:</B><DD>the x position of the crosshair point.</DL></DD></DL><HR><A NAME="setCrosshairX(double)"><!-- --></A><H3>setCrosshairX</H3><PRE>public void <B>setCrosshairX</B>(double&nbsp;x)</PRE><DL><DD>Sets the x coordinate for the crosshair.  This is the coordinate in data space measured  against the domain axis.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the coordinate.</DL></DD></DL><HR><A NAME="getCrosshairY()"><!-- --></A><H3>getCrosshairY</H3><PRE>public double <B>getCrosshairY</B>()</PRE><DL><DD>Get the y-value for the crosshair point.  This is the coordinate in data space measured  against the range axis.<P><DD><DL><DT><B>Returns:</B><DD>the y position of the crosshair point.</DL></DD></DL><HR><A NAME="setCrosshairY(double)"><!-- --></A><H3>setCrosshairY</H3><PRE>public void <B>setCrosshairY</B>(double&nbsp;y)</PRE><DL><DD>Sets the y coordinate for the crosshair.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - the y coordinate.</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>&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/ContourPlotUtilities.html" title="class in org.jfree.chart.plot"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/jfree/chart/plot/DatasetRenderingOrder.html" title="class in org.jfree.chart.plot"><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="CrosshairState.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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