📄 centerarrangement.html
字号:
constraint.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.jfree.ui.Size2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/CenterArrangement.html#arrangeNN(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D)">arrangeNN</A></B>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, java.awt.Graphics2D g2)</CODE><BR> Arranges the blocks without any constraints.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.jfree.ui.Size2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/CenterArrangement.html#arrangeRF(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)">arrangeRF</A></B>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A> constraint)</CODE><BR> Arranges the blocks in the container with a range constraint on the width and a fixed height.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.jfree.ui.Size2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/CenterArrangement.html#arrangeRN(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)">arrangeRN</A></B>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A> constraint)</CODE><BR> Arranges the block with a range constraint on the width, and no constraint on the height.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.jfree.ui.Size2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/CenterArrangement.html#arrangeRR(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)">arrangeRR</A></B>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A> constraint)</CODE><BR> Arranges the blocks with the overall width and height to fit within specified ranges.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/CenterArrangement.html#clear()">clear</A></B>()</CODE><BR> Clears any cached information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/CenterArrangement.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE><BR> Tests this instance for equality with an arbitrary object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="CenterArrangement()"><!-- --></A><H3>CenterArrangement</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/block/CenterArrangement.html#line.65"><B>CenterArrangement</B></A>()</PRE><DL><DD>Creates a new instance.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="add(org.jfree.chart.block.Block, java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/CenterArrangement.html#line.76"><B>add</B></A>(<A HREF="../../../../org/jfree/chart/block/Block.html" title="interface in org.jfree.chart.block">Block</A> block, java.lang.Object key)</PRE><DL><DD>Adds a block to be managed by this instance. This method is usually called by the <A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block"><CODE>BlockContainer</CODE></A>, you shouldn't need to call it directly.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/block/Arrangement.html#add(org.jfree.chart.block.Block, java.lang.Object)">add</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/block/Arrangement.html" title="interface in org.jfree.chart.block">Arrangement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>block</CODE> - the block.<DD><CODE>key</CODE> - a key that controls the position of the block.</DL></DD></DL><HR><A NAME="arrange(org.jfree.chart.block.BlockContainer, 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/block/CenterArrangement.html#line.93"><B>arrange</B></A>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, 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>Calculates and sets the bounds of all the items in the specified container, subject to the given constraint. The <code>Graphics2D</code> can be used by some items (particularly items containing text) to calculate sizing parameters.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/block/Arrangement.html#arrange(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)">arrange</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/chart/block/Arrangement.html" title="interface in org.jfree.chart.block">Arrangement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>container</CODE> - the container whose items are being arranged.<DD><CODE>g2</CODE> - the graphics device.<DD><CODE>constraint</CODE> - the size constraint.<DT><B>Returns:</B><DD>The size of the container after arrangement of the contents.</DL></DD></DL><HR><A NAME="arrangeFN(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)"><!-- --></A><H3>arrangeFN</H3><PRE>protected org.jfree.ui.Size2D <A HREF="../../../../src-html/org/jfree/chart/block/CenterArrangement.html#line.145"><B>arrangeFN</B></A>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, 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 blocks in the container with a fixed width and no height constraint.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>container</CODE> - the container.<DD><CODE>g2</CODE> - the graphics device.<DD><CODE>constraint</CODE> - the constraint.<DT><B>Returns:</B><DD>The size.</DL></DD></DL><HR><A NAME="arrangeFR(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)"><!-- --></A><H3>arrangeFR</H3><PRE>protected org.jfree.ui.Size2D <A HREF="../../../../src-html/org/jfree/chart/block/CenterArrangement.html#line.168"><B>arrangeFR</B></A>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, 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 blocks in the container with a fixed with and a range constraint on the height.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>container</CODE> - the container.<DD><CODE>g2</CODE> - the graphics device.<DD><CODE>constraint</CODE> - the constraint.<DT><B>Returns:</B><DD>The size following the arrangement.</DL></DD></DL><HR><A NAME="arrangeFF(org.jfree.chart.block.BlockContainer, java.awt.Graphics2D, org.jfree.chart.block.RectangleConstraint)"><!-- --></A><H3>arrangeFF</H3><PRE>protected org.jfree.ui.Size2D <A HREF="../../../../src-html/org/jfree/chart/block/CenterArrangement.html#line.192"><B>arrangeFF</B></A>(<A HREF="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</A> container, 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 blocks in the container with the overall height and width specified as fixed constraints.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>container</CODE> - the container.<DD><CODE>g2</CODE> - the graphics device.<DD><CODE>constraint</CODE> - the constraint.<DT><B>Returns:</B><DD>The size following the arrangement.</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -