📄 abstractblock.html
字号:
<DD><DL><DT><B>Returns:</B><DD>The x-offset.</DL></DD></DL><HR><A NAME="getContentYOffset()"><!-- --></A><H3>getContentYOffset</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.278"><B>getContentYOffset</B></A>()</PRE><DL><DD>Returns the y-offset for the content within the block.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The y-offset.</DL></DD></DL><HR><A NAME="setPadding(double, double, double, double)"><!-- --></A><H3>setPadding</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.291"><B>setPadding</B></A>(double top, double left, double bottom, double right)</PRE><DL><DD>Sets the padding.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>top</CODE> - the top padding.<DD><CODE>left</CODE> - the left padding.<DD><CODE>bottom</CODE> - the bottom padding.<DD><CODE>right</CODE> - the right padding.</DL></DD></DL><HR><A NAME="arrange(java.awt.Graphics2D)"><!-- --></A><H3>arrange</H3><PRE>public org.jfree.ui.Size2D <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.304"><B>arrange</B></A>(java.awt.Graphics2D g2)</PRE><DL><DD>Arranges the contents of the block, with no constraints, and returns the block size.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DT><B>Returns:</B><DD>The block size (in Java2D units, never <code>null</code>).</DL></DD></DL><HR><A NAME="arrange(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/AbstractBlock.html#line.317"><B>arrange</B></A>(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 contents of the block, within the given constraints, and returns the block size.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>constraint</CODE> - the constraint (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The block size (in Java2D units, never <code>null</code>).</DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public java.awt.geom.Rectangle2D <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.327"><B>getBounds</B></A>()</PRE><DL><DD>Returns the current bounds of the block.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The bounds.</DL></DD></DL><HR><A NAME="setBounds(java.awt.geom.Rectangle2D)"><!-- --></A><H3>setBounds</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.336"><B>setBounds</B></A>(java.awt.geom.Rectangle2D bounds)</PRE><DL><DD>Sets the bounds of the block.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bounds</CODE> - the bounds (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="trimToContentWidth(double)"><!-- --></A><H3>trimToContentWidth</H3><PRE>protected double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.352"><B>trimToContentWidth</B></A>(double fixedWidth)</PRE><DL><DD>Calculate the width available for content after subtracting the margin, border and padding space from the specified fixed width.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fixedWidth</CODE> - the fixed width.<DT><B>Returns:</B><DD>The available space.</DL></DD></DL><HR><A NAME="trimToContentHeight(double)"><!-- --></A><H3>trimToContentHeight</H3><PRE>protected double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.368"><B>trimToContentHeight</B></A>(double fixedHeight)</PRE><DL><DD>Calculate the height available for content after subtracting the margin, border and padding space from the specified fixed height.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fixedHeight</CODE> - the fixed height.<DT><B>Returns:</B><DD>The available space.</DL></DD></DL><HR><A NAME="toContentConstraint(org.jfree.chart.block.RectangleConstraint)"><!-- --></A><H3>toContentConstraint</H3><PRE>protected <A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A> <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.383"><B>toContentConstraint</B></A>(<A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A> c)</PRE><DL><DD>Returns a constraint for the content of this block that will result in the bounds of the block matching the specified constraint.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the outer constraint (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The content constraint.</DL></DD></DL><HR><A NAME="calculateTotalWidth(double)"><!-- --></A><H3>calculateTotalWidth</H3><PRE>protected double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.441"><B>calculateTotalWidth</B></A>(double contentWidth)</PRE><DL><DD>Adds the margin, border and padding to the specified content width.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>contentWidth</CODE> - the content width.<DT><B>Returns:</B><DD>The adjusted width.</DL></DD></DL><HR><A NAME="calculateTotalHeight(double)"><!-- --></A><H3>calculateTotalHeight</H3><PRE>protected double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.456"><B>calculateTotalHeight</B></A>(double contentHeight)</PRE><DL><DD>Adds the margin, border and padding to the specified content height.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>contentHeight</CODE> - the content height.<DT><B>Returns:</B><DD>The adjusted height.</DL></DD></DL><HR><A NAME="trimMargin(java.awt.geom.Rectangle2D)"><!-- --></A><H3>trimMargin</H3><PRE>protected java.awt.geom.Rectangle2D <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.472"><B>trimMargin</B></A>(java.awt.geom.Rectangle2D area)</PRE><DL><DD>Reduces the specified area by the amount of space consumed by the margin.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>area</CODE> - the area (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The trimmed area.</DL></DD></DL><HR><A NAME="trimBorder(java.awt.geom.Rectangle2D)"><!-- --></A><H3>trimBorder</H3><PRE>protected java.awt.geom.Rectangle2D <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.486"><B>trimBorder</B></A>(java.awt.geom.Rectangle2D area)</PRE><DL><DD>Reduces the specified area by the amount of space consumed by the border.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>area</CODE> - the area (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The trimmed area.</DL></DD></DL><HR><A NAME="trimPadding(java.awt.geom.Rectangle2D)"><!-- --></A><H3>trimPadding</H3><PRE>protected java.awt.geom.Rectangle2D <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.500"><B>trimPadding</B></A>(java.awt.geom.Rectangle2D area)</PRE><DL><DD>Reduces the specified area by the amount of space consumed by the padding.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>area</CODE> - the area (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The trimmed area.</DL></DD></DL><HR><A NAME="drawBorder(java.awt.Graphics2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>drawBorder</H3><PRE>protected void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.512"><B>drawBorder</B></A>(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)</PRE><DL><DD>Draws the border around the perimeter of the specified area.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>area</CODE> - the area.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.523"><B>equals</B></A>(java.lang.Object obj)</PRE><DL><DD>Tests this block for equality with an arbitrary object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</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=2 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractBlock.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../org/jfree/chart/block/Arrangement.html" title="interface in org.jfree.chart.block"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/chart/block/AbstractBlock.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractBlock.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -