candlestickrenderer.html

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

HTML
810 行
字号
<P><DT><B>Parameters:</B><DD><CODE>candleWidth</CODE> - The candle width.</DL><HR><A NAME="CandlestickRenderer(double, boolean, org.jfree.chart.labels.XYToolTipGenerator)"><!-- --></A><H3>CandlestickRenderer</H3><PRE>public <B>CandlestickRenderer</B>(double&nbsp;candleWidth,                           boolean&nbsp;drawVolume,                           <A HREF="../../../../org/jfree/chart/labels/XYToolTipGenerator.html">XYToolTipGenerator</A>&nbsp;toolTipGenerator)</PRE><DL><DD>Creates a new renderer for candlestick charts. <P> Use -1 for the candle width if you prefer the width to be calculated automatically.<P><DT><B>Parameters:</B><DD><CODE>candleWidth</CODE> - The candle width.<DD><CODE>drawVolume</CODE> - A flag indicating whether or not volume bars should be drawn.<DD><CODE>toolTipGenerator</CODE> - The tool tip generator. <code>null</code> is none.</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="getCandleWidth()"><!-- --></A><H3>getCandleWidth</H3><PRE>public double <B>getCandleWidth</B>()</PRE><DL><DD>Returns the width of each candle.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The candle width.</DL></DD></DL><HR><A NAME="setCandleWidth(double)"><!-- --></A><H3>setCandleWidth</H3><PRE>public void <B>setCandleWidth</B>(double&nbsp;width)</PRE><DL><DD>Sets the candle width. <P> If you set the width to a negative value, the renderer will calculate the candle width automatically based on the space available on the chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - The width.</DL></DD></DL><HR><A NAME="getMaxCandleWidthInMilliseconds()"><!-- --></A><H3>getMaxCandleWidthInMilliseconds</H3><PRE>public double <B>getMaxCandleWidthInMilliseconds</B>()</PRE><DL><DD>Returns the maximum width (in milliseconds) of each candle.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The maximum candle width in milliseconds.</DL></DD></DL><HR><A NAME="setMaxCandleWidthInMilliseconds(double)"><!-- --></A><H3>setMaxCandleWidthInMilliseconds</H3><PRE>public void <B>setMaxCandleWidthInMilliseconds</B>(double&nbsp;millis)</PRE><DL><DD>Sets the maximum candle width (in milliseconds).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>millis</CODE> - The maximum width.</DL></DD></DL><HR><A NAME="getUpPaint()"><!-- --></A><H3>getUpPaint</H3><PRE>public java.awt.Paint <B>getUpPaint</B>()</PRE><DL><DD>Returns the paint used to fill candles when the price moves up from open to close.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="setUpPaint(java.awt.Paint)"><!-- --></A><H3>setUpPaint</H3><PRE>public void <B>setUpPaint</B>(java.awt.Paint&nbsp;paint)</PRE><DL><DD>Sets the paint used to fill candles when the price moves up from open to close. <P> Registered property change listeners are notified that the "CandleStickRenderer.upPaint" property has changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - The paint.</DL></DD></DL><HR><A NAME="getDownPaint()"><!-- --></A><H3>getDownPaint</H3><PRE>public java.awt.Paint <B>getDownPaint</B>()</PRE><DL><DD>Returns the paint used to fill candles when the price moves down from open to close.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="setDownPaint(java.awt.Paint)"><!-- --></A><H3>setDownPaint</H3><PRE>public void <B>setDownPaint</B>(java.awt.Paint&nbsp;paint)</PRE><DL><DD>Sets the paint used to fill candles when the price moves down from open to close. <P> Registered property change listeners are notified that the "CandleStickRenderer.downPaint" property has changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - The paint.</DL></DD></DL><HR><A NAME="drawVolume()"><!-- --></A><H3>drawVolume</H3><PRE>public boolean <B>drawVolume</B>()</PRE><DL><DD>Returns a flag indicating whether or not volume bars are drawn on the chart.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if volume bars are drawn on the chart.</DL></DD></DL><HR><A NAME="setDrawVolume(boolean)"><!-- --></A><H3>setDrawVolume</H3><PRE>public void <B>setDrawVolume</B>(boolean&nbsp;flag)</PRE><DL><DD>Sets a flag that controls whether or not volume bars are drawn in the background.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - The flag.</DL>

⌨️ 快捷键说明

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