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

📄 abstractblock.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<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&nbsp;top,                       double&nbsp;left,                       double&nbsp;bottom,                       double&nbsp;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&nbsp;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&nbsp;g2,                                   <A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A>&nbsp;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&nbsp;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&nbsp;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&nbsp;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>&nbsp;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&nbsp;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&nbsp;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&nbsp;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&nbsp;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&nbsp;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&nbsp;g2,                          java.awt.geom.Rectangle2D&nbsp;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&nbsp;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>&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="class-use/AbstractBlock.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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-files/index-1.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;PREV CLASS&nbsp;&nbsp;<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>  &nbsp;&nbsp;<A HREF="AbstractBlock.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 + -