📄 abstractblock.html
字号:
<BR> Sets the natural width of the block, if this is known in advance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#toContentConstraint(org.jfree.chart.block.RectangleConstraint)">toContentConstraint</A></B>(<A HREF="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</A> c)</CODE><BR> Returns a constraint for the content of this block that will result in the bounds of the block matching the specified constraint.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.awt.geom.Rectangle2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#trimBorder(java.awt.geom.Rectangle2D)">trimBorder</A></B>(java.awt.geom.Rectangle2D area)</CODE><BR> Reduces the specified area by the amount of space consumed by the border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.awt.geom.Rectangle2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#trimMargin(java.awt.geom.Rectangle2D)">trimMargin</A></B>(java.awt.geom.Rectangle2D area)</CODE><BR> Reduces the specified area by the amount of space consumed by the margin.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.awt.geom.Rectangle2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#trimPadding(java.awt.geom.Rectangle2D)">trimPadding</A></B>(java.awt.geom.Rectangle2D area)</CODE><BR> Reduces the specified area by the amount of space consumed by the padding.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#trimToContentHeight(double)">trimToContentHeight</A></B>(double fixedHeight)</CODE><BR> Calculate the height available for content after subtracting the margin, border and padding space from the specified fixed height.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/block/AbstractBlock.html#trimToContentWidth(double)">trimToContentWidth</A></B>(double fixedWidth)</CODE><BR> Calculate the width available for content after subtracting the margin, border and padding space from the specified fixed width.</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="AbstractBlock()"><!-- --></A><H3>AbstractBlock</H3><PRE>protected <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.103"><B>AbstractBlock</B></A>()</PRE><DL><DD>Creates a new block.<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="getID()"><!-- --></A><H3>getID</H3><PRE>public java.lang.String <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.118"><B>getID</B></A>()</PRE><DL><DD>Returns the id.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The id (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="setID(java.lang.String)"><!-- --></A><H3>setID</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.127"><B>setID</B></A>(java.lang.String id)</PRE><DL><DD>Sets the id for the block.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the id (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.138"><B>getWidth</B></A>()</PRE><DL><DD>Returns the natural width of the block, if this is known in advance. The actual width of the block may be overridden if layout constraints make this necessary.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The width.</DL></DD></DL><HR><A NAME="setWidth(double)"><!-- --></A><H3>setWidth</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.147"><B>setWidth</B></A>(double width)</PRE><DL><DD>Sets the natural width of the block, if this is known in advance.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the width (in Java2D units)</DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.158"><B>getHeight</B></A>()</PRE><DL><DD>Returns the natural height of the block, if this is known in advance. The actual height of the block may be overridden if layout constraints make this necessary.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The height.</DL></DD></DL><HR><A NAME="setHeight(double)"><!-- --></A><H3>setHeight</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.167"><B>setHeight</B></A>(double height)</PRE><DL><DD>Sets the natural width of the block, if this is known in advance.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>height</CODE> - the width (in Java2D units)</DL></DD></DL><HR><A NAME="getMargin()"><!-- --></A><H3>getMargin</H3><PRE>public org.jfree.ui.RectangleInsets <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.176"><B>getMargin</B></A>()</PRE><DL><DD>Returns the margin.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The margin (never <code>null</code>).</DL></DD></DL><HR><A NAME="setMargin(org.jfree.ui.RectangleInsets)"><!-- --></A><H3>setMargin</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.186"><B>setMargin</B></A>(org.jfree.ui.RectangleInsets margin)</PRE><DL><DD>Sets the margin (use <CODE>RectangleInsets.ZERO_INSETS</CODE> for no padding).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>margin</CODE> - the margin (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="setMargin(double, double, double, double)"><!-- --></A><H3>setMargin</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.201"><B>setMargin</B></A>(double top, double left, double bottom, double right)</PRE><DL><DD>Sets the margin.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>top</CODE> - the top margin.<DD><CODE>left</CODE> - the left margin.<DD><CODE>bottom</CODE> - the bottom margin.<DD><CODE>right</CODE> - the right margin.</DL></DD></DL><HR><A NAME="getBorder()"><!-- --></A><H3>getBorder</H3><PRE>public <A HREF="../../../../org/jfree/chart/block/BlockBorder.html" title="class in org.jfree.chart.block">BlockBorder</A> <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.211"><B>getBorder</B></A>()</PRE><DL><DD>Returns the border.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The border (never <code>null</code>).</DL></DD></DL><HR><A NAME="setBorder(org.jfree.chart.block.BlockBorder)"><!-- --></A><H3>setBorder</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.221"><B>setBorder</B></A>(<A HREF="../../../../org/jfree/chart/block/BlockBorder.html" title="class in org.jfree.chart.block">BlockBorder</A> border)</PRE><DL><DD>Sets the border for the block (use <A HREF="../../../../org/jfree/chart/block/BlockBorder.html#NONE"><CODE>BlockBorder.NONE</CODE></A> for no border).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>border</CODE> - the border (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="setBorder(double, double, double, double)"><!-- --></A><H3>setBorder</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.236"><B>setBorder</B></A>(double top, double left, double bottom, double right)</PRE><DL><DD>Sets a black border with the specified line widths.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>top</CODE> - the top border line width.<DD><CODE>left</CODE> - the left border line width.<DD><CODE>bottom</CODE> - the bottom border line width.<DD><CODE>right</CODE> - the right border line width.</DL></DD></DL><HR><A NAME="getPadding()"><!-- --></A><H3>getPadding</H3><PRE>public org.jfree.ui.RectangleInsets <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.246"><B>getPadding</B></A>()</PRE><DL><DD>Returns the padding.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The padding (never <code>null</code>).</DL></DD></DL><HR><A NAME="setPadding(org.jfree.ui.RectangleInsets)"><!-- --></A><H3>setPadding</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.256"><B>setPadding</B></A>(org.jfree.ui.RectangleInsets padding)</PRE><DL><DD>Sets the padding (use <CODE>RectangleInsets.ZERO_INSETS</CODE> for no padding).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>padding</CODE> - the padding (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getContentXOffset()"><!-- --></A><H3>getContentXOffset</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.268"><B>getContentXOffset</B></A>()</PRE><DL><DD>Returns the x-offset for the content within the block.<P><DD><DL></DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -